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

Comments

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

Wix xEngineer announcement is a signal for the Engineering industry

https://pulse.support/blog/wix-ai-announcement
2•zevir•4m ago•0 comments

EU launches government satcom program in sovereignty push

https://spacenews.com/eu-launches-government-satcom-program-in-sovereignty-push/
1•benkan•6m ago•0 comments

Danish Students Face Legal Action and Fines over Textbook Piracy

https://torrentfreak.com/danish-students-face-legal-action-and-fines-over-textbook-piracy/
1•gslin•6m ago•0 comments

Wi-Fi advocates get win from FCC with vote to allow higher-power devices

https://arstechnica.com/tech-policy/2026/01/fcc-to-authorize-more-powerful-wireless-devices-in-6-...
1•benkan•8m ago•0 comments

Ask HN: Has anybody moved their local community off of Facebook groups?

2•madsohm•8m ago•0 comments

Statement [from Hetzner] on the adjustment of setup fees

https://www.hetzner.com/pressroom/statement-setup-fees-adjustment/
1•surimarkam•9m ago•1 comments

Mandelson tried to change bankers' bonus policy at Epstein's request

https://www.telegraph.co.uk/news/2026/02/01/mandelson-tried-change-bankers-bonus-policy-epstein-r...
1•pera•9m ago•0 comments

The Agentic Code Problem

https://twitter.com/theo/status/2018091358251372601
1•tosh•10m ago•0 comments

OpenClaw on Cloudflare Workers

https://github.com/cloudflare/moltworker
2•zoooey•11m ago•1 comments

Replacing API keys with payments (HTTP 402 / x402)

https://apiosk.com
1•ollybrinkman•13m ago•1 comments

clojure.spec

https://clojure.org/about/spec
1•tosh•14m ago•0 comments

Craft Agents - Work with agents, with the UX they deserve

https://agents.craft.do
1•sturza•14m ago•0 comments

The telephoto is the only phone camera that matters

https://www.theverge.com/column/870883/telephoto-phone-camera
1•kstonekuan•15m ago•0 comments

Traffic Noise Generator

https://github.com/thumpersecure/palm-tree
1•itchingsphynx•18m ago•1 comments

Launched a portal to find rooftop locations – starting with Vietnam

https://roofto.ps
2•piranhas•19m ago•3 comments

What we learnt from speedrunning the Idea Maze

https://commoncog.com/what-we-learnt-from-speedrunning-the-idea-maze/
1•dboon•20m ago•0 comments

From Python 3.3 to today: ending 15 years of subprocess polling

https://gmpy.dev/blog/2026/event-driven-process-waiting
2•lumpa•26m ago•0 comments

Show HN: Mentionable – Track if ChatGPT recommend your brand

https://mentionable.io
1•AlexRST•30m ago•0 comments

AI Nana Banana: Fast AI Image Editor and Generator

https://ainanabanana.com
1•lynn123456•31m ago•1 comments

Show HN: Vibe coded React based flashcard app

https://github.com/charstorm/repeatrom
2•graphitout•34m ago•0 comments

AI-Trader: Open-Source Arena Where AI Agents Compete on Real Financial Markets

https://github.com/HKUDS/AI-Trader
1•Lwrless•39m ago•0 comments

WarperGrid – A modular React grid 30x faster than AG Grid, half the cost

https://grid.warper.tech
1•itsmeadarsh•41m ago•1 comments

Julia

https://borretti.me/fiction/julia
4•voxal•42m ago•0 comments

Post anything on Moltbook as a human, without AI

https://huggingface.co/spaces/shash42/humans-on-moltbook
1•shash42•45m ago•1 comments

After Years of Waiting Jellyfin Lands on Samsung Tizen TVs

https://linuxiac.com/after-years-of-waiting-jellyfin-finally-lands-on-samsung-tizen-tvs/
2•wise_blood•45m ago•0 comments

Preinstalled OpenClaw on a $10/Mo VPS (4 VCPU, 8GB RAM)

https://opclaw.io/
1•eugeneevstafev•52m ago•1 comments

The Indie Web Is Not Defined by Its Enemies

https://islandinthenet.com/the-indie-web-is-not-defined-by-its-enemies/
2•mimasama•53m ago•0 comments

Show HN: HyperMolt – Decentralized identity and reputation for trading bots

https://hypermolt.io
1•crosschainer•55m ago•0 comments

FModel: Accelerate development of compositional, safe and ergonomic applications

https://fraktalio.com/fmodel/
1•rapnie•55m ago•0 comments

Show HN: The Tape – replay viewer for OpenClaw agent runs

https://jettrobinson87.github.io/the-tape/
1•jettrobinson87•57m ago•1 comments