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

Critical Marimo pre-auth RCE flaw now under active exploitation

https://www.bleepingcomputer.com/news/security/critical-marimo-pre-auth-rce-flaw-now-under-active...
1•Brajeshwar•2m ago•0 comments

The secrets of the shinkansen

https://www.worksinprogress.news/p/the-secret-behind-japans-railways
1•herbertl•3m ago•0 comments

Organics and Mechanics

https://randsinrepose.com/archives/organics-and-mechanics/
1•rzk•3m ago•0 comments

'Our historical condition is a peculiar mixture of omniscience and impotence'

https://www.lemonde.fr/en/opinion/article/2026/04/05/will-self-our-historical-condition-is-a-pecu...
1•speckx•4m ago•0 comments

Memelang: Terse SQL for LLM Generation

https://memelang.net/10/
1•bri-holt•5m ago•0 comments

Living Without America

https://statusq.org/archives/2026/01/07/13491/
1•noir_lord•5m ago•0 comments

Claude Code v2.1.100 silently adds ~20k invisible tokens to every request

https://twitter.com/om_patel5/status/2043524173016727639
2•giancarlostoro•5m ago•0 comments

Show HN: How to Use Google's Extreme AI Compression with Ollama and Llama.cpp

1•anju-kushwaha•6m ago•0 comments

Fractal Leadership

https://medium.com/@masonfmatthews/fractal-leadership-ff216b861fec
1•rzk•7m ago•0 comments

Show HN: Lovinghate – Share what you love and hate

https://lovinghate.com/
1•goshua•10m ago•0 comments

Percussive maintenance, planned obsolescence, and other PC myths

https://www.howtogeek.com/we-laughed-at-the-warningsbut-these-5-old-pc-myths-turned-out-to-be-com...
1•dxs•11m ago•0 comments

Microsoft isn't removing Copilot from Windows 11, it's just renaming it

https://www.neowin.net/opinions/microsoft-isnt-removing-copilot-from-windows-11-its-just-renaming...
2•bundie•14m ago•0 comments

What Is Pura Vida Lifestyle, Really?

https://johnquam.substack.com/p/what-is-pura-vida-lifestyle-really
1•headmonkey•14m ago•0 comments

Kondi-chat (open cursor) – multi-model AI coding CLI with intelligent routing

https://github.com/thisPointOn/kondi-chat
1•thispointon•16m ago•1 comments

Did Neuralink make the wrong bet?

https://www.theverge.com/tech/910834/neuralink-bcis-bet
3•Brajeshwar•20m ago•1 comments

Rental Harmony

https://cynablog.substack.com/p/rental-harmony
2•surprisetalk•21m ago•0 comments

Thick Coins by Theodore Nichols

https://thick-coins.net/
2•surprisetalk•21m ago•0 comments

The Utopia of the Family Computer

https://mudmapmagazine.com/the-utopia-of-the-family-computer/
2•surprisetalk•21m ago•0 comments

The Long-Term Effects of Grade Inflation

https://drive.google.com/file/d/1CcS_caQP701I92FeB6ZYlT1C7hjnFEWo/view
1•surprisetalk•21m ago•0 comments

Tech exec pitches $500k exit tax for educated Canadians

https://nationalpost.com/opinion/terry-newman-tech-exec-pitches-liberal-convention-on-500k-exit-t...
3•dj_rock•21m ago•1 comments

Show HN: Remy, an AI agent that compiles annotated Markdown into full-stack apps

https://remy.msagent.ai/
3•sthielen•21m ago•0 comments

Heerich.js – 3D voxel scenes rendered to SVG

https://meodai.github.io/heerich/
2•knuckleheads•21m ago•0 comments

Durable Objects in Dynamic Workers: Give each AI-generated app its own database

https://blog.cloudflare.com/durable-object-facets-dynamic-workers/
2•salkahfi•22m ago•0 comments

Tell HN: Facebook's reasons to disable an account is a blackbox

3•bprasanna•22m ago•1 comments

A brief history of Lab Notebooks

https://press.asimov.com/articles/lab-notebooks
2•the-mitr•22m ago•0 comments

Builds Just Got Faster

https://www.netlify.com/blog/your-builds-just-got-faster/
2•sausagefeet•23m ago•0 comments

An extension for DuckDB, which captures lineage events for executed queries

https://github.com/ilum-cloud/duck_lineage
2•tanelpoder•24m ago•0 comments

US appeals court declares 158-year-old home distilling ban unconstitutional

https://nypost.com/2026/04/11/us-news/us-appeals-court-declares-158-year-old-home-distilling-ban-...
19•t-3•25m ago•1 comments

Chromebook Remorse: Tech Backlash at Schools Extends Beyond Phones

https://www.nytimes.com/2026/03/29/technology/chromebook-remorse-kansas-school-laptops.html
2•chirau•25m ago•1 comments

Meta Expected to Unseat Google as Largest Digital-Ad Player

https://www.wsj.com/business/media/meta-expected-to-unseat-google-as-worlds-largest-digital-ad-pl...
3•tzury•27m ago•0 comments