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

Comments

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

NeoAgent – self-hosted proactiv Agent with Android, browser and desktop control

https://github.com/NeoLabs-Systems/NeoAgent
1•neo_original•3m ago•0 comments

The Military Rockets That Launched the Space Age (2023)

https://airandspace.si.edu/stories/editorial/military-rockets-launched-space-age
1•radeeyate•6m ago•0 comments

Designing synthetic datasets for the real world

https://research.google/blog/designing-synthetic-datasets-for-the-real-world-mechanism-design-and...
1•Anon84•7m ago•0 comments

Making the Rails Default Job Queue Fiber-Based

https://paolino.me/solid-queue-doesnt-need-a-thread-per-job/
1•ksec•11m ago•0 comments

The Most Successful Typeface in History | Helvetica [video]

https://www.youtube.com/watch?v=vxDySZrrAeA
1•skibz•15m ago•0 comments

Show HN: Enlist AI: Sub-second interview coaching with persistence

1•lilprince1218•15m ago•0 comments

Millet

https://en.wikipedia.org/wiki/Millet
1•num42•15m ago•0 comments

AgentCore Harness

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/harness.html
1•aor215•16m ago•0 comments

Brief delays in chatbot responses boost perceived thoughtfulness and usefulness

https://engineering.nyu.edu/news/why-faster-ai-isnt-always-better
2•giuliomagnifico•19m ago•1 comments

Metal Lossy Compression Format

https://www.ludicon.com/castano/blog/2026/04/metal-lossy-compression-format/
1•gok•19m ago•0 comments

Quarkdown 2.0 Is Here

https://www.heise.de/en/news/Books-and-slides-from-Markdown-Quarkdown-2-0-is-here-11271511.html
1•croes•22m ago•0 comments

From $200 to $30: Five Layers of LLM Cost Optimization

http://blog.dwornikowski.com/posts/cutting-llm-costs-token-optimization/
3•tdi•24m ago•0 comments

Basic Type System Terminology

https://lewiscampbell.tech/blog/250817.html
1•kugurerdem•24m ago•0 comments

Crafting an AI-Driven Workflow System [video]

https://www.youtube.com/watch?v=SrRweChigB0
1•pedrodelfino•26m ago•0 comments

Oops, I Wrote a Database

https://dafoster.net/articles/2026/02/23/oops-i-wrote-a-database/
1•davidfstr•27m ago•0 comments

Amnesty International calls on states to stop predatory, anti-rights order

https://www.amnesty.org/en/latest/news/2026/04/amnesty-international-calls-states-to-stop-predato...
1•rguiscard•30m ago•0 comments

Global Village Coffeehouse

https://en.wikipedia.org/wiki/Global_Village_Coffeehouse
1•xattt•32m ago•1 comments

Getting my daily news from a dot matrix printer 2024

https://aschmelyun.com/blog/getting-my-daily-news-from-a-dot-matrix-printer/
2•xupybd•40m ago•0 comments

Show HN: Harnessing LLM-Prompt Mutation to Build Smart,Automated Fuzz Drivers

https://github.com/FuzzAnything/PromptFuzz
1•JasonHEIN•41m ago•0 comments

Local SLM as a compression layer for cloud API calls

1•asong56•41m ago•0 comments

Shipping the OpenClaw Stack in Public

https://agentbot.raveculture.xyz/blog
1•Agentbot-esky•45m ago•0 comments

Claude Code Routines: 5 Production Workflows That Ship Real Work

https://www.arcade.dev/blog/claude-code-routines-mcp-setup/
1•manveerc•45m ago•0 comments

The Stress of Elite Chess Is Wearing Down the Game's Champions

https://thewalrus.ca/the-stress-of-elite-chess-is-wearing-down-the-games-champions/
1•pseudolus•48m ago•0 comments

"There's No Such Thing as Plain Text" – Dylan Beattie

https://www.slideshare.net/slideshow/theres-no-such-thing-as-plain-text-dylan-beattie/249952971
1•thunderbong•49m ago•0 comments

SAP just made the opposite bet from every other enterprise platform on AI agents

https://www.sap.com/documents/2026/04/dce9aee4-497f-0010-bca6-c68f7e60039b.html
1•millen_crusader•56m ago•0 comments

Google Research: A new light on neural connections

https://research.google/blog/a-new-light-on-neural-connections/
4•theorchid•57m ago•0 comments

GPT 5.5 flags accounts for "potential high-risk cybersecurity"

https://twitter.com/banteg/status/2047577218142871949
3•stared•59m ago•0 comments

Ask HN: Is Zuckerberg just a „one-hit-wonder"?

3•fandorin•1h ago•2 comments

The Lost Art of Structure Packing

http://www.catb.org/esr/structure-packing/
1•tosh•1h ago•0 comments

LinkedIn Premium Does Not Boost Your Posts

https://andrewpwheeler.com/2026/04/25/linkedin-premium-does-not-boost-your-posts/
4•apwheele•1h ago•0 comments