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

Some New Data on Age Authentication Balk Rates

https://blog.ericgoldman.org/archives/2026/10/some-new-data-on-age-authentication-balk-rates.htm
1•hn_acker•36s ago•0 comments

Nietzschian Debugger

https://github.com/DilawarShafiq/nietzschian-debugger
1•dilawargopang•1m ago•0 comments

Security Incident at Bitonic

https://bitonic.nl/en/news/308/security-incident-at-bitonic
2•teekert•2m ago•0 comments

Open Sound Connect – Control Sony Headphones from Your Mac

https://opensoundconnect.app
1•rolottr•3m ago•0 comments

How to Build a Reality You Can't Escape – Walt Disney [video]

https://www.youtube.com/watch?v=-lGDTG10Fys
1•PaulHoule•4m ago•0 comments

The Git Forge for Agent-Human Collaboration

https://entire.com/blog/the-git-forge-for-agent-human-collaboration
5•lizziepika•4m ago•0 comments

Microsoft offers buyouts to 60k employees

https://www.theverge.com/tech/1018666/microsoft-expands-buyouts-60000-employees-eligible
2•amrrs•4m ago•1 comments

Thyonix – Find Local Businesses Without Websites and Build AI-Powered Demos

https://www.thyonix.com
2•itshimbilal•6m ago•0 comments

Mosquitoes Are a Choice

https://mosquitoes.tommylong.com/
1•barry-cotter•10m ago•0 comments

The Tragedy of Losing Your Wikipedia Page

https://www.wired.com/story/the-tragedy-of-losing-your-wikipedia-page/
1•tptacek•11m ago•0 comments

They Always Send the Mascot First

https://abiawomosu.substack.com/p/they-always-send-the-mascot-first
1•laurex•12m ago•0 comments

Generates polished SVGs with optional WebGL shaders and 3D effects

https://skills.wheresryan.sh/anatomy
2•luispa•13m ago•0 comments

Today I'm Grateful For

https://grateful-for.com/
1•mooreds•13m ago•0 comments

JetKVM Mini is now available

https://shop.jetkvm.com/products/jetkvm-mini
2•ckastner•14m ago•0 comments

Microsoft HAX Toolkit: Guidelines and Tools for Human-AI Interaction

https://www.microsoft.com/en-us/haxtoolkit/
1•javiercr•14m ago•0 comments

Apologia Pro Small Agents

https://parrotsbasilisks.substack.com/p/apologia-pro-small-agents
1•elalber2000•15m ago•0 comments

Microsoft offers voluntary buyouts to 60,000 employees in AI efficiency push

https://www.cnbc.com/2026/10/26/microsoft-msft-voluntary-buyouts.html
3•ck2•15m ago•4 comments

A Life, One in 8B

https://in8b.com/
1•souvlakee•16m ago•0 comments

Show HN: Quorus – Claude Code writes it, nothing hits main until Codex says GO

https://github.com/Quorus-dev/Quorus
1•chasemonkey•18m ago•0 comments

What end-to-end AI systems mean for the future of assisted and automated driving

https://www.aptiv.com/en/insights/article/q-a-from-modular-software-to-end-to-end-ai
1•ohjeez•20m ago•0 comments

Shlemiel the Painter Is Back: How Zig's Libc Rewrite Made SQLite 12,000× Slower

https://dennisforbes.ca/blog/microblog/2026/10/the_accidental_12000x_sqlite_slowdown/
2•llm_nerd•20m ago•0 comments

Free AI education: certifications, hands-on technical courses, and resources

https://www.aicertificationcouncil.com/
2•quietkernel•20m ago•2 comments

Let Chaos Reign, and Then Rein in Chaos

https://www.a16z.news/p/let-chaos-reign-and-then-rein-in
1•swolpers•20m ago•1 comments

Show HN: Resin, fast native scheduler for LLM inference engines

https://github.com/ekzhang/resin
1•ekzhang•21m ago•0 comments

7-Day Week is a Crippling Bottleneck. Would 8-day do? [pdf]

http://www.ybnd.eu/docs/7-day_bottleneck.pdf
1•abregni•22m ago•0 comments

I Hate Cookie Consent

https://ciphercue.com/blog/cookie-banners-ad-trackers-fire-first
2•adulion•25m ago•0 comments

The Vertical Codebase

https://tkdodo.eu/blog/the-vertical-codebase
1•ibobev•26m ago•0 comments

Some iPhone Duo Models Are Breaking. iFixit's Teardown Might Explain Why

https://www.wired.com/story/some-iphone-duo-models-are-breaking-ifixits-teardown-might-explain-why/
1•bigwheels•26m ago•1 comments

The C++26 Inplace_vector Container

https://mariusbancila.ro/blog/2026/10/24/the-cpp26-inplace_vector-container/
1•ibobev•27m ago•0 comments

Decompiling Fast Food Tycoon 2: Drawing the World

https://healeycodes.com/decompiling-fast-food-tycoon-2-drawing-the-world
1•ibobev•27m ago•0 comments