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

Comments

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

Show HN: Online version of Teeko, of Guy L. Steele fame

https://teeko.cc
1•ptramo•1m ago•0 comments

The Müller-Lyer Illusion in Ant Foraging

https://pmc.ncbi.nlm.nih.gov/articles/PMC3859535/
1•mudil•1m ago•0 comments

Railroads will be allowed to reduce inspections and rely more on technology

https://apnews.com/article/automated-railroad-track-inspections-waiver-derailments-fra-d3c4b0f313...
1•geox•2m ago•0 comments

Lobfo – AI terminal for sports prediction markets (Kalshi × Polymarket)

https://v0-pmt-ai.vercel.app/
1•Nortca•4m ago•1 comments

Show HN: Chrobox – plan, execute, and reflect with AI insights

https://www.chrobox.net/
1•ggprgrkjh•5m ago•0 comments

How to make a macOS screen saver

https://wadetregaskis.com/how-to-make-a-macos-screen-saver/
1•chmaynard•7m ago•0 comments

Getting AI object removal to run in under 2 seconds in a Figma plugin

https://www.figma.com/community/plugin/1576512610054427811/photo-object-remover-imgour
1•Bikashhh•7m ago•1 comments

Advent Hunt 2025

https://2025.adventhunt.com/
1•thatoneengineer•8m ago•0 comments

Chinese fighters target SDF jets with radar lock-on, Japan says

https://www.japantimes.co.jp/news/2025/12/07/japan/china-japan-radar-lock-on/
1•DustinEchoes•12m ago•1 comments

Show HN: MCP Hosting with Persistent Storage

https://glama.ai/blog/2025-12-06-mcp-hosting-with-persistent-storage
1•statements•15m ago•0 comments

Space Invaders – The Legacy

https://spaceinvaders.square-enix-games.com/legacy
1•andsoitis•16m ago•0 comments

Invader

https://www.space-invaders.com/home/
1•andsoitis•17m ago•0 comments

Saving Japan's exceptionally rare 'snow monsters'

https://www.bbc.com/future/article/20251203-japans-disappearing-snow-monsters
1•1659447091•18m ago•0 comments

Mathematics Without Numbers

https://www.jstor.org/stable/20026529?seq=1
1•andsoitis•19m ago•0 comments

Cloudflare outage, December 6th 2025

1•AlOwain•23m ago•0 comments

2025 Desmos Art Contest

https://www.desmos.com/art
1•downboots•24m ago•0 comments

Ask HN: Is Opus 4.5 scaring the crap out of you as well?

4•consumer451•27m ago•0 comments

Computer-Science Reinforcement Learning Got Rewards Wrong

https://gist.github.com/yoavg/3eb3e722d38e887a0a8ac151c62d9617
1•Anon84•28m ago•0 comments

Mechanical Habits

https://matklad.github.io/2025/12/06/mechanical-habits.html
1•emschwartz•33m ago•0 comments

Neuralink Overview, Fall 2025

https://www.youtube.com/watch?v=QJdgHXyJh7M
2•oars•34m ago•0 comments

RSF massacres left Sudanese city 'a slaughterhouse', satellite images show

https://www.theguardian.com/global-development/2025/dec/05/rsf-massacres-sudanese-city-el-fasher-...
1•reducesuffering•35m ago•0 comments

Hackers Impersonate Brands to Steal YouTube Channels

https://utkusen.substack.com/p/how-hackers-impersonate-brands-to
1•utku1337•36m ago•0 comments

Poetiq: SOTA Reasoning on ARC-AGI

https://github.com/poetiq-ai/poetiq-arc-agi-solver
1•rahimnathwani•42m ago•0 comments

Apple's exec shake-up continues with departures of general counsel, policy head

https://techcrunch.com/2025/12/04/apples-executive-shakeup-continues-with-departures-of-general-c...
7•randycupertino•43m ago•2 comments

Resources for Protecting Against 'React2Shell'

https://vercel.com/blog/resources-for-protecting-against-react2shell
1•lortex•46m ago•0 comments

Wave of (Open Street Map) Vandalism in South Korea

https://www.openstreetmap.org/user/KennyDap/diary/407844
27•shortrounddev2•50m ago•2 comments

Pipetap: A Windows Named Pipe Multi-Tool / Proxy

https://github.com/sensepost/pipetap
1•leonjza•52m ago•0 comments

ReVSeg: Incentivizing the Reasoning Chain for Video Segmentation with RL

https://arxiv.org/abs/2512.02835
1•SweetSoftPillow•52m ago•0 comments

Quick takes on the Dec 5 Cloudflare outage

https://surfingcomplexity.blog/2025/12/06/quick-takes-on-the-dec-5-cloudflare-outage/
2•gpi•52m ago•0 comments

Photographer Built a Medium-Format Rangefinder, and So Can You

https://petapixel.com/2025/12/06/this-photographer-built-an-awesome-medium-format-rangefinder-and...
1•shinryuu•55m ago•0 comments