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

Show HN: I made Chrome extension to blocks websites with a Mindful twist

https://www.zenblock.app/
1•NayanCodes•2m ago•0 comments

Parsemail

https://www.grepular.com/ParseMail
1•ingve•2m ago•0 comments

Consent is all you need

https://jotter.jonathankingston.co.uk/blog/2026/02/22/consent-is-all-you-need/
1•kingstonTime•2m ago•1 comments

AI Twitter's favourite lie: everyone wants to be a developer

https://www.joanwestenberg.com/ai-twitters-favourite-lie-everyone-wants-to-be-a-developer/
1•MindGods•4m ago•0 comments

Lukkly

https://lukklynodeposit.com/
1•Rafulson•6m ago•0 comments

Show HN: 3D Mahjong, Built in CSS

https://voxjong.com
1•rofko•7m ago•1 comments

The Dev-Room Dashboard(iam a 12 years old coder)

https://kcreations681-cpu.github.io/My-room/
1•kabishanan•7m ago•1 comments

Ask HN: Algorithmic optimization for aesthetic, non-uniform movement

1•aegis-bot•9m ago•0 comments

How did bacterial flagella evolve? [video]

https://www.youtube.com/watch?v=eFC9VzexRUk
1•appreciatorBus•9m ago•0 comments

What Is AI Literacy?

https://mnky9800n.substack.com/p/what-is-ai-literacy
2•mnky9800n•11m ago•0 comments

Show HN: Rendering 18,000 videos in real-time with Python

https://madebymohammed.com/pysaic
1•mbmproductions•13m ago•0 comments

Show HN: ZoomShot – Live screen zoom, cursor highlight and drawing for macOS

https://apps.apple.com/us/app/zoomshot-live-screen-effect/id6758536367?mt=12
1•turingsroot•13m ago•0 comments

The Substack Print: turn your favorite Substack into a printable newspaper

https://substackprint.com/
1•taubek•13m ago•0 comments

Get React out of my terminal: a case for headless mode

https://www.galiglobal.com/blog/2026/20260213-get-react-out-of-my-terminal-a-case-for-headless-mo...
1•antonmry•14m ago•0 comments

Copilot spills the beans, summarizing emails it's not supposed to read

https://www.theregister.com/2026/02/18/microsoft_copilot_data_loss_prevention/
1•Bender•15m ago•0 comments

Hare

https://harelang.org/
1•tosh•17m ago•0 comments

Show HN: ZkzkAgent now has safe, local package management

https://github.com/zkzkGamal/zkzkAgent
1•Zakaria_Gamal•17m ago•0 comments

Microsoft boffins cook up storage using Pyrex glass can last over 10k years

https://www.theregister.com/2026/02/19/microsoft_glass_storage/
1•Bender•18m ago•1 comments

Show HN: Llamora, a local-first journaling environment

https://github.com/joelkuiper/Llamora
1•anon1253•18m ago•0 comments

Agile Manifesto turns 25 – just in time for vibe coding to test it

https://www.theregister.com/2026/02/19/jon_kern_vibe_coding/
1•Bender•19m ago•0 comments

Log into vintage computer systems via the browser, thanks to the ICM

https://www.tomshardware.com/video-games/retro-gaming/you-can-log-into-28-vintage-computer-system...
1•ontheinterwebs•20m ago•0 comments

Having fun while exploring topology

https://koaning.io/posts/having-fun-while-exploring-topology/
1•Brajeshwar•20m ago•0 comments

A Brief History of the History of Science

https://asteriskmag.com/issues/13/a-brief-history-of-the-history-of-science
1•Brajeshwar•20m ago•0 comments

How to Win at CORS (2021)

https://jakearchibald.com/2021/cors/
1•mooreds•20m ago•0 comments

How to Monitor Mom and Dad Without Becoming Big Brother

https://www.wsj.com/tech/personal-tech/monitor-aging-relatives-privacy-4d66a749
1•Brajeshwar•21m ago•0 comments

Show HN: A developer portfolio that tracks real recruiter engagement

https://portlumeai.com/
1•portlumeai•21m ago•0 comments

Embrace Abstract Photography

https://petapixel.com/2026/02/15/why-you-should-embrace-abstract-photography/
1•PaulHoule•23m ago•0 comments

Show HN: MCP4H – A human-centric extension for the Model Context Protocol

https://mcp4h.github.io/
1•its-a-new-world•24m ago•1 comments

Solidclaw Local credential broker and model proxy for OpenClaw

https://github.com/zerobitflip/solidclaw
1•vampiregrey•24m ago•1 comments

Show HN: Semantic search over Hacker News, built on pgvector

https://ask.rivestack.io/
2•stranger90•27m ago•1 comments