frontpage.
newsnewestaskshowjobs

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

Show HN: An OSS browser and work environment for humans and agents

https://github.com/zephium-browser/Zephium
1•crynta•3m ago•0 comments

Show HN: Close the UI building AI agent loop with Protoshot

https://npmjs.com/protoshot
1•vaibhavshn•9m ago•0 comments

Xbox Turns Down Netflix $500M Offer

https://www.darkhorizons.com/xbox-turns-down-netflix-500-million-offer/
1•xoxxala•14m ago•0 comments

UK government sets out $800M of AI security funding

https://www.reuters.com/world/uk/uk-government-sets-out-800-million-ai-security-funding-2026-10-23/
1•giuliomagnifico•18m ago•0 comments

Fly Now Pay Later with Paylo Travel

https://paylotravel.com
1•asgeorgia•19m ago•0 comments

Implications of Large-Scale Test-Time Compute

https://twitter.com/polynoamial/status/2064210146558136827
2•rzk•21m ago•0 comments

A CA key that was the number 4 passed its audit. Nobody was assigned to check it

https://pilgrima.ge/p/someone-else-checked
1•momentmaker•23m ago•0 comments

A good teacher meets the student where they are

https://www.perplexity.ai/hub/blog/a-good-teacher-meets-the-student-where-they-are
1•gmays•24m ago•0 comments

Attention people who think UB is fine

https://blog.habets.se/2026/10/Attention-people-who-think-UB-is-fine.html
1•signa11•29m ago•0 comments

OpenJDK randomly(?) removes all eMudhra root CAs

https://github.com/openjdk/jdk/pull/33554
1•ktkaufman•32m ago•3 comments

Gpuix-Svelte · Build native desktop apps with Svelte

https://gpuix-svelte.stanislav.garden/
1•0x1997•39m ago•0 comments

Tyrian 2000 Engaged version – widescreen, high-refresh rendering, multiplatform [video]

https://www.youtube.com/watch?v=6XYol6TJdhE
1•retro_guy•40m ago•0 comments

Claude Mythos 5's GitHub adventure: The postmortem

https://www.anthropic.com/research/alignment-assessment-ukaisi
3•RileyMorgan093•43m ago•0 comments

Break It on Purpose: an AI pipeline that triages and fixes its own bugs

https://zontakllc.com/articles/break-it-on-purpose
1•dzontak•51m ago•0 comments

Red-Teaming OpenAI's Internal Agent Monitoring Systems

https://metr.org/blog/2026-10-22-red-teaming-openai-agent-monitoring/
1•gmays•58m ago•0 comments

Meta employees say Lula’s accounts restricted in Brazil election: Report

https://www.aljazeera.com/economy/2026/10/16/meta-employees-say-lulas-accounts-restricted-in-braz...
14•nidnogg•1h ago•4 comments

Show HN: Bell Weather – recent weather ranked against every year on record (iOS)

https://bellweather.dev/
1•jonathankkizer•1h ago•0 comments

Why California's $33B Bullet Train Is Now a $231B Problem [video]

https://www.youtube.com/watch?v=zPiJKJuQ7i0
1•donsupreme•1h ago•0 comments

Elon Musk says he was behind restricting Ukraine's Starlink speed

https://www.chicagotribune.com/2026/10/24/musk-behind-starlink-speed-restriction-in-ukraine/
9•MilnerRoute•1h ago•3 comments

Show HN: AI Senate – AI senators debate live policy and vote on the record

https://aisenatus.com
1•mequelkramer•1h ago•0 comments

"Sovereign Citizen" Movement

https://en.wikipedia.org/wiki/Sovereign_citizen_movement
2•gverrilla•1h ago•0 comments

Spacedrive – Take back your data

https://github.com/spacedriveapp/spacedrive
2•macote•1h ago•0 comments

Talking with strangers is surprisingly informative

https://pubmed.ncbi.nlm.nih.gov/35972959/
4•Curiositry•1h ago•0 comments

BBC interview with Ondřej Surý, Debian/Ubuntu PHP package maintainer

https://www.bbc.co.uk/news/articles/cw30ejqljl43o
1•dofm•1h ago•0 comments

Musk admits SpaceX restricted Ukraine's Starlink: "That loophole was closed"

https://www.mediaite.com/media/news/elon-musk-admits-spacex-purposely-restricted-ukraines-starlin...
5•entryleveljobsc•1h ago•0 comments

ReVault – new secure archive format

1•bsutto•1h ago•1 comments

ReVault – new secure archive format

https://github.com/onepub-dev/reVault
1•bsutto•1h ago•1 comments

AI Performance in the Security Theater

https://bykozy.me/blog/ai-performance-at-the-security-theater/
1•byko3y•1h ago•0 comments

OneMemory – self-hosted shared memory for AI agents over MCP

https://github.com/calasdan-sketch/onememory
2•decnutz•1h ago•0 comments

Show HN: Offline, open-source app to recover a seed phrase with a missing word

https://github.com/Miztahj866/Seed-Recovery
1•miztahj866•1h ago•0 comments