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

A Remote Employee Refused 160 Webcam Photos a Day. Her Employer Fired Her

https://www.inc.com/chloe-rosenberg/a-remote-employee-refused-160-webcam-photos-a-day-her-employe...
1•bhrlady•1m ago•0 comments

Tattoos You Can Turn on and Off

https://www.livescience.com/technology/cool-chemistry-trick-allows-new-tattoos-to-turn-on-and-off
1•MortyDev•4m ago•0 comments

Show HN: Doiter – Language where pointers and stack frames are Docker containers

https://github.com/simvux/doiter
1•simvux•5m ago•0 comments

The Universal LLM Server

https://zml.ai/llmd/
1•ahamez•5m ago•0 comments

Why 'externalized' proofs of cyclic trait impls does not work

https://smallcultfollowing.com/babysteps/blog/2026/10/10/modular-vs-external-proofs/
1•khalidkhair•8m ago•0 comments

Why demand for the shingles vaccine is soaring

https://www.theguardian.com/society/2026/oct/11/dementia-demand-for-shingles-vaccine-is-soaring
1•robotmay•10m ago•0 comments

A hub that controls all your coding agents in one place

1•mubashir1osmani•16m ago•0 comments

Auto Research: Integer multiplication below n log n

https://app.getsupers.com/auto-research
1•swesnow•20m ago•0 comments

The Present Only Matters If It Gets You Somewhere Else

https://wellnessphd.substack.com/p/the-present-only-matters-if-it-gets
3•jpr71•24m ago•0 comments

Show HN: I Cut my Agent Tokens By 50%

2•iohotspot•26m ago•2 comments

Show HN: A Chromium browser you drive with HTTP requests (no Selenium)

https://github.com/techxcelerate/browser-mini
2•nitikshkumar•27m ago•0 comments

Your IP Has Been Reset

https://olliegreen.info/posts/19/your-ip-has-been-reset/
2•Oarch•27m ago•0 comments

How Fungi's Evolutionary Delay Gave Us Fossil Fuels

https://medium.com/@datavector/how-fungis-evolutionary-delay-gave-us-fossil-fuels-c7107e12b371
2•thunderbong•30m ago•1 comments

The Toftwood Male Voice Choir: A Mystery Pressed in Vinyl

https://ei3lh.eu/2026/10/11/the-toftwood-male-voice-choir-a-mystery-pressed-in-vinyl/
3•austinallegro•32m ago•0 comments

OpenAI fires 3 safety researchers in dispute over AI risks

https://apnews.com/article/openai-chatgpt-ai-artificial-intelligence-safety-789d4f5293fba45a22fcb...
6•devonnull•34m ago•0 comments

Multi-agent harnesses need separate message channels

https://harshalgajjar.com/blog/multi-agent-harnesses-need-separate-message-channels
2•harshalgajjar•34m ago•0 comments

Impersonating Grok Bot for Fun and (No) Profit

https://nightd.dev/blog/impersonating-grok-bot-for-fun-and-no-profit/
3•rckoepke•34m ago•0 comments

Anthropic's Claude submits false tip on a Philadelphia unsolved homicide case

https://apnews.com/article/artificial-intelligence-anthropic-claude-0acc6ac46d4d80db805e8d55468a6fe1
7•billybuckwheat•35m ago•0 comments

OpenAI fired its own auditor before its revenue story shrank by $20B

https://theinference.org/article/openai-fired-its-own-auditor-s-contact-days-before-its-revenue-s...
7•vincentjiang•37m ago•0 comments

Distorted Intelligence at the AI Frontier

https://www.project-syndicate.org/commentary/distorted-intelligence-training-byproduct-may-explai...
3•Bluestein•38m ago•0 comments

The Ghost in the Pipe: Giving AI agents direct access to a live Smalltalk image

https://medium.com/@paul_93782/the-ghost-in-the-pipe-e6643e2f08a4
2•Pauel•38m ago•0 comments

I don't think image containers supporting both lossless and lossy is good

2•functionmouse•40m ago•0 comments

Show HN: Inside-out analytics for product-led teams

https://www.invarhq.com/
1•vicngan05•43m ago•0 comments

The islands on the front line of England's age-old rivalry with France

https://uk.style.yahoo.com/forgotten-islands-front-line-england-120000338.html
2•nephihaha•47m ago•0 comments

The M-VAVE FM-1

https://taoofmac.com/space/reviews/2026/10/11/2100
1•rcarmo•48m ago•0 comments

Andrej Karpathy breaks down the capability gap

https://twitter.com/karpathy/status/2109361546505966046
3•albertzeyer•48m ago•0 comments

OpenCode 2.0

https://anoma.ly/notes/opencode-2-0/
2•bodash•49m ago•0 comments

Ask HN: Have you ever spoken truth to power?

2•taxicabjesus•49m ago•0 comments

Show HN: Proc-stats – a task manager for Claude Code sessions

https://github.com/DragosMocrii/proc-stats
1•dragosmocrii•51m ago•1 comments

Build your founders' agreement before things get complicated

https://founderagreement.com/
2•cs1996•52m ago•0 comments