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

My 1k Favorite Books

https://kylebenzle.com/bookreviews.php
1•hilliardfarmer•53s ago•0 comments

Show HN: Agent Kernel – Three Markdown files that make any AI agent stateful

https://agent-kernel.dev/?v=1.0.0
1•obilgic•7m ago•0 comments

HN: Surviving the litellm supply chain attack with a pure ctypes OS Vault

https://github.com/MACCRE-2026/MACCRE-Sovereign-Auth
1•MACCRE•8m ago•0 comments

Creating Readerly

https://nicoverbruggen.be/blog/creating-readerly
2•ganksalot•12m ago•0 comments

Squirrel seen 'vaping' in London park

https://www.telegraph.co.uk/news/2026/03/23/squirrel-seen-vaping-in-london-park/
2•walterbell•13m ago•0 comments

Research Shows Verbatim Recall of Copyrighted Books in LLMs

https://cauchy221.github.io/Alignment-Whack-a-Mole/
1•nsagent•14m ago•0 comments

Show HN: Send Love, Send Letters (at cost)

https://mappymail.com
1•pruetj•14m ago•0 comments

OpenAI backs AI "bot army" startup Isara ($94M, $650M valuation)

https://www.wsj.com/tech/ai/openai-backs-new-ai-startup-seeking-bot-army-breakthroughs-a0b1fedc
1•MoritzWall•18m ago•1 comments

Made this tool so your docs never get stale just in 2 simple steps

1•AYSgood•23m ago•0 comments

Getting Global Age Assurance Right: What We Got Wrong and What's Changing

https://discord.com/blog/getting-global-age-assurance-right-what-we-got-wrong-and-whats-changing
1•kaladin-jasnah•24m ago•0 comments

10.3" Color E Ink Tablet Android 14OS (Bigme B1051C)

https://store.bigme.vip/products/bigme-b1051c-ulta-thin-color-e-ink-tablet-with-android-14os
1•BandOfBots•26m ago•0 comments

Ask HN: How did you figure out what you wanted to do with your life?

2•icwtyjj•27m ago•1 comments

Polygraphs Aren't Accurate. Are There Better Options?

https://undark.org/2026/03/25/lie-detection-polygraph-accuracy/
1•EA-3167•29m ago•0 comments

Zero Days: Electric Motorcycles Are a Security Nightmare

https://persephonekarnstein.github.io/post/zero-days/
1•todsacerdoti•29m ago•0 comments

TSA boss warns of airport shutdowns; no deal yet on day 40 of DHS funding fight

https://apnews.com/article/airport-wait-times-shutdown-dhs-congress-tsa-391cbd731bed2e8433ab7f1a9...
3•mikhael•34m ago•1 comments

Isrib

https://en.wikipedia.org/wiki/ISRIB
1•keepamovin•40m ago•0 comments

Gold, a 'safe haven' in uncertain times: Why is it crashing amid a war?

https://theconversation.com/gold-is-meant-to-be-a-safe-haven-in-uncertain-times-why-is-it-crashin...
1•defrost•40m ago•0 comments

Disney cancels $1B OpenAI partnership amid Sora shutdown plans

https://arstechnica.com/ai/2026/03/the-end-of-sora-also-means-the-end-of-disneys-1-billion-openai...
3•herpderperator•41m ago•0 comments

The AI skills gap is here, says AI company, and power users are pulling ahead

https://techcrunch.com/2026/03/25/the-ai-skills-gap-is-here-says-ai-company-and-power-users-are-p...
1•makerdiety•42m ago•0 comments

Show HN: Monetization layer – new product category (for SaaS)

https://www.revturbine.com
1•millereffect•44m ago•0 comments

Show HN: Robust LLM Extractor for Websites in TypeScript

https://github.com/lightfeed/extractor
7•andrew_zhong•46m ago•0 comments

Vivaldi 7.9: Immerse yourself in the web with every pixel

https://vivaldi.com/blog/vivaldi-on-desktop-7-9/
2•thunderbong•47m ago•0 comments

Obsolete Sounds

https://citiesandmemory.com/obsolete-sounds/
1•benbreen•48m ago•1 comments

Show HN: Kbot – AI agent that forges its own tools at runtime (MIT, $0)

https://github.com/isaacsight/kernel
1•isaacsight•48m ago•0 comments

The Last Contract: William T. Vollmann's Battle to Publish an Epic (2025)

https://www.metropolitanreview.org/p/the-last-contract
1•benbreen•48m ago•0 comments

When Do We Become Adults, Really?

https://www.newyorker.com/culture/annals-of-inquiry/when-do-we-become-adults-really
1•benbreen•48m ago•1 comments

The Loneliness of a Room of One's Own

https://newrepublic.com/article/206731/loneliness-room-one-virginia-woolf-hold-up
1•prismatic•48m ago•0 comments

Desperately Seeking Space Friends

https://reviewcanada.ca/magazine/2026/04/desperately-seeking-space-friends-review-the-pale-blue-d...
1•benbreen•48m ago•0 comments

The Cassandra of 'The Machine'

https://www.thenewatlantis.com/publications/the-cassandra-of-the-machine
1•Hooke•48m ago•0 comments

The US's largest offshore wind farm just produced its first power

https://electrek.co/2026/03/25/us-largest-wind-farm-just-produced-power-for-the-first-time/
2•toomuchtodo•53m ago•1 comments