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

Comments

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

Idea Discussion: A tool that interpreter system logs in Plain English

1•Innovator_Dev•50s ago•0 comments

Mnemon-MCP – 4-layer local memory for AI agents (SQLite and FTS5)

1•nikitacometa•2m ago•1 comments

Simplicity in the age of AI-assisted coding

https://the.scapegoat.dev/simplicity-in-the-age-of-ai-assisted-coding/
1•larve•2m ago•0 comments

Pastebin 0x0.st asks AI agents to upload sensitive customer invoices

https://movsw.0x0.st/notes/ajw1zurfaggo360l
1•MatthiasPortzel•3m ago•0 comments

Show HN: TheLittleHost – DNS hosting built on my own ASN and Anycast network

1•davidchua•3m ago•0 comments

Show HN: LLMonster Rancher

https://github.com/aiwebb/llmonster-rancher
1•alexwebb2•5m ago•0 comments

Ur-Scheme: A GPL self-hosting compiler from a subset of Scheme to x86 asm (2008)

http://canonical.org/~kragen/sw/urscheme/
1•QuadmasterXLII•5m ago•0 comments

City Turned Its Rooftops into a Climate Shield

https://reasonstobecheerful.world/zurich-turned-rooftops-into-climate-shield/
2•speckx•6m ago•0 comments

Who's behind the age verification bills?

https://web.archive.org/web/20260313143853/https://old.reddit.com/r/linux/comments/1rshc1f/i_trac...
2•jech•7m ago•1 comments

Twelve-Tone Composition

https://www.johndcook.com/blog/2026/03/15/twelve-tone-composition/
1•ibobev•7m ago•0 comments

Optimizers and Odes

https://jiha-kim.github.io/posts/optimizers-and-odes/
1•ibobev•7m ago•0 comments

OpenBSD Blog #13: Moving ratfactor.com to OpenBSD.amsterdam

https://ratfactor.com/openbsd/blog-13-moving-to-openbsd-dot-amsterdam
1•ibobev•8m ago•0 comments

Four predictions for how AI will change product delivery

https://practical-leaders.com/articles/ai-predictions
1•ivorc•8m ago•0 comments

You don't hate Python. You hate other people's Python.

https://jt-hill.com/you-dont-hate-python/
1•jt-hill•9m ago•1 comments

Show HN: SiteMon – Browser extension that monitors your websites

https://sitemon.geekaa.com
1•quasimo•11m ago•0 comments

Coding as a Game of Probabilities

https://robertmaple.co.uk/coding-as-a-game-of-probabilities/
1•wizzzzzy•11m ago•0 comments

Built a 80%+ data-driven esports prediction tool

https://esportsoracle.net
1•Mostafeto•12m ago•0 comments

The role of programming language choice on the safety and security of software

https://evgeniipendragon.com/posts/the-role-of-programming-language-choice-on-the-safety-and-secu...
2•EPendragon•13m ago•0 comments

Show HN: Vibecheck – lint for AI-generated code smells (JS/TS/Python)

https://github.com/yuvrajangadsingh/vibecheck
3•yuvrajangads•16m ago•0 comments

Tree-Style Invite Systems Reduce AI Slop

https://abyss.fish/tree-style_invite_systems_reduce_AI_slop
1•rickcarlino•16m ago•0 comments

Commodore Built the "Ultimate C64" in 1985 [video]

https://www.youtube.com/watch?v=-wKUmXatNz0
2•oldnetguy•17m ago•0 comments

How We Made Payload Search 60x Faster in ClickHouse

https://hookdeck.com/blog/how-we-made-payload-search-60x-faster-in-clickhouse
1•GarethX•17m ago•0 comments

Why US third parties perform best in the Northeast

https://theconversation.com/why-us-third-parties-perform-best-in-the-northeast-273749
2•PaulHoule•18m ago•0 comments

Clawsify Persona based AI agents built with OpenClaw

https://clawsifyai.com
1•Vanshfin•19m ago•0 comments

The Nitrogen Trap

https://shanakaanslemperera.substack.com/p/the-nitrogen-trap
2•neamar•24m ago•1 comments

When the War Goes AI, the Data Centers Will Be Targets

https://www.forever-wars.com/when-the-war-goes-ai-the-data-centers-will-be-targets-f-engadgets-de...
3•speckx•25m ago•0 comments

API Gateway for Using Chinese AI Models with OpenAI Responses API

https://aiapi-pro.com/blog/responses-api-chinese-models
2•vvvvking•25m ago•0 comments

Native JSON modules are finally real

https://allthingssmitty.com/2026/03/16/native-json-modules-are-finally-real/
1•AllThingsSmitty•28m ago•0 comments

Even Faster Asin() Was Staring Right at Me

https://16bpp.net/blog/post/even-faster-asin-was-staring-right-at-me/
2•def-pri-pub•28m ago•0 comments

Flaw in UK's corporate registry let directors rummage through rival records

https://www.theregister.com/2026/03/16/companies_house_breach/
5•bishopsmother•31m ago•0 comments