frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

trbndev•1y ago
routr is a lightweight, offline search router inspired by DuckDuckGo's bangs. It's fully browser-based (no server requests needed other than the initial one) and routes queries like `!gh tokio` to GitHub, `!yt` to YouTube, `!hn` to Hacker News, etc.

What sets it apart:

- Runs entirely locally (no network, no tracking)

- Lets you define your own bangs and destinations

- Optionally rewrites queries for better precision (with AI)

Example:

Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

More on query rewriting and performance:

https://tl128n.github.io/writings/2025-05-02_optimizing_sear...

Leftium•1y ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•1y ago
Ah damn what a bummer that I can‘t edit the original comment anymore. Thank you for pointing it out… didn‘t even see that extra `l` there in the url
Leftium•1y ago
> Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

I wonder how much of that could be done without AI, just (locally) using https://www.npmjs.com/package/compromise

---

Also I couldn't find your source for bang data; Kagi maintains an updated list: https://github.com/kagisearch/bangs

I'm working on an enhanced version of bangs. Since there are so many "dead" bangs, I'm thinking of using a bang whitelist and suggestions from the full list if not found in the whitelist.

trbndev•1y ago
What an interesting library. Thanks for mentioning it here… will definitely look into it!

—-

The bangs are at

https://github.com/t128n/routr/blob/main/src/sw/routes.ts

Mostly ripped from duckduckgo.com/bang.js and then pretty-formatted with Prettier… with some sane-defaults added like a bang for ChatGPT or T3 Chat

Leftium•1y ago
Related project (also works locally):

- https://unduck.link/

- https://github.com/t3dotgg/unduck

- https://youtu.be/_DnNzRaBWUU

---

Note unduck works without service workers: https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

Is there any advantage to using service workers?

edit: Ah... unduck doesn't work from the browser search bar.

trbndev•1y ago
Unduck actually also uses service workers to cache the app locally

https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

—-

> Is there any advantage to using service workers?

With service workers we can intercept the `fetch` request, before the index.html gets rendered/loaded. One should (in theory) be redirected some micro-seconds faster than doing the redirect in the index.html js

Stop Sending IDE-Catchable AI Code Errors to Review

https://blog.jetbrains.com/ai/2026/05/stop-sending-ide-catchable-ai-code-errors-to-review/
1•bundie•1m ago•0 comments

Modern Developer Time Tracker

https://github.com/v1truv1us/rune
1•ankitg12•3m ago•0 comments

The Story of Mel (1983)

http://catb.org/jargon/html/story-of-mel.html
1•tosh•4m ago•0 comments

Brockman says OAI's compute cost for this year is $50B

https://twitter.com/GerritD/status/2051725302137770067
1•deanylev•6m ago•0 comments

Show HN: ContextWizard – AI context manager with undo and drag-drop

https://chromewebstore.google.com/
1•hacker2builder•9m ago•0 comments

Not your Weights, Not your Brain

https://mercurialsolo.github.io/posts/not-your-weights-not-your-brain/
1•blenderob•9m ago•0 comments

Building a DSL compiler on top of OpenAPI for UI generation

https://uigen-docs.vercel.app/blog/uigen-compiler-architecture
1•ombedzi•11m ago•0 comments

AI as a Mirror of Cognition: Compression, Prediction, and Semantic Drift [pdf]

https://github.com/therealitydrift/cognitive-drift-institute/blob/main/03_Research_and_Papers/03_...
1•realitydrift•12m ago•0 comments

Japan using game development engines for urban planning and disaster management

https://www.tomshardware.com/virtual-reality/japan-using-game-development-engines-for-urban-plann...
1•giuliomagnifico•13m ago•0 comments

The complexity of vibe coded apps (and why the dismissal is lazy)

https://www.getspectro.app/
1•ddtcx•15m ago•0 comments

Show HN: Readplace Read-It-Later Chrome Extension – Free the for First 100

https://chromewebstore.google.com/detail/readplace-—-save-articles/klblengmhlfnmjoagchagfcdbpbo...
1•fagnerbrack•16m ago•0 comments

Picture-in-Picture for any macOS window - Pipiri

https://lowtechguys.com/pipiri/
2•DerCommodore•16m ago•0 comments

Europe Without America

https://www.theatlantic.com/national-security/2026/05/europe-trump-iran-war-nato/687051/
2•vrganj•17m ago•0 comments

Show HN: Free OSS Contact Form Forwarder

https://www.simplecontactform.org
1•maxibenner•18m ago•0 comments

Negative events in psychotherapy: A narrative review

https://pmc.ncbi.nlm.nih.gov/articles/PMC12923238/
1•wslh•19m ago•0 comments

A man who blew up a nuclear power station and disappeared

https://www.theguardian.com/world/2026/may/05/the-man-who-blew-up-a-nuclear-power-station-koeberg...
1•Tomte•19m ago•0 comments

Apple keeps challenging its interoperability obligations under the DMA

https://fsfe.org/news/2026/news-20260420-01.en.html
2•Tomte•21m ago•0 comments

Ask HN: Is writing code by hand still a necessary skill for developers?

2•nerptastic•22m ago•2 comments

We once talked about fake news – now reality itself feels fake

https://www.theguardian.com/media/ng-interactive/2026/may/06/how-to-survive-the-information-crisi...
1•BaudouinVH•23m ago•0 comments

Show HN: I built an app to learn anything I want during my school breaks

https://www.sophros.me
1•macraft•23m ago•0 comments

F-117s Had an Air-to-Air Capability for Anti Soviet Awacs Role (2020)

https://theaviationist.com/2020/06/03/f-117s-had-an-air-to-air-capability-with-secondary-mission-...
1•mpweiher•24m ago•0 comments

GPU-accelerated terminal environment in Zig

https://github.com/semos-labs/attyx
1•begoon•25m ago•0 comments

The Fragmentation Tax

https://abhishekiaex.substack.com/p/the-fragmentation-tax
1•abhishek2580•27m ago•0 comments

Exploring Ruby Algorithms for Fibonacci Numbers

https://www.rorvswild.com/blog/2025/fibonacci-ruby-algorithms
1•thunderbong•27m ago•0 comments

Podman rootless containers and the Copy Fail exploit

https://garrido.io/notes/podman-rootless-containers-copy-fail/
2•birdculture•33m ago•0 comments

Apple Will Pay $250M to Settle Lawsuit over Siri's AI Features

https://www.wired.com/story/apple-will-pay-dollar250-million-to-settle-lawsuit-over-siris-ai-feat...
1•joozio•37m ago•0 comments

Are you addicted to your AI chatbot?

https://science.ubc.ca/news/2026-04/are-you-addicted-your-ai-chatbot-it-might-be-design
3•mikelgan•41m ago•3 comments

Designing Data-Intensive Applications: The Cloud and Doing the Right Thing

https://newsletter.pragmaticengineer.com/p/designing-data-intensive-applications-book-excerpt
2•onel•43m ago•0 comments

Setting up a Sun Ray server on OpenIndiana Hipster 2025.10

https://catstret.ch/202605/srss-hipster202510/
2•jandeboevrie•44m ago•0 comments

Composing Claude Code Skills

https://gist.github.com/sriprasanna/ef10fe43ac2de1cd97e638c5c65b430d
1•spk_•48m ago•0 comments