每日 Show HN

Upvote0

2025年8月2日 的 Show HN

19 条
144

WebGPU enables local LLM in the browser – demo site with AI chat #

andreinwald.github.io faviconandreinwald.github.io
54 评论2:09 PM在 HN 查看
Browser LLM demo working on JavaScript and WebGPU. WebGPU is already supported in Chrome, Safari, Firefox, iOS (v26) and Android.

Demo, similar to ChatGPT https://andreinwald.github.io/browser-llm/

Code https://github.com/andreinwald/browser-llm

- No need to use your OPENAI_API_KEY - its local model that runs on your device

- No network requests to any API

- No need to install any program

- No need to download files on your device (model is cached in browser)

- Site will ask before downloading large files (llm model) to browser cache

- Hosted on Github Pages from this repo - secure, because you see what you are running

78

Mathpad – Physical keypad for typing 100+ math symbols anywhere #

crowdsupply.com faviconcrowdsupply.com
26 评论8:43 PM在 HN 查看
Here's something different than your usual fare: A physical keypad that lets you directly type math!

Ever tried typing mathematical equations in your code IDE, email, or on Slack? You might know it can be tricky. Mathpad solves this with dedicated keys for Greek letters, calculus symbols, and more. Press the ∫ key and get ∫, in any application that accepts text. It uses Unicode composition, so it works everywhere: Browsers, chat apps, code editors, Word, you name it. Basically, anywhere you can type text, Mathpad lets you type mathematics.

I built Mathpad after getting frustrated with the friction of typing equations in e.g. Word, and what a pain in the ass it was to find the specific symbols I needed. I assumed that a product like Mathpad already existed, but that was not true and I had to build it myself.

It turned out to be pretty useful! Three years of solo development later, I'm launching on Crowd Supply. One of the trickiest parts of this project was finding someone who could manufacture custom keycaps with mathematical symbols. Shoutout to Loic at 3dkeycap.com for making it possible!

Fully open source (hardware + software): https://github.com/Summa-Cogni/Mathpad Campaign: https://www.crowdsupply.com/summa-cogni/mathpad Project log: https://hackaday.io/project/186205-mathpad-the-math-keypad

40

NaturalCron – Human-Readable Scheduling for .NET (With Fluent Builder) #

github.com favicongithub.com
14 评论1:09 PM在 HN 查看
Hi HN!

I built NaturalCron because I was tired of writing and debugging CRON syntax like:

/5 * * 5

Now you can write something human-readable in .NET:

var expression = new NaturalCronExpression("every 5 minutes on friday");

Or use a Fluent Builder for strong typing and IDE support:

var expression = NaturalCronExpressionBuilder .Every().Minutes(5) .On(DayOfWeek.Friday) .Build();

Great for: - Code-based scheduling in .NET apps - Overriding schedules from configs or databases - Displaying easy-to-read rules in UIs

NuGet: https://www.nuget.org/packages/NaturalCron GitHub: https://github.com/hugoj0s3/NaturalCron

Would love your feedback on syntax, builder design, and what features you'd like to see next!

35

Wordle-style game for Fermi questions #

