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

Comments

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

The Download: bad news for inner Neanderthals, and AI warfare's human illusion

https://www.technologyreview.com/2026/04/17/1136112/the-download-inner-neanderthal-ai-war-human-i...
1•joozio•23s ago•0 comments

3-D Model Shows Firefighters Had Limited View in LaGuardia Crash

https://www.nytimes.com/interactive/2026/04/16/nyregion/laguardia-plane-crash-fire-truck-why.html
1•cloche•25s ago•0 comments

Self-care: Claude Code plugin to self-improve Claude Code

https://github.com/Not-Diamond/self-care
1•t5-notdiamond•2m ago•0 comments

Justice Thomas Speaks in Honor of 250th Anniversary of U.S.

https://www.c-span.org/program/public-affairs-event/justice-thomas-speaks-in-honor-of-250th-anniv...
1•petethomas•4m ago•0 comments

Show HN: Vibe-coding video games with Claude

https://gamevibe.us/2-hangman
2•pzxc•5m ago•0 comments

Bringing more transparency to GitHub's status page

https://github.blog/news-insights/company-news/bringing-more-transparency-to-githubs-status-page/
1•soheilpro•6m ago•1 comments

I Refrain from Infosec Punditry

https://lcamtuf.substack.com/p/why-i-refrain-from-infosec-punditry
1•Brajeshwar•6m ago•0 comments

Live Translation, Right in the Browser

https://artisincode.com/essays/live-translation-right-in-the-browser/
2•parentheses•6m ago•0 comments

The Hotspot Claude Would Never Have Found by Reading the Code

https://www.ej-technologies.com/blog/2026/04/the-hotspot-claude-would-never-have-found-by-reading...
1•ikej•7m ago•0 comments

Quality Assessment Report Evaluates Tomorrow.io Precipitation Radar Data

https://science.nasa.gov/science-research/earth-science/quality-assessment-report-evaluates-tomor...
1•salkahfi•7m ago•0 comments

Show HN: Corvi Careers – privacy first job search with resume matching

https://corvi.careers/
1•sp1982•7m ago•0 comments

The Great Convergence and Its Discontents

https://newdesigncongress.org/en/pub/the-great-convergence-and-its-discontents/
1•laurex•8m ago•0 comments

Sneaker Company Allbirds Plans to Pivot to A.I

https://www.nytimes.com/2026/04/15/us/allbirds-shoes-ai-pivot.html
1•bookofjoe•8m ago•1 comments

Airline adds bunk beds for economy travelers but bans snacks, smells and cuddles

https://apnews.com/article/air-new-zealand-economy-bunk-beds-sleep-c2c434f60116f332c0ce96c69d662c3b
2•randycupertino•11m ago•0 comments

Build Agents that never forget

https://twitter.com/akshay_pachaar/status/2043745099792953508
1•gmays•13m ago•0 comments

From Future of Work to Future of Workers: Addressing Asymptomatic AI Harms

https://arxiv.org/abs/2601.21920
1•laurex•14m ago•0 comments

Looking for feedback on a paper about a revision-capable language model [pdf]

https://github.com/Sean-Diab/Reviser/blob/main/main.pdf
1•param-updater•19m ago•1 comments

Under the hood of MDN's new front end

https://developer.mozilla.org/en-US/blog/mdn-front-end-deep-dive/
1•caisah•21m ago•0 comments

OpenAI expands Codex beyond coding with computer use, memory, and plugins

https://www.neowin.net/news/openai-expands-codex-beyond-coding-with-computer-use-memory-and-plugins/
1•Brajeshwar•22m ago•1 comments

"AI Affiliate Campaign Builder – Auto-generates funnels,leads and promos in 60s"

https://3000-ixuoqvbqmnmkcitl7dir1-6ba1a608.us2.manus.computer
1•rooseveltc•22m ago•0 comments

Recall issued for power banks after explosion kills woman

https://www.cpsc.gov/Recalls/2026/Casely-Reannounces-Recall-of-Wireless-Portable-Power-Banks-Due-...
3•labelbabyjunior•22m ago•0 comments

Closed Source Is a Business Decision, Not Security

https://javiergonzalez.io/blog/closed-source-as-a-security-model/
1•javier123454321•25m ago•0 comments

The Patchwright – Cyberpunk Short Film [video]

https://www.youtube.com/watch?v=-Rzl7nUdEs4
2•daureg•26m ago•1 comments

International standard paper sizes: A series

https://en.wikipedia.org/wiki/International_standard_paper_sizes
2•doener•26m ago•0 comments

Anthropic's Nuclear Bomb

https://warontherocks.com/cogs-of-war/anthropics-nuclear-bomb/
2•azanar•27m ago•1 comments

Show HN: PanicLock – Close your MacBook lid disable TouchID –> password unlock

https://github.com/paniclock/paniclock/
1•seanieb•28m ago•0 comments

SETI may have been tuned to the wrong frequencies

https://iopscience.iop.org/article/10.3847/1538-4357/ae3d33
1•johnbarron•28m ago•0 comments

I built an on-premise ERP for wholesale distributors in Delphi

https://asktheledger.com/
1•josephsprei•30m ago•0 comments

Show HN: Clamp – Web analytics your AI agent can read and query

https://clamp.sh
2•sidneyottelohe•31m ago•1 comments

The Future of Testing Is Here

https://testkube.wistia.com/live/events/gigwl708fn
1•evwitmer•32m ago•1 comments