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

From MemSQL to HorizonDB, an Engineer's Journey with Adam Prout

https://talkingpostgres.com/episodes/from-memsql-to-horizondb-an-engineers-journey-with-adam-prout
1•clairegiordano•50s ago•0 comments

When is your birthday? – The Math Behind Hash Collisions

https://0xkrt26.github.io/math_behind_security/2026/05/08/birthday-problem.html
1•denismenace•1m ago•0 comments

Beyond Human Syntax – The Logic of Future Coding Agents

https://www.thebigdatablog.com/nela-beyond-human-syntax-the-logic-of-future-coding-agents/
1•heikowag•2m ago•0 comments

AI, the Poor, and the Ignorant

https://user8.bearblog.dev/ai-the-poor-and-the-ignorant/
1•James72689•4m ago•0 comments

Using Claude Code: The Unreasonable Effectiveness of HTML

https://twitter.com/trq212/status/2052809885763747935
1•tchalla•5m ago•0 comments

Real-time collaboration will not ship in WordPress 7.0

https://make.wordpress.org/core/2026/05/08/rtc-removed-from-7-0/
1•pentagrama•7m ago•0 comments

A 3D explorer of the Bitcoin blockchain

https://blockparty-omega.vercel.app/
1•dca_mindset•7m ago•0 comments

1k-year-old archaeological site bulldozed during construction of border wall

https://www.theartnewspaper.com/2026/05/05/border-wall-construction-bulldozes-archaeological-site
1•YeGoblynQueenne•8m ago•0 comments

Félix Guattari – The Image Machine (1990)

https://www.e-flux.com/notes/6783490/the-image-machine
2•bondarchuk•8m ago•0 comments

Frontier models refuse to help organizers, so we built our own activist AI

https://www.outcryai.com/research/how-to-create-activist-ai
1•micahwhite•9m ago•0 comments

Rolo: Relationship Intelligence Tool

https://rolo.agentschool.io/
2•amahjoor•9m ago•0 comments

If You Read One Screenwriting Book, Read This

https://jamesgarside.substack.com/p/if-you-read-one-screenwriting-book
1•monkeymagick•11m ago•0 comments

Classification of Amino Acids

https://www.khanacademy.org/test-prep/mcat/chemical-processes/amino-acids-peptides-proteins-5d/v/...
1•kamaraju•12m ago•0 comments

A New Era of Security: Frontier AI Defense

https://www.paloaltonetworks.com/blog/2026/05/frontier-ai-defense/
1•yusufozkan•13m ago•0 comments

She had four kids with Elon Musk. Now she's central to his courtroom fight

https://www.washingtonpost.com/technology/2026/05/08/shivon-zilis-elon-musk-trial/
2•1vuio0pswjnm7•15m ago•1 comments

Notes from Code with Claude 2026

https://chrisebert.net/notes-from-code-with-claude-2026/
1•rmason•15m ago•0 comments

The nightmare of changing your internet bundle

https://laze.net/2026/05/07/the-nightmare-of-changing-your.html
1•speckx•17m ago•0 comments

Bring your own init: PID 1 handoff

https://microsandbox.dev/blog/bring-your-own-init
1•toksdotdev•19m ago•0 comments

The Drones Coming to Schools to Stop Mass Shootings

https://www.wsj.com/business/a-startup-is-supplying-drones-to-high-schools-to-stop-mass-shootings...
2•rmason•19m ago•1 comments

Camera Firmware Engineer, Consumer Devices

https://openai.com/careers/camera-firmware-engineer-consumer-devices-san-francisco/
1•haberdasher•21m ago•0 comments

Michael Burry: the market today feels like 'last months of the 1999-2000 bubble'

https://www.cnbc.com/2026/05/08/michael-burry-says-the-market-today-feels-like-the-last-months-of...
2•1vuio0pswjnm7•22m ago•1 comments

Pokegents: Making multi-agent coding feel like a team

https://castform.com/blog/pokegents/
7•kumama•24m ago•1 comments

Show HN: Agent-fox – write a spec, run agent-fox, and go do something else

https://github.com/agent-fox-dev/agent-fox
1•mickuehl•25m ago•0 comments

Practical Formal Verification for MLIR Programs

https://arxiv.org/abs/2605.01124
1•matt_d•27m ago•0 comments

Designing Microkernel IPC

https://seiya.me/blog/microkernel-ipc-design
1•birdculture•27m ago•0 comments

Discord Incident

https://discordstatus.com
9•moelf•28m ago•2 comments

Gemini 3.1 Flash-Lite is now generally available

https://cloud.google.com/blog/products/ai-machine-learning/gemini-3-1-flash-lite-is-now-generally...
1•nateb2022•28m ago•0 comments

Digg Relaunches (Again)

https://di.gg/ai
2•qingcharles•30m ago•0 comments

How to Scale Your Model

https://jax-ml.github.io/scaling-book/
2•gmays•32m ago•0 comments

Meta's Embrace of A.I. Is Making Its Employees Miserable

https://www.nytimes.com/2026/05/08/technology/meta-ai-employees-miserable.html
2•1vuio0pswjnm7•32m ago•1 comments