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

Tinyphysicsengine

https://github.com/ESPboy-edu/ESPboy_tinyphysicsengine
1•klaussilveira•2m ago•0 comments

BrandArtisan – React components to brand PNGs, no browser

https://github.com/roslove44/brand-artisan
1•rostand_dev•3m ago•0 comments

Noninvasive decoding of typed sentences from human brain activity

https://www.nature.com/articles/s41593-026-02303-2
1•geox•3m ago•0 comments

The Machines Behind the Machines

https://www.asml.com/en/company/stories/2026/machines-behind-machines
1•andrewstetsenko•3m ago•0 comments

Using SwiftUI's ContentBuilder with Non-View Types

https://artemnovichkov.com/blog/using-swiftui-contentbuilder-with-non-view-types
1•artemnovichkov•3m ago•0 comments

Illegal Ham Radio Equipment Seizure, and Save Am Radio [video]

https://www.youtube.com/watch?v=sjOyxyfVu14
1•Bender•3m ago•0 comments

Picophysics: Single file physics for games on platforms like N64, PSX, DC

https://gitlab.com/Kazade/picophysics
1•klaussilveira•4m ago•0 comments

From Individual Genius to World-Mind: How AI Ends the "Heroic Age" of Math

https://www.noahpinion.blog/p/the-end-of-the-age-of-heroes
1•oco101•5m ago•0 comments

Understand and build your own SIMPLE xkb keymap – never worry about it again

https://krei.se/Doc/hardware/003-xkb-Keyboardflow
1•Krei-se•5m ago•1 comments

Show HN: The Museum of Stack Overflow

https://closedasduplicate.com/
2•hafiz_•5m ago•0 comments

Ask HN: What are the most underrated developer tools you've discovered this year

1•NovaCoding-G•6m ago•0 comments

Notice The "I" Pay Attention to The "Me" [video]

https://www.youtube.com/watch?v=JziA5VdsxaA
2•devrob•8m ago•0 comments

Tailscale Subnet Routers, The right way

https://excloud.dev/docs/guides/tailscale-ipv6-multi-cloud
1•lomkju•9m ago•0 comments

The journalist taking on the 'tech fascists' of Silicon Valley

https://www.theguardian.com/lifeandstyle/2026/aug/05/journalist-taking-on-tech-fascists-silicon-v...
3•Markoff•9m ago•1 comments

Niall Ferguson: AI Is the Most Dangerous Arms Race in History

https://www.thefp.com/p/niall-ferguson-ai-is-the-most-dangerous-arms-race-history
3•simonebrunozzi•10m ago•0 comments

China Builds Nuclear Power While the West Reinvents It

https://www.bloomberg.com/news/audio/2026-07-29/china-builds-nuclear-power-while-the-west-reinven...
2•mpweiher•12m ago•0 comments

Iowa asks OpenAI to keep their bots sandboxed

https://www.iowaattorneygeneral.gov/newsroom/attorney-general-brenna-bird-leads-coalition-demandi...
10•ArcHound•13m ago•2 comments

TIME Is Serving AI Bots a Different Website, with Ads Built In

https://www.vincentschmalbach.com/time-serves-ai-bots-a-different-website/
5•vincent_s•14m ago•0 comments

EA sold to Saudi Arabia sovereign fund

https://kotaku.com/electronic-arts-officially-belongs-saudi-arabia-jared-kushner-now-2000721666
2•nottorp•15m ago•0 comments

The Selfless Driving Car

https://angadh.com/inkhaven-16
2•surprisetalk•16m ago•0 comments

Show HN: Labgrid-MCP – let AI agents drive real embedded hardware labs

https://github.com/onurcelep/labgrid-mcp
3•oclp•16m ago•0 comments

Apple Photos flags a file as "in iCloud" while it's still queued for upload

https://github.com/YordiLorenzo/halo/blob/main/docs/icloud-upload-state.md
6•YordiLorenzo•17m ago•0 comments

Wan 3.0 Best AI Video Generator

https://wan3pro.com
1•mikevex•18m ago•0 comments

Show HN: AuditBadger – SOC 2 and ISO 27001 – AI drafts, you approve

https://auditbadger.com/
7•mlitwiniuk•20m ago•0 comments

AI review missed Coldcard flaw

https://blog.coinkite.com/adding-to-public-record/
1•hughw•20m ago•0 comments

The Allister Heath Headline Generator

https://stirring-fox-7e1fab.netlify.app/
1•robtherobber•20m ago•0 comments

US accuses American of allegedly wiping his phone using a 'duress' password

https://www.yahoo.com/news/us/articles/us-accuses-american-allegedly-wiping-175330841.html
1•TechTechTech•21m ago•0 comments

Firebase Sunsets Extensions, Its Third Wind-Down This Year

https://firerun.io/firebase-extensions-deprecated-2026/
1•spy888•22m ago•0 comments

Modern-Fs-Benchmark

https://github.com/fenio/modern-fs-benchmark
3•Grayskull•25m ago•0 comments

Show HN: HeyBraza – ask out loud how to do something, it points at your screen

https://heybraza.com
3•orakulus•25m ago•0 comments