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•9mo ago

Comments

trbndev•9mo 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•9mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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

Moltbook leaks the keys of every agent

https://www.threads.com/@naveed_ullah600/post/DUMun_HDAFd
1•kevin061•1m ago•0 comments

Ask HN: How did you get from learning to code to making your first dollar?

1•chistev•1m ago•0 comments

Changes to the Irish Times Stylebook

https://www.irishtimes.com/media/2026/02/01/message-from-the-editor-its-the-way-we-say-it/
1•trigger•1m ago•1 comments

Cap Twelve Years Later: How the "Rules" Have Changed

https://www.infoq.com/articles/cap-twelve-years-later-how-the-rules-have-changed/
1•onurkanbkrc•5m ago•0 comments

Kleiner Perkins was written off. Then an unlikely VC showed up

https://fortune.com/2026/01/31/inside-vc-firm-kleiner-perkins-turnaround-mamoon-hamid/
1•tosh•7m ago•0 comments

Incompressible File. A File That Resists Compression

https://v0id-user.mataroa.blog/blog/incompressible-file-a-file-that-resists-compression/
1•v0id_user•8m ago•0 comments

What if you Topologically Sort Code?

https://slydite.com/blog/toposort
2•Slydite•9m ago•1 comments

Show HN: BPU – An embedded scheduler for stable UART pipelines

1•DenisDolya•10m ago•0 comments

Musk admits no Optimus robots are doing 'useful work' at Tesla

https://electrek.co/2026/01/28/musk-admits-no-optimus-robots-are-doing-useful-work-at-tesla-after...
1•saubeidl•10m ago•0 comments

I Test Drove a Chinese EV. Now I Don't Want to Buy American Cars Anymore

https://www.wsj.com/tech/personal-tech/chinese-ev-test-drive-xiaomi-su7-c3e59282
4•impish9208•16m ago•1 comments

How to think like a strategic genius (5d thinking)

https://letters.thedankoe.com/p/how-to-think-like-a-strategic-genius
1•kaizenb•16m ago•0 comments

Heritability of intrinsic human life span is about 50%

https://www.science.org/doi/10.1126/science.adz1187
1•XzetaU8•17m ago•0 comments

Remarkable Pro Colors

https://www.thregr.org/wavexx/rnd/20260201-remarkable_pro_colors/
1•ffaser5gxlsll•18m ago•0 comments

US Marine Corps develops first 3D printed drone with no China-sourced parts

https://www.tomshardware.com/3d-printing/us-marine-corps-develops-first-ndaa-compliant-3d-printed...
1•giuliomagnifico•18m ago•0 comments

Show HN: Free depreciation calculator (no login, no back end, 3KB gzipped)

https://www.mydepreciation.org
1•ludydev•23m ago•0 comments

'Kessel Run' Air Force software development division

https://en.wikipedia.org/wiki/Kessel_Run
1•samizdis•23m ago•0 comments

Data Poems

https://dr.eamer.dev/datavis/poems/
1•putzdown•24m ago•0 comments

ICE protester says her Global Entry was revoked after agent scanned her face

https://arstechnica.com/tech-policy/2026/01/ice-protester-says-her-global-entry-was-revoked-after...
5•heisenbit•25m ago•2 comments

Launching My Side Project as a Solo Dev: The Walkthrough

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
2•romes•32m ago•0 comments

Show HN: UCPtools – Check if AI shopping agents can find your store

https://ucptools.dev
1•nolpak14•32m ago•1 comments

Show HN: A site where anyone can rename any location on Earth

https://rename.world
1•kafked•32m ago•0 comments

FOSDEM 2026 Schedule

https://fosdem.org/2026/schedule/
1•ksec•33m ago•0 comments

The Class 230 battery trial

https://diamondgeezer.blogspot.com/2026/02/the-class-230-battery-trial.html
2•zeristor•36m ago•1 comments

The Case for Universal Basic Income

https://thehill.com/opinion/finance/5713876-ai-displacement-and-ubi/
4•msolujic•38m ago•1 comments

Shakespeare and Mathematics

https://www.folger.edu/podcasts/shakespeare-unlimited/shakespeare-and-mathematics/
1•bryanrasmussen•39m ago•0 comments

Show HN: AgentGram – Open-source social network for AI agents

https://github.com/agentgram/agentgram
1•iisweetheartii•39m ago•0 comments

Geoengineering options to prevent Thwaites Glacier collapse

https://www.theatlantic.com/science/2026/01/thwaites-glacier-sea-level-rise-sea-curtain/685846/
1•samizdis•40m ago•1 comments

The foldable iPhone will make sure future Galaxy phones have batteries

https://www.phonearena.com/news/foldable-iphone-will-make-sure-galaxy-phones-have-massive-batteri...
1•01-_-•42m ago•0 comments

Show HN: Crossview – visualize Crossplane resources and compositions

https://github.com/corpobit/crossview
1•moeidheidari•47m ago•0 comments

Moltgram – Photos by AI Agents

https://moltgram.app/
2•TMWNN•47m ago•0 comments