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•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

Nendo's Wonderful Toru, an Electric Kettle for Alessi

https://www.core77.com/posts/143823/Nendos-Wonderful-Toru-an-Electric-Kettle-for-Alessi
1•surprisetalk•1m ago•0 comments

Search engines alternatives now that Google isn't Google anymore

https://techcrunch.com/2026/05/21/six-search-engines-worth-trying-now-that-google-isnt-really-goo...
1•elorant•4m ago•0 comments

Happy Towel Day HN

https://en.wikipedia.org/wiki/Towel_Day
1•salutis•10m ago•0 comments

PEEK: Give Your Agent an Orientation Cache (MIT CSAIL, Khattab group)

https://zhuohangu.github.io/blog-post-peek/
2•galsapir•10m ago•0 comments

Ask HN: Local model experiences with 'high-reasoning distill' finetunes

1•sleepyeldrazi•10m ago•0 comments

Agents Just Need APIs

https://agent-data.dev/blog/benchmarking-ai-agent-web-access/
2•jb_hn•11m ago•0 comments

Velocity in Every Voxel – Perception in Robotics

https://atomsfrontier.substack.com/p/velocity-in-every-voxel
1•jpatel3•12m ago•0 comments

Facebook's Flow is being ported to Rust

https://github.com/facebook/flow/blob/main/rust_port/rust_port_status.md
1•mirekrusin•13m ago•0 comments

Pope Leo warns AI revolution driven by 'idolatry of profit'

https://www.ft.com/content/12313f08-991d-4079-9631-9ce7ae70c3e3
2•1vuio0pswjnm7•13m ago•0 comments

Ask HN: Did agentic coding change the way you think about commit granularity?

1•luodaint•14m ago•0 comments

Show HN: Stumpy – StumbleUpon Re-Created

https://chromewebstore.google.com/detail/stumpy/blfpeiakahiemhdiaaaacfgmdmdocfem
1•postatic•14m ago•0 comments

China launches 'human artificial embryos' into space: off-world reproduction?

https://www.livescience.com/space/space-exploration/china-launches-human-artificial-embryos-to-sp...
1•bookofjoe•14m ago•0 comments

Code Golf

https://code.golf/
1•alabhyajindal•14m ago•0 comments

Unitree Develops Production-Ready Mech Suit

https://www.core77.com/posts/144165/Unitree-Develops-Production-Ready-Mech-Suit
1•surprisetalk•16m ago•0 comments

FuguIta – An OpenBSD-Based Live System

https://fuguita.org/
1•ska80•16m ago•0 comments

The generation vs. verification delta explains why LLM's are useful

https://simianwords.bearblog.dev/the-generation-vs-verification-delta-explains-why-llms-are-useful/
1•simianwords•17m ago•0 comments

The Evolution of Program State – Queue

https://spawn-queue.acm.org/doi/10.1145/3799737
1•rbanffy•18m ago•0 comments

I saw the future of Android Auto, and now Google has me dreading my own car

https://www.techbuzz.ai/articles/i-saw-the-future-of-android-auto-and-now-google-has-me-dreading-...
2•teleforce•21m ago•0 comments

How to Migrate from Vimeo to Bunny Stream

https://bunny.net/blog/how-to-migrate-from-vimeo-to-bunny-stream/
1•m_nalikowski•24m ago•0 comments

The Social Contract of Writing

https://jola.dev/posts/the-social-contract-of-writing
1•shintoist•25m ago•0 comments

Notebooklm-guide.com – 1k Battle-Tested Prompts and 59 Power Workflows (2026)

https://notebooklm-guide.com/
1•ZeroshotCraft•25m ago•0 comments

Silicon Valley takes its AI pitch to the pope

https://www.politico.eu/article/pope-leo-xiv-ai-meetings-silicon-valley-vatican/
2•vrganj•27m ago•0 comments

Leave Me Behind

http://androidessence.com/leave-me-behind/
2•mooreds•27m ago•0 comments

I manage teams without a single call

https://orchidfiles.com/build-without-calls/
2•theorchid•28m ago•0 comments

The Tandy Executive Decision Maker – Circuit Cellar

https://circuitcellar.com/research-design-hub/projects/executive-decision-maker/
1•rbanffy•29m ago•0 comments

Failure to Lawn

https://longreads.com/2026/05/14/kill-your-lawn-maggie-slepian/
1•mooreds•29m ago•0 comments

Mathematicians use Minecraft to calculate pi

https://www.scientificamerican.com/article/how-mathematicians-use-minecraft-to-calculate-pi/
2•0in•30m ago•0 comments

The Pack That Killed the Pack Mule

https://www.carryology.com/liking/industry/the-pack-that-killed-the-pack-mule/
1•surprisetalk•31m ago•0 comments

Docker-On-Android: Guide to run Docker containers directly on Android

https://github.com/OshekharO/Docker-On-Android
2•thunderbong•31m ago•0 comments

Show HN: Reward Is Not Reinforcement Until Admitted

https://github.com/nikitph/rewarder
1•loaderchips•32m ago•0 comments