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

How Gambling Turned Your Feed into Slop

https://www.youtube.com/watch?v=Lw6gpYJzujE
3•flakespancakes•6m ago•0 comments

How does anybody test phone applications that do location tracking?

https://twitter.com/LyleMakes/status/2063784301594853657
1•lylejantzi3rd•6m ago•1 comments

Atlas: Metadata-first proof chains for critical digital actions

https://github.com/rodriguezaa22ar-boop/atlas-trust-infrastructure/discussions/85
2•astra_omnia•10m ago•0 comments

I asked a few hundred builders how they decide it's time to launch

https://nicklaunches.com/blog/week-5-recap-june-07-2026/
2•nicklaunches•11m ago•0 comments

Against Taste

https://minutes.substack.com/p/against-taste
3•el_benhameen•16m ago•0 comments

Parallel Intelligence and Cognitive Warfare

https://jackson-t.com/parallel-intelligence-and-cognitive-warfare/
2•jthuraisamy•18m ago•0 comments

EMILIAProtocol-an open standard for human sign-off on irreversible agent actions

https://www.emiliaprotocol.ai/spec
2•EmiliaStar•19m ago•0 comments

Does the Web Use DNSSEC and Email Authentication? Scanning TopM Domains

https://www.pwndefend.com/2026/06/06/email-and-domain-security/
1•882542F3884314B•31m ago•0 comments

JavaNext Language Features

https://www.youtube.com/watch?v=fFocVFEe2TI
2•birdculture•33m ago•0 comments

Opus 4.8 Part 2: Model Welfare

https://thezvi.wordpress.com/2026/06/01/opus-4-8-part-2-model-welfare/
1•gmays•34m ago•0 comments

Show HN: Dense NYT style crossword puzzle generation with Rust and Claude

https://github.com/ekorbia/xword-pipeline
2•ekorbia•35m ago•0 comments

Self-Healing Materials: Mechanisms, Properties, and Applications

https://www.mdpi.com/2227-9717/14/9/1436
2•PaulHoule•36m ago•0 comments

Ask HN: What Happened to Hide?

2•what•39m ago•2 comments

Congress wants to tie the United States to Israel with this new legislation

https://www.theguardian.com/commentisfree/2026/jun/05/congress-us-israel-legislation
5•kldavis4•39m ago•0 comments

lab leak straight out of 2080 - time travel in html 5

https://rogmash.neocities.org/torusfield
1•rogmash•39m ago•1 comments

Show HN: Synstax – Smart Supplement Scheduling for iPhone

https://synstax.uppervoid.app/
1•reloading2008•41m ago•0 comments

The sneaky way companies get new chemicals into our food

https://www.npr.org/2026/05/29/nx-s1-5836552/fda-gras-food-chemicals-additives-rfk
3•nkzednan•42m ago•1 comments

BetterSSC is a Discord-style client for Substack Chat

https://github.com/inder/betterssc
1•inderrr•43m ago•1 comments

The Smallest Brain You Can Build: A Perceptron in Python

https://ranpara.net/posts/perceptron-explained-from-scratch/
17•DevarshRanpara•44m ago•1 comments

Eighteen

https://meyerweb.com/eric/thoughts/2026/06/07/eighteen/
2•darekkay•47m ago•0 comments

A Matter Wi-Fi Light Bulb in Rust on the Raspberry Pi Pico 2 W

https://github.com/melastmohican/rust-rpico2-embassy-examples
5•melastmohican•54m ago•0 comments

Guardrails around powerful AI models may be too late

https://www.politico.com/news/2026/06/07/frontier-ai-cybersecurity-china-race-00952786
2•jonbaer•59m ago•0 comments

Brain Appropriation

https://brainappropriation.org/
2•jonbaer•1h ago•0 comments

The AI Coding Bill Is a Headcount Problem in Disguise

https://abhishek-shankar.com/posts/ai-coding-bill-headcount-problem
2•catstyler•1h ago•0 comments

The Tao of Fish Swimming ▸ KITP Chalk Talk by Jimmy Liao [video]

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

AI Code Stitcher

https://github.com/ue-patcher/code_stitcher/releases
1•code_stitcher•1h ago•0 comments

How the "Perfectionism Pandemic" Is Crushing Young People

https://nautil.us/how-the-perfectionism-pandemic-is-crushing-young-people-1281569
3•ferryth•1h ago•0 comments

I built an AI agent that monitors job boards daily and emails you scored matches

https://www.matchmind.site
1•sinophine•1h ago•0 comments

Mysterious Next-Gen Aircraft Allegedly Spotted Near Area 51

https://theaviationist.com/2026/06/04/mysterious-next-gen-aircraft-allegedly-spotted-near-area-51/
5•billybuckwheat•1h ago•0 comments

Show HN: An mkv player that uses WASM to render you videos

https://parallax.kinosoft.moe/
1•kafkaesqueKino•1h ago•0 comments