fermiquestions.org faviconfermiquestions.org
37 评论5:11 PM在 HN 查看
Some months ago @andrewrn tried to create a Wordle-style site for order-of-magnitude thinking. This was a wonderful idea, but the actual site was somewhat over-engineered and confusing. (https://news.ycombinator.com/item?id=43632278)

In the past week, I looked at this idea again and built a very simple site which gives you a new Fermi estimation question every day:

How many new cars were sold in the US in 2024?; How many humans have ever lived (including those currently alive)?; How many chickens are slaughtered for meat every year?

To win, you need a guess within ±10% of the correct answer. For this you have a maximum of 6 tries and after each guess, you can see if your answer was too high or too low.

Fermi questions are, by the way, a wonderful way to build up your own numeracy and sense for order-of-magnitude differences. Douglas Hofstadter proposed using them for exactly this reason in his essay "Number Numbness, or Why Innumeracy May Be Just as Dangerous as Illiteracy" (https://gwern.net/doc/math/1982-hofstadter-2.pdf)

8

F1 COSMOS – Live timing and data dashboard for F1 fans #

f1cosmos.com faviconf1cosmos.com
12 评论4:28 PM在 HN 查看
Hey everyone! I'm a huge F1 fan and got tired of juggling multiple tabs and apps during race weekends, so I built F1 COSMOS.

What it does:

- Live timing: Real-time data updates in milliseconds - sector times, telemetry, team radio, you name it. No more refreshing pages or waiting for delayed updates.

- Replay feature: Missed qualifying or fell asleep during practice? You can replay the live timing from any past session. Pretty handy when you're in a bad timezone.

- Proper data visualization: I went beyond just showing lap times. There's race analysis with telemetry data, championship standings, technical updates, and a bunch of other stats that make watching races way more interesting. Oh, and the race calendar automatically adjusts to your timezone because I was sick of doing timezone math in my head.

- Multi-device setup: Here's the thing - I watch races on my TV but wanted data on my phone as a second screen. So I spent ages making the mobile experience smooth for exactly this use case. Desktop has customizable widgets if you're into that.

Technical stuff:

Built with modern web stack, focused heavily on real-time performance. The trickiest part was getting the data pipeline right for millisecond updates without everything falling apart.

Why I built this: Honestly, existing F1 apps either suck or cost money or both. I wanted something that just works and gives me all the data I actually care about in one place.

Been using it myself all season and figured others might find it useful. Currently supports English, Spanish, Japanese, and Korean (partially) - still working on expanding language support. Would love to hear what you think if you check it out during the next race weekend.

7

AI Physics Tutor with Free Body Diagrams #

physicsviewer.com faviconphysicsviewer.com
0 评论10:50 PM在 HN 查看
Hi HN. I built a prototype AI physics tutor that can interpret, draw, and edit free body diagrams.

Lately I've been transfixed with generating diagrams with LLMs. If you pipe generated JSON through a D3.js renderer, you can get pretty consistent SVG results with the smarter models.

This physics tutor prototype is an example of an application. For a couple premade scenes, you can ask it to make an FBD, decompose an angled force into components, run through the math of Newton's Second Law, or off-road and try and generate a FBD for a scene of your own description.

I previously made a similar example for electrical circuits: www.circuit-tutor.xyz

LLMs have been really fun for me to brush up on my favorite physics and engineering topics, but if they could diagram and even simulate systems while also being able to explain the math, I think it could be genuinely useful for learning concepts from scratch.

Would love any feedback on whether this, bolstered with more diagram types, better UX, and more robustness, could be useful for people learning intro physics.

6

Agentic AI Frameworks on AWS (LangGraph,Strands,CrewAI,Arize,Mem0) #

github.com favicongithub.com
0 评论12:20 AM在 HN 查看
We’ve published a set of open-source reference implementations on how to build production-grade Agentic AI applications on AWS.

What’s in the repo: • Agentic RAG, memory, and planning workflows with LangGraph & CrewAI • Strands-based flows with observability using OTEL & Arize • Evaluation with LLM-as-judge and cost/performance regressions • Built with Bedrock, S3, Step Functions, and more

GitHub: https://github.com/aws-samples/sample-agentic-frameworks-on-...

Would love your thoughts — feedback, issues, and stars welcome!

4

Minecrack – A simple, offline Minesweeper game for Android #

5 评论12:39 PM在 HN 查看
Hi HN,

I'm a solo indie developer and I built Minecrack, a lightweight Minesweeper-style puzzle game for Android.

Classic gameplay Multiple difficulty levels Works offline No login, no ads (just a clean experience)

The goal was to keep it simple, fast, and familiar — something to play quickly without distractions. I’d love feedback from anyone who’s a fan of logic games, UI minimalism, or retro-style mobile games.

Play Store link: https://play.google.com/store/apps/details?id=com.vdm.minecr...

Thanks in advance for checking it out!

3

Forced to Give Your Password? #

veilith.com faviconveilith.com
6 评论9:51 AM在 HN 查看
Lets imagine a scenario where you're coerced whether through threats, torture, or even legal pressure to reveal the password to your secure vault.

In countries like the US, UK, and Australia, refusing to provide passwords to law enforcement can result months in prison in certain cases.

I invented a solution called Veilith ( veilith.com ) addresses this critical vulnerability with perfect deniable encryption. It supports multiple passwords, each unlocking distinct blocks of encrypted data that are indistinguishable from random noise even to experts. And have a lot of different features to protect your intellectual properties.

In high-stakes situations, simply provide a decoy password and plausibly deny the existence of anything more.

Dive deeper by reading the whitepaper, exploring the open-source code, or asking me any questions you may have.

2

TubeSummary – YouTube gets AI summaries in the browser #

github.com favicongithub.com
0 评论9:34 AM在 HN 查看
Hey HN,

I made TubeSummary, a browser extension that adds a summary and Q&A button to YouTube videos. It uses your favorite OpenAI-compatible API (OpenAI, Groq, Together, etc) so you can get quick takeaways or ask the AI about the video — right below the player.

Built it because I got tired of scrubbing through endless videos just to figure out what mattered.

It's open source, I have tested on latest Chrome and Firefox.

A quick heads up for Chrome users: since I don't have a paid Google developer account, the extension isn't on the Chrome Web Store, so you'll need to install it manually. Sorry for the extra hassle! There's a step-by-step guide in the repo if you need it.

2

Fetchet – A compact, promise-based, HTTP fetch wrapper #

github.com favicongithub.com
4 评论10:11 PM在 HN 查看
There are plenty of HTTP clients out there - Axios being one of the most popular - but I wanted something minimal and closer to the native fetch API.

I originally wrote a small fetch wrapper for a side project. Rather than copying and pasting it into other projects, I decided to expand on it and publish it as a public package.

Feel free to star the repo, and more importantly, contribute.

2

Fast Elevation API with memory mapped tiles #

terraintap.com faviconterraintap.com
0 评论9:12 PM在 HN 查看
I recently wrote and launched a high-performance Elevation API, built from the ground up, in C. I was highly inspired by the handmade community and I was intrigued by the idea of handling fairly large datasets and optimizing caching and smart prefetching, and to cream out maximum performance in terms of latency and handling large loads.

The whole thing is built from scratch. I wanted to roll my own high performance server that could handle a lot, mostly for the technical challenge but also because it brings down hosting costs.

At the core is a hand made TCP server where a single thread handles all I/O via epoll, distributing the events to a pool of worker threads. The server is fully non-blocking and edge-triggered, with a minimal syscall footprint during steady-state operation.

Worker threads handle request parsing and perform either direct elevation lookups for single- or multi-points, or compute sample points along polyline paths.

The elevation data is stored as memory mapped geotiff raster tiles, The tiles are indexed in an R-tree for fast lookup. Given a coordinate, the correct tile is located with a bounding-box search algorithm through the tree, and the elevation value is extracted directly from the mapped memory. If the tile is missing the data, underlying tiles act as fallback.

I also implemented a prefetching mechanism. That is, to avoid repeated page faults in popular areas, I employ a strategy where each tile is divided into smaller sub-tiles. Then, I have a running popularity count per sub-tile. This information is then used to guide prefetching. More popular sub-tiles trigger larger-radius prefetches around the lookup point, with the logic that if a specific region is seeing frequent access, it’s worth pulling in more of it into RAM. Over time, this makes the memory layout adapt to real usage patterns, keeping hot areas resident and minimizing I/O latency. Prefetching is done using linux madvise, in a separate prefetch thread to not affect request latency.

There’s a free option to try it out!

1

Review of CWE-843 Type Confusion Vulnerability and Exploit #

0 评论12:44 PM在 HN 查看
I recently wrote a short piece exploring CWE-843: Type Confusion, a vulnerability that quietly lurks in low-level code, especially in C.

Type confusion bugs are sneaky the code compiles, runs, and often works just fine... until it doesn't. In the article, I walk through a practical example of how a type confusion issue can lead to exploitable memory corruption, explain why this happens at the language level.

https://dev.to/fkkarakurt/review-of-cwe-843-type-confusion-v...