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

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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 hard part of million-stop routing was not the route optimizer

https://github.com/vizzito/last-mile-optimizer-paper
1•pantherolive•3m ago•1 comments

The New York Times Makes the Case for "Microlooting" to Murder

https://jonathanturley.org/2026/04/27/the-monsters-among-us-the-new-york-times-makes-that-case-fo...
1•ytNumbers•3m ago•0 comments

Tiny Looking to Sell Letterboxd

https://www.semafor.com/article/04/26/2026/whats-next-for-letterboxd
1•bjhess•4m ago•0 comments

The AI-X Scale for Written Content

https://docs.zeropolis.net/doku.php/tech:ai-text-categorization
1•unethical_ban•4m ago•0 comments

Claude flags questions about biology / biotech

1•areoform•9m ago•0 comments

Product Evals in Three Simple Steps

https://eugeneyan.com/writing/product-evals/
1•eigenBasis•11m ago•0 comments

You were training AI while catching Pokemon [video]

https://www.youtube.com/watch?v=Vk95ZO-WAvY
1•omani•11m ago•0 comments

Apple integrates Claude and Codex into Xcode 26.3 for 'agentic coding'

https://venturebeat.com/technology/apple-integrates-anthropics-claude-and-openais-codex-into-xcod...
1•gurjeet•13m ago•0 comments

MySpace Co-Founder Misses "Serendipity" of Social Media as Documentary Premieres

https://deadline.com/2026/04/myspace-chris-dewolfe-serendipity-social-media-documentary-1236873630/
1•ChrisArchitect•14m ago•0 comments

Show HN: New readme badge builder (need feedback)

https://www.shieldcn.dev/showcase
1•justinlevine•16m ago•0 comments

We Audited 43 Product Hunt Launches for Accessibility. 1 Passed

https://overlayqa.com/blog/product-hunt-accessibility-study/
1•emveras•18m ago•0 comments

Ask HN: Novel crazy ideas on reducing RAM usage

1•sudo_cowsay•22m ago•1 comments

Show HN: Enve – Tiny server that stores per-project environment variables

https://github.com/skorotkiewicz/envd
1•modinfo•25m ago•0 comments

Show HN: rqlite – the fault-tolerant DB built on SQLite – v10.0 released

https://github.com/rqlite/rqlite/releases/tag/v10.0.0
1•otoolep•27m ago•0 comments

Who Owns Tindie?

https://hackaday.social/@tindie/116459166849350034
1•codezero•28m ago•0 comments

The remarkable Renaissance of high-frequency traders

https://www.ft.com/content/83b2a4b3-bdc6-4eb0-a87c-293c383b5994
2•simonpure•33m ago•1 comments

Colorful Nuclide Chart

https://people.physics.anu.edu.au/~ecs103/chart/
1•Eridanus2•37m ago•0 comments

An AI First World (2016)

https://avc.com/2016/04/an-ai-first-world/
2•capitalatrisk•42m ago•0 comments

Time, Money and Health

https://todaypurpose.com/posts/time-money-health/
1•eric_khun•47m ago•0 comments

How AI Will Reshape Computer Systems by 2035

https://cra.org/industry/2026/04/27/how-ai-will-reshape-computer-systems-by-2035-a-jeffersonian-d...
2•hasheddan•52m ago•0 comments

The physics slop that YouTube wants me to make [video]

https://www.youtube.com/watch?v=Cd5EHfRerGI
1•JumpCrisscross•52m ago•0 comments

Show HN: Lightport – open-source AI gateway

https://www.npmjs.com/package/lightport
1•statements•52m ago•0 comments

Body Soul and Spirit

https://www.skool.com/body-soul-and-spirit-9368/about
1•anthonychip•54m ago•0 comments

When robots.txt blocks the crawl, noindex never applies

https://netguard24-7.com/blog/a-field-note-on-claudeai-share-url-discoverability
1•cybrdude•1h ago•1 comments

How I Broke the Anti-Bot Behind Nike, Kick, and Twitch

https://emro.cat/blog/how-i-broke-the-anti-bot-behind-nike-kick-and-twitch/
3•dsekz•1h ago•0 comments

One in every $20 Super Micro earned 2024 to 2025 came from a front company

https://www.thewirechina.com/2026/04/26/inside-job/
1•NN88•1h ago•0 comments

Starship – Test Like You Fly

https://www.youtube.com/watch?v=ANe_HW4X8oc
1•sbuttgereit•1h ago•0 comments

OpenAI Misses Key Revenue, User Targets in High-Stakes Sprint Toward IPO

https://www.wsj.com/tech/ai/openai-misses-key-revenue-user-targets-in-high-stakes-sprint-toward-i...
6•ksherlock•1h ago•1 comments

Offline Agentic Coding

https://www.williamangel.net/blog/2026/04/27/offline-agentic-coding.html
2•datadrivenangel•1h ago•0 comments

I quit drinking for a year

https://dynomight.net/drinking/
52•webninja•1h ago•46 comments