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

Comments

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

Labour Squandered Britain's Gold

https://rodgercuddington.substack.com/p/how-labour-squandered-britains-gold
1•freespirt•35s ago•0 comments

Zensical: A modern static site generator by the Material for MkDocs team

https://github.com/zensical/zensical
2•saikatsg•2m ago•0 comments

What I've Learned Writing Gleam

https://nohzafk.github.io/posts/2025-12-27-what-i-ve-learned-writting-gleam/
2•birdculture•3m ago•0 comments

Show HN: Lock In – A goal Mac tracker controlled by typed commands

https://www.letslockin.xyz/
1•TedOS•4m ago•0 comments

Show HN: Self-hosted video clipper architecture (Next.js, N8N, FFmpeg, Docker)

https://suryaelidanto.gumroad.com/l/ai-video-saas
1•suryaelidanto•5m ago•1 comments

What is the 'Super Flu' that is spreading in Europe and the United States?

https://www.wired.com/story/what-is-super-flu-spreading-in-united-states-europe/
2•emreb•6m ago•1 comments

Show HN: Reelbase – Create Viral TikTok Slideshows in Seconds (Reelbase.io)

https://reelbase.io
1•Launchr•11m ago•0 comments

HPV vaccination reduces oncogenic HPV16/18 prevalence from 16% to <1% in Denmark

https://www.eurosurveillance.org/content/10.2807/1560-7917.ES.2025.30.27.2400820
2•stared•13m ago•0 comments

Information Lives in the Breaks

https://omegaaxiommeta.substack.com/p/information-lives-in-the-breaks
2•nilegreen•13m ago•1 comments

Global Crackdown on Crypto Tax Evasion Now in Force

https://timescrypto.com/cryptonews/regulation-and-policy/global-crackdown-on-crypto-tax-evasion-n...
2•Alan_Rada•16m ago•0 comments

An Experiment in Vibe Coding

https://nolanlawson.com/2025/12/28/an-experiment-in-vibe-coding/
1•ColinEberhardt•24m ago•1 comments

Show HN: I stopped using meditation techniques and just sat still for 30 days

https://prtkagwl.substack.com/p/sitting-and-doing-nothing-a-30-day
1•btwnplaces•26m ago•0 comments

Show HN: Vect AI – An execution-first marketing OS for SaaS founders

https://x.com/MM_AFRAZ
1•WoWSaaS•26m ago•0 comments

I optimised my vibe coding tech stack cost to $0

3•udit_50•29m ago•2 comments

Show HN: 3D Rendering in the Terminal from Scratch

https://github.com/Mr-Robot-err-404/terminal-wireframe
1•doctor_schultz•37m ago•0 comments

Toby Morton, a Comedy Writer, Owns the Trump Kennedy Center URL

https://www.nytimes.com/2026/01/01/us/politics/trump-kennedy-center-website-toby-morton.html
2•reaperducer•40m ago•0 comments

The Developer is dead, long live the Designer

https://deadend.dev/posts/the-developer-is-dead-long-live-the-designer/
2•Dansvidania•41m ago•0 comments

Sorting with Fibonacci numbers, and a Knuth reward check

https://orlp.net/blog/fibonacci-sort/
2•fanf2•42m ago•0 comments

Nexperia in no-man's-land: how a chip company became caught between world powers

https://www.nrc.nl/nieuws/2025/12/30/nexperia-in-no-mans-land-how-a-chip-company-became-caught-be...
1•chvid•45m ago•0 comments

Combinatorics News

https://gilkalai.wordpress.com/2026/01/01/combinatorics-news/
2•tzury•50m ago•0 comments

Conbini Wars

https://conbini.kikkia.dev/
2•denysvitali•57m ago•0 comments

Horrible fire at the Swiss ski resort bar

https://www.reuters.com/world/europe/several-killed-after-explosion-swiss-ski-resort-bar-bbc-repo...
1•barishnamazov•58m ago•2 comments

Why Big Tech Turns Everything into a Knife Fight

https://medium.com/data-science-collective/why-big-tech-turns-everything-into-a-knife-fight-42e22...
2•thunderbong•1h ago•1 comments

Train Dreams, il Netflix che non ti aspetti – CinEmanuele #15

https://cinemanuele.substack.com/p/train-dreams-il-netflix-che-non-ti
1•grouchoromano•1h ago•0 comments

Swapping two blocks of memory inside a larger block, in constant memory

https://devblogs.microsoft.com/oldnewthing/20260101-00/?p=111955
2•paulmooreparks•1h ago•0 comments

GridInspector- OpenStreetMap QA for Power Grids

https://apps.dynartio.com/mapyourgrid/gridinspector.html
3•protontypes•1h ago•0 comments

Dbcli skills agent tool with 30 databases support

https://github.com/tteamtm/dbcli
2•teamwg•1h ago•0 comments

Archive of DEC's Easynet NOTESfiles

https://decnotes.datacellar.net/
1•bilegeek•1h ago•0 comments

Show HN: Exponential CMS 6.0.11 – PHP 8.5 Support for a CMS Born in the 1990s

https://exponential.earth
2•thekracker•1h ago•1 comments

Shipping at Inference-Speed

https://steipete.me/posts/2025/shipping-at-inference-speed
3•tosh•1h ago•0 comments