frontpage.
newsnewestaskshowjobs

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

Eruda – JavaScript Console

https://eruda.liriliri.io/docs/
1•razodactyl•2m ago•0 comments

FEXPRs vs. vtable: how LispE interpreter works

https://github.com/naver/lispe/wiki/2.7-FEXPR-vs.-vtable
1•birdculture•3m ago•0 comments

Prairieland Defendants Sentenced Today to Prison Terms Ranging from 30-100 Years

https://prairielanddefendants.com/press-release/eight-federal-prairieland-defendants-sentenced-to...
1•panic•7m ago•0 comments

Throwing My Roku in the Trash

https://www.coryd.dev/posts/2026/throwing-my-roku-in-the-trash
2•cdrnsf•7m ago•0 comments

GitKraken Unveils Code Flow to Help Teams Navigate the AI Era

https://sdtimes.com/softwaredev/gitkraken-unveils-code-flow-to-help-teams-navigate-the-ai-era/
2•doodlesdev•7m ago•0 comments

System prompt to defend against "Project 545" Generative Engine Optimization

https://pastebin.com/Z2cRVKXP
1•KoftaBob•8m ago•0 comments

Bicameral, Not Homoiconic

https://parentheticallyspeaking.org/articles/bicameral-not-homoiconic/
1•andsoitis•10m ago•0 comments

Vulnerability Reports are not Special Anymore

https://words.filippo.io/vuln-reports/
2•goranmoomin•18m ago•0 comments

FAA awards software and AI contract as part of air traffic control modernization

https://www.nextgov.com/acquisition/2026/06/faa-awards-software-and-ai-contract-part-air-traffic-...
1•WaitWaitWha•22m ago•0 comments

House passes bill to lower housing costs, sending it to Trump's desk

https://www.nbcnews.com/politics/congress/house-passes-sweeping-bill-lower-housing-costs-sending-...
3•toomuchtodo•22m ago•3 comments

AI systems out-persuade expert humans

https://arxiv.org/abs/2606.16475
1•marojejian•24m ago•1 comments

Russia forces universities to teach drone warfare from September 2026

https://mezha.net/eng/bukvy/c3b94111_russia_forces_universities/
2•gnabgib•25m ago•0 comments

Reinforcement learning towards broadly and persistently beneficial models

https://alignment.openai.com/beneficial-rl/
1•vesteny77•29m ago•0 comments

The Secret Life of Circuits by Michal Zalewski (lcamtuf)

https://nostarch.com/secret-life-of-circuits
1•Curiositry•29m ago•0 comments

Russian Warship RIP – Tracking Losses

https://russianwarship.rip/en
2•sans_souse•30m ago•0 comments

Talk to Your Plant

https://github.com/openai/planttalk
2•bakigul•31m ago•0 comments

Let's say you're hungry for a sandwich

https://beige.party/@Lana/116795397010653803
2•colinprince•31m ago•0 comments

ClaudeMeter – macOS menu bar app to track Claude usage and limits

https://github.com/yotake/claude-meter
2•chibeeMan•32m ago•0 comments

Show HN: Freestyle – Wispr Flow Alternative that respects privacy

https://github.com/freestyle-voice/freestyle
1•matteo8p•32m ago•0 comments

This Word Does Not Exist

https://www.thisworddoesnotexist.com/
2•SpyCoder77•33m ago•0 comments

AI stock slump raises the question are investors taking profits or very nervous

https://apnews.com/article/tech-stocks-ai-investments-8a0ff4c95d5cae6f65c6e2ba03047058
1•1vuio0pswjnm7•33m ago•0 comments

Extreme Heat conference cancelled due to extreme heat warning

https://www.lse.ac.uk/granthaminstitute/events/extreme-heat-improving-governance-and-strengthenin...
21•rendx•34m ago•1 comments

SpaceX Falls for Third Day, Erases $600B in Market Value

https://www.bloomberg.com/news/articles/2026-06-22/spacex-shares-poised-to-slide-again-as-us-mark...
2•1vuio0pswjnm7•35m ago•0 comments

Pilbara's North Pole Dome the oldest known asteroid crater

https://www.abc.net.au/news/2026-06-24/worlds-oldest-asteroid-crater-pilbara-confirmed/106818546
1•Gaishan•36m ago•0 comments

Generosity Is Potency

https://wastebook.substack.com/welcome
2•Curiositry•37m ago•0 comments

Postman launches passport for securing API secret access

https://blog.postman.com/postman-passport-secure-api-access-for-the-agentic-era/
1•paidsandserape•37m ago•0 comments

Building a Western gallium supply chain beyond China's reach

https://wpintelligence.washingtonpost.com/topics/energy-climate/2026/06/17/gallium-gamble-buildin...
1•bookofjoe•39m ago•1 comments

Advanced Nintendo Entertainment System (ANES) – NES Modded to Use 2 PPUs

https://github.com/decrazyo/anes
2•zdw•39m ago•0 comments

Just.witter – a voice feed. no text, no photos, no video, just voices

https://justwitter.com/
1•whatis1215•40m ago•0 comments

The Real-Time Rat Tracking Map

https://googlemapsmania.blogspot.com/2026/06/the-real-time-rat-tracking-map.html
1•gnabgib•41m ago•0 comments