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

Offline ElevenLabs alternative for macOS – one-time purchase, runs locally

https://apps.apple.com/sg/app/potato-labs/id6758903660?mt=12
1•jantheman•2m ago•1 comments

Critical Logic Bypass "Intended Behavior" Full System Access

1•CorporationHit•7m ago•0 comments

Rendering the Visible Spectrum

https://brandonli.net/spectra/doc/
1•signa11•11m ago•0 comments

How to Vulkan in 2026

https://www.howtovulkan.com/
1•signa11•13m ago•0 comments

GitHub Innovation Graph: EU is catching up

https://github.blog/news-insights/policy-news-and-insights/year-recap-and-future-goals-for-the-gi...
1•muzzy19•18m ago•0 comments

AI Agent Lands PRs in Major OSS Projects

https://socket.dev/blog/ai-agent-lands-prs-in-major-oss-projects-targets-maintainers-via-cold-out...
1•junon•22m ago•0 comments

Agentic Experience for Publishers

https://www.gendiscover.com/publisher
1•transfon•23m ago•0 comments

Simplifier

https://simplifier.neocities.org/
1•tosh•24m ago•0 comments

When Helm and Argo Is Not Enough

https://kubekattle.github.io/ktl/blog/ktl-stack-dag-vs-argo.html
2•KyleVlaros•25m ago•0 comments

Berlin Lights Brandenburg Gate with 'Freedom for Iran' Message

https://www.iranintl.com/en/202602144731
2•ukblewis•28m ago•0 comments

Ads are coming to AI, but not to Claude [video]

https://www.youtube.com/watch?v=FBSam25u8O4
1•nojs•40m ago•1 comments

Life at the Frontlines of Demographic Collapse

https://www.250bpm.com/p/life-at-the-frontlines-of-demographic
2•msustrik•43m ago•0 comments

Zig – io_uring and Grand Central Dispatch std.Io implementations landed

https://ziglang.org/devlog/2026/#2026-02-13
26•Retro_Dev•46m ago•0 comments

How does token bucket enforces bursty output traffic?

1•shivajikobardan•50m ago•0 comments

Moving Forth (1993)

https://www.bradrodriguez.com/papers/moving1.htm
2•tosh•53m ago•1 comments

OpenAI Should Build Slack

https://twitter.com/swyx/status/2022580899737673810
1•tosh•54m ago•0 comments

I intend to refactor Gastown for the following

1•vanxv•58m ago•0 comments

Darknet Market Maximalism

https://antimoonboy.com/darknetmarketmaximalism/
1•nickysielicki•58m ago•0 comments

AI usage in popular open source projects

https://tirkarthi.github.io/programming/2026/02/13/genai-oss.html
1•xtreak29•59m ago•0 comments

Show HN: Prompt to Planet, generate procedural 3D planets from text

https://prompttoplanet.n4ze3m.com/
3•error404x•1h ago•0 comments

Space Based Solar Power

https://www.gov.uk/government/publications/space-based-solar-power-de-risking-the-pathway-to-net-...
2•zeristor•1h ago•0 comments

How would you go to market for a paid WhatsApp wrapper around OpenClaw?

1•coodeex•1h ago•3 comments

Show HN: Long Mem code agent cut 95% costs for Claude with small model reading

https://marketplace.visualstudio.com/items?itemName=devokaicode.cosave
15•lingxiao10•1h ago•1 comments

Show HN: Schedule posts to social media with AI Agent CLI

https://github.com/gitroomhq/postiz-agent
3•nevodavid10•1h ago•0 comments

Show HN: ChoiceBook – Stories Are Mirrors

https://choicebook.app
1•owoamier•1h ago•0 comments

WV Lawmakers Propose Bill to Remove CS Graduation Mandate

https://news.slashdot.org/story/26/02/13/1424257/bill-introduced-to-replace-west-virginias-new-cs...
1•disqard•1h ago•1 comments

Show HN: Multispace -save,organize,and launch workspaces–tools,apps,games,anyURL

https://multispace.com/
1•DanielSystem•1h ago•1 comments

Show HN: Maker – A Local-First Automation OS with AGPL Core

https://github.com/Salepark/maker
1•makelr•1h ago•1 comments

Sift-Kg

https://github.com/juanceresa/sift-kg
1•handfuloflight•1h ago•0 comments

Chained Assignment in Python Bytecode

https://loriculus.org/blog/python-chained-assignment/
1•wenderen•1h ago•0 comments