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

Comments

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

The creator of Clawd: "I ship code I don't read"

https://www.youtube.com/watch?v=8lF7HmQ_RgY
1•doppp•2m ago•0 comments

Show HN: 1X is a Chrome extension to help with doomscrolling in X

https://1x.kawaicheung.io
1•kiwigod17•3m ago•1 comments

There's no point in learning custom tools, workflows, or languages anymore

https://twitter.com/naval/status/2016343169651409407
1•athultr1997•8m ago•0 comments

Sbt and the Miners of the Wild West

https://eed3si9n.com/sbt-and-the-miners-of-the-wild-west/
1•jmgimeno•9m ago•1 comments

Commission's decision to fine X [pdf]

https://judiciary.house.gov/sites/evo-subsites/republicans-judiciary.house.gov/files/2026-01/ACT_...
2•miohtama•10m ago•0 comments

Get on board with modern banking Taiwan

https://www.taipeitimes.com/News/feat/archives/2026/01/29/2003851387
1•keepamovin•11m ago•1 comments

How shopping chatbots might transform retail

https://www.ft.com/content/9de227a5-2bc1-4730-88b1-dbbb5b559ee8
1•petethomas•13m ago•0 comments

IT Just Takes Too Long

https://github.com/belocci/UniTrainer
1•belocci•13m ago•0 comments

ARM MTE Performance in Practice (Extended Version)

https://arxiv.org/abs/2601.11786
1•todsacerdoti•20m ago•0 comments

Arctic Ascent with Alex Honnold [video]

https://www.youtube.com/watch?v=ep-xRQDTiOg
1•handfuloflight•21m ago•0 comments

Halide cofounder Sebastiaan de With joins Apple's design team

https://www.threads.com/@sdw/post/DUEeAwFksRt
1•wavelander•21m ago•0 comments

The State of (AI) Code Developer Survey

https://www.sonarsource.com/resources/developer-survey-report/
1•ColinEberhardt•22m ago•0 comments

The cold war maps that can help us rethink today's Arctic conflict

https://theconversation.com/the-cold-war-maps-that-can-help-us-rethink-todays-arctic-conflict-274058
2•bryanrasmussen•23m ago•0 comments

QGIS Expression Language as a Tool for Procedural Cartography

https://geoawesome.com/qgis-expression-language-as-a-tool-for-procedural-cartography/
2•bryanrasmussen•24m ago•0 comments

Free URL Editor with a Twist

https://urleditor.online
1•docnavy•24m ago•0 comments

TikTok uninstalls surge 150% after app's US takeover

https://www.emarketer.com/content/tiktok-uninstalls-surge-150--after-app-s-us-takeover
2•FuturisticLover•28m ago•1 comments

Ask HN: We're Shipping MCPs Blind

1•tiluckdave•30m ago•0 comments

Show HN: I built a digital twin to visualize sensor drift in real-time

https://www.predictability-api.com/demo/industrial
1•OGsus•33m ago•1 comments

Generative Music with the Muse

https://computerhistory.org/blog/generative-music-with-the-muse/
9•andsoitis•35m ago•0 comments

Adding dynamic features to an aggressively cached website

https://simonwillison.net/2026/Jan/28/dynamic-features-static-site/
1•onurkanbkrc•38m ago•0 comments

Show HN: Codex.nvim – Codex inside Neovim (no API key required)

https://github.com/ishiooon/codex.nvim
3•ishiooon•42m ago•0 comments

Show HN: Relnotes.app – Turn GitHub PRs into your Friday's report automatically

https://relnotes.app/
1•hubertusputu•44m ago•0 comments

British 2-year-old breaks two world records playing pool and snooker

https://www.upi.com/Odd_News/2026/01/28/Guinness-World-Records-toddler-pool-snooker/1551769621785/
2•austinallegro•50m ago•0 comments

CATL unveils first mass-production sodium-ion battery for vehicles

https://carnewschina.com/2026/01/22/catl-unveils-worlds-first-mass-production-sodium-ion-battery-...
3•achow•52m ago•0 comments

Show HN: Shorlabs – open-source Vercel for Python/Node back ends

https://github.com/aryankashyap0/shorlabs
10•abyssglass02•53m ago•1 comments

Spanish scientists achieve complete eradication of pancreatic cancer

https://www.gamereactor.eu/spanish-scientists-achieve-complete-eradication-of-pancreatic-cancer-t...
4•blufish•57m ago•1 comments

Grok Imagine

https://grok.com/imagine
3•yihongs•58m ago•0 comments

Grok Imagine API

https://x.ai/news/grok-imagine-api
2•yihongs•58m ago•0 comments

Carnegie Mellon Unversity Computer Club FTP Server

http://128.237.157.9/pub/
1•1vuio0pswjnm7•1h ago•1 comments

Show HN: Quantum Vulnerability Database for 3,700 Japanese Public Companies

https://postqlabs.com
1•yoshi_dev•1h ago•1 comments