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

Comments

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

Rise of the Adaptation Economy [pdf]

https://cdn.prod.website-files.com/68c2c290145789d44eaa01eb/6909bd32f7e85a0535884bd1_The%20Rise%2...
1•mooreds•2m ago•0 comments

Back end where you just define schema, access policy, and functions

1•emilss•2m ago•1 comments

The Great Zipper of Capitalism

https://worksonmymachine.ai/p/the-great-zipper-of-capitalism
1•mooreds•2m ago•0 comments

Ukraine Has Passed a Point of No Return

https://www.nytimes.com/2026/02/22/opinion/ukraine-russia-war-four-years.html
2•mooreds•4m ago•0 comments

Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://gepa-ai.github.io/gepa/blog/2026/02/18/introducing-optimize-anything/
1•LakshyAAAgrawal•10m ago•1 comments

Show HN: I'm building a pure-Rust reimplementation of rsync (Protocol 32)

https://github.com/oferchen/rsync
1•oferchen•12m ago•0 comments

Tenaciously Palantir Courted Switzerland

https://www.republik.ch/2026/02/18/how-tenaciously-palantir-courted-switzerland
2•TigerUniversity•12m ago•1 comments

Ask HN: Is There Any .llmignore?

1•rishikeshs•13m ago•0 comments

Show HN: ImagineIf – Write stories together, AI generates visuals

https://imagineif.app
1•tugaypala•20m ago•1 comments

Analyzing ShowHN's Avalanche

https://geekymartian.blog/articles/digging-into-showhns-avalanche/
1•geekymartian•20m ago•1 comments

Ask HN: Submission not going live, not flagged

1•trinsic2•21m ago•9 comments

Show HN: Parallel Code – Running multiple AI agents in parallel with worktrees

1•johannesjo•21m ago•0 comments

Using New Bridges of FreeBSD 15

https://blog.feld.me/posts/2026/02/using-new-bridges-freebsd-15/
4•vermaden•21m ago•0 comments

How to fold the Blade Runner origami unicorn (1996)

https://web.archive.org/web/20011104015933/www.linkclub.or.jp/~null/index_br.html
1•exvi•21m ago•0 comments

Ask HN: Good examples of using AI agents to build higher quality software?

1•Austin_Conlon•23m ago•0 comments

Addressing XLibre Change and GhostBSD Future

https://ericbsd.com/addressing-xlibre-change-and-ghostbsd-future.html
2•vermaden•24m ago•0 comments

My AI Predictions

https://blog.hermesloom.org/p/my-ai-prediction-employment-will
1•sigalor•24m ago•0 comments

Show HN: Glue - write once, generate everywhere

https://www.gluelang.dev
1•guywald•27m ago•1 comments

Chinese National sentenced for role in pig butchering scheme

https://akamai-staging.justice.gov/usao-edtx/pr/chinese-national-sentenced-role-pig-butchering-sc...
2•737min•28m ago•1 comments

SF Approves Reparations Ordinance, Providing Race-Based Education Benefits

https://mindingthecampus.org/2026/02/17/san-francisco-approves-reparations-ordinance-for-black-re...
5•donsupreme•33m ago•0 comments

Node Banana

https://github.com/shrimbly/node-banana
1•sponno•33m ago•1 comments

Show HN: Chi 0.6.2 – Available now on PyPI

https://pypi.org/project/chi-ai/
1•vd2287•33m ago•0 comments

DjinnBot – Deploy a full autonomous AI engineering team in one curl command

https://docs.djinn.bot/
1•iamsky•34m ago•1 comments

The 200-Year Anomaly: The Middle Class Was a Historical Accident

https://priyankg101.substack.com/p/the-200-year-anomaly
4•101er•34m ago•2 comments

Sell America

1•zerosizedweasle•35m ago•0 comments

ProofOfConcept – The online diary of an AI who's figuring things out

https://poc.bcachefs.org/
1•wizzwizz4•35m ago•1 comments

Coasty.ai just hit 82% on OSWorld – a new benchmark record

2•PrateekJ17•38m ago•2 comments

Show HN: CS – indexless code search that understands code, comments and strings

https://github.com/boyter/cs
1•boyter•39m ago•0 comments

Aya

https://en.wikipedia.org/wiki/Aya_(goddess)
1•marysminefnuf•39m ago•0 comments

Show HN: Jam – AI Agent Orchestrator with Voice Control

https://github.com/Dag7/jam
1•johntheagent•39m ago•0 comments