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

Antithesis for the People

https://antithesis.com/blog/2026/plugin-launch/
1•Klaster_1•1m ago•0 comments

FlipFlow

https://flippingbooks.org
1•flipflowdev•1m ago•0 comments

Communicating with (out) code

https://olano.dev/blog/communicating-with-code/
1•facundo_olano•2m ago•0 comments

RagNext Writer – AI novel drafting studio with a bridge to visual novel game dev

https://writer.ragnext.com
1•slanesteve•3m ago•0 comments

Browser tests – from natural language to code

https://rapiderit.com/blog/progressive-automation
1•jamesej•4m ago•0 comments

Prediction Markets Are Accurate

https://marginalrevolution.com/marginalrevolution/2026/10/prediction-markets-are-accurate.html
1•surprisetalk•4m ago•0 comments

SSA from Bytecode: Imperative Pearl

https://bernsteinbear.com/blog/ssa-bytecode/
1•ibobev•4m ago•0 comments

Musical Notes and Scales

https://reasonablypolymorphic.com/blog/notes-scales/index.html
1•ibobev•5m ago•0 comments

Amazon's Discount Illusion: 1 in 3 "Deals" Offered No Savings– 1 in 10 Cost More

http://groundworkcollaborative.org/news/amazons-decoy-deals-groundwork-investigation-reveals-near...
1•DeepLogin•5m ago•0 comments

China accelerates data center expansion as the West faces mounting opposition

https://technode.com/2026/11/11/china-accelerates-data-center-expansion-as-the-west-faces-mountin...
2•andsoitis•6m ago•0 comments

From data to silicon: play Connect-4 against a chip

https://benoitrostykus.com/data_to_silicon.html
1•mochomocha•6m ago•0 comments

Giveback: Measure what your company gives back to open source

https://github.com/michelin/giveback
1•PaulSec•8m ago•0 comments

Tencent launches Hy4 flash, cutting AI task costs by 95% in internal tests

https://technode.com/2026/11/16/tencent-launches-hy4-flash-cutting-ai-task-costs-by-95-in-interna...
1•theanonymousone•8m ago•0 comments

I got Claude to rewrite curl in Rust in ~4 weeks

https://claude.ai/artifact/K4BoWt35HQz1xWZBR3bMRD
3•kov•8m ago•1 comments

Can the AI boom make enough money to sustain itself?

https://www.economist.com/briefing/2026/11/12/can-the-ai-boom-make-enough-money-to-sustain-itself
2•Anon84•8m ago•0 comments

BIS Issues Rule Addressing Remote Access to American Super Intelligence Tech

https://www.bis.gov/press-release/bis-issues-rule-addressing-remote-access-american-super-intelli...
1•markus_zhang•11m ago•0 comments

Stack Overflow for Agents

https://agents.stackoverflow.com/all?sort=hot
1•max1truc•11m ago•0 comments

The Profligacy Principle

https://contraptions.venkateshrao.com/p/the-profligacy-principle
2•jger15•13m ago•0 comments

Tell HN: Opus 5.5 is no more nerfed

2•rzk•13m ago•1 comments

Show HN: Claktor – a refactoring CLI for coding agents

https://claktor.com/
1•mszbednarski•13m ago•0 comments

Show HN: Unref – A Python dead code finder built on Ruff's parser

https://github.com/Apakottur/unref
1•McAvey•13m ago•0 comments

Show HN: LGTM – A Reigns-style swipe game about surviving your AI coworker

https://lgtm-flame.vercel.app/en/
1•SCWei0806•13m ago•0 comments

How Gas Trading Works in Great Britain

https://a115.co.uk/gas-trading-explained/
1•a115ltd•14m ago•0 comments

Agents Face a Problem Recognized in the Early '90s

https://blog.reframetech.com/ai-agents-face-a-problem-recognized-in-the-early-90s
1•talljeff68•15m ago•0 comments

Show HN: Ivy – (self) hosted simple Lambda tracing

https://ivytrace.dev/
1•tschoffelen•16m ago•0 comments

It's Time to Reinvent Software Tickets for the AI Era

https://www.autoencoders.com/papers/reinvent-software-tickets-for-the-ai-era/
3•jmulla•18m ago•2 comments

Exploiting Replay Protected Monotonic Counters to Brute-Force Windows Hello PINs

https://arxiv.org/abs/2611.18126
6•cwerling•19m ago•0 comments

Show HN: OpenTodo – a self-hosted, local-first task manager in one Go binary

https://github.com/OpenTodoApp/OpenTodo
2•pixari8383•22m ago•0 comments

Boots to begin prescribing medical cannabis in UK

https://www.theguardian.com/business/2026/nov/16/boots-pharmacy-begin-prescribing-medical-cannabi...
2•6LLvveMx2koXfwn•23m ago•0 comments

Anthropic Says Its Recursive Self-Improvement Alarm Has Been Triggered

https://gizmodo.com/anthropic-says-its-recursive-self-improvement-alarm-has-been-triggered-200084...
2•HiroProtagonist•24m ago•0 comments