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•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

Geography Is Four-Dimensional

https://sive.rs/4d
1•ColinWright•4m ago•0 comments

Feedback on my local-first AI assistant project?

https://github.com/joshuatic/voxel
1•joshuatic•7m ago•0 comments

Lies, damned lies, and Elastic's benchmarks

https://www.gouthamve.dev/lies-damned-lies-and-elastics-benchmarks/
1•gouthamve•13m ago•0 comments

A hacker ran me over with a robot lawn mower

https://www.theverge.com/tech/925696/yarbo-robot-lawn-mower-hack-remote-control-camera-access-mqtt
1•gnabgib•14m ago•0 comments

Does it scale? Who cares (2011)

https://jacquesmattheij.com/does-it-scale-who-cares/
1•downbad_•17m ago•1 comments

IRGC to generate revenue from undersea internet cables in Strait of Hormu

https://twitter.com/IranIntl_En/status/2053206979330392414
1•us321•18m ago•0 comments

Trump Media and Technology Group lost $406M in first three months of 2026

https://www.theguardian.com/us-news/2026/may/09/trump-media-and-technology-group-loses-406m-first...
2•vinni2•20m ago•1 comments

An Excerpt from "Go the Fuck to College" by Adam Mansbach

https://www.fatherly.com/parenting/go-the-fck-to-college-essay-adam-mansbach
1•johntfella•24m ago•1 comments

Consumer AI's ARPU Problem

https://twitter.com/SashaKaletsky/status/2051366803897766236
1•gmays•24m ago•0 comments

Can I Copyright a Song I Made with AI?

https://www.musicologize.com/can-i-copyright-a-song-i-made-with-ai/
1•speckx•27m ago•0 comments

ScalaTimes – A Free, Once-Weekly Scala News Flash

https://scalatimes.com
1•TheWiggles•28m ago•0 comments

Show HN: Sigma Guard – deterministic contradiction checks for graph memory

1•invariantjason•30m ago•0 comments

RustChat is a minimal team messenger, alternative to Slack, Mattermost, Zulip

https://rustchat.io/
2•xvilka•32m ago•0 comments

PostgresBench: A Reproducible Benchmark for Postgres Services

https://clickhouse.com/blog/postgresbench
1•saisrirampur•32m ago•0 comments

Show HN: AI Design Taste – Design.md Generator

https://chromewebstore.google.com/detail/ai-design-taste-designmd/peclkdlolmcclhhgpoehpikgknbmkknc
1•novateg•35m ago•0 comments

The Mismeasure of Open Source

https://nesbitt.io/2026/05/09/the-mismeasure-of-open-source.html
1•bmitch3020•37m ago•0 comments

RL Benchmark "Ant" in Hardware

https://github.com/Openmind-Research-Institute/open-ant
1•lupusorina•38m ago•0 comments

TypeScript checker and language service written in Rust

https://tsz.dev/
2•jcbhmr•39m ago•0 comments

Startup Skills

https://github.com/dhruvhanda15-dev/startupskills
1•dhruvh3•41m ago•0 comments

A happy 150th birthday to the Otto Cycle internal combustion engine

https://twitter.com/iowahawkblog/status/2053100736309809319
1•delichon•42m ago•0 comments

Show HN: Draw Battle

https://vidzert.com/draw-battle
2•vidzert•44m ago•0 comments

Why do Oregon farms plant red clover every spring?

https://a.wholelottanothing.org/why-do-oregon-farms-plant-red-clover-every-spring/
5•speckx•45m ago•1 comments

The Fast Way to Sweden – BGP Routing Experiments

https://alastairbarber.com/Fast-Way-to-Sweden-Optimal-BGP-Prefix-Announcement/
1•alibarber•49m ago•0 comments

Primary-source deep-dive of The Pentagon's PURSUE UAP release (Top findings)

https://gist.github.com/Pantheon-Investigations/77e9d88041a0a60e45a650eded607cf1
2•pantheon_inv•49m ago•0 comments

API Hell

https://neonwalker.dev/posts/api-hell/
2•neonwalker•52m ago•0 comments

The Atari 800 – By Paul Lefebvre

https://www.goto10retro.com/p/inside-the-atari-800
3•rbanffy•52m ago•0 comments

LM Link: Use your local models, remotely

https://lmstudio.ai/link
1•Olshansky•55m ago•0 comments

FreeBSD: Local Privilege Escalation via Execve()

https://www.freebsd.org/security/advisories/FreeBSD-SA-26:13.exec.asc
29•Deeg9rie9usi•57m ago•14 comments

I caught the car

https://undecidability.net/senior/
9•holden_nelson•57m ago•0 comments

Show HN: Simple Exif an App that allows creators take control of their metadata

https://simpleexif.com/
1•0x10ca1h0st•58m ago•0 comments