frontpage.
newsnewestaskshowjobs

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

Show HN: DocFlow – AI documentation updates for GitHub pull requests

https://aicodedocumentationgenerator.com/
1•Aldasams•1m ago•0 comments

Fediverse.info: Social media that belongs to you

https://fediverse.info/
1•rapnie•4m ago•0 comments

CorvinOS – an agentic OS where GDPR/EU AI Act compliance can't be switched off

https://github.com/CorvinLabs/CorvinOS
1•shumway•6m ago•0 comments

Claude Code Antigravity CLI Agents Skill

https://github.com/markfulton/claude-antigravity-agents
1•DotSauce•6m ago•0 comments

Show HN: Mondael.com – Institutional Intelligence for Prediction Markets

https://mondael.com
1•16th_hop•8m ago•0 comments

Show HN: Sonn a reasoning layer that nudges coding agent before it makes mistake

https://sonn.dev
1•AlexSonn•8m ago•0 comments

Show HN: Phobos – A tiny scale-free kernel language with tile-DAG support

https://www.joa-ebert.com/posts/2026-07-07-phobos-lang/
1•joajoa•9m ago•0 comments

Eliminating Go bound checks with unsafe

https://blog.andr2i.com/posts/2026-07-06-eliminating-go-bound-checks-with-unsafe
1•g0xA52A2A•9m ago•0 comments

Most AI Work Can Wait

https://tomtunguz.com/ai-execution-routing/
1•speckx•10m ago•0 comments

Show HN: Excogni – open-source cognitive training that can't leak your email

https://xcgni.com/
1•brna-2•10m ago•0 comments

Amazon aims to raise $25B from bond sale, Bloomberg News reports

https://www.reuters.com/legal/transactional/amazon-aims-raise-25-billion-bond-sale-bloomberg-news...
2•enlightpixel•10m ago•0 comments

ScreenStack Is Looking for Design Partners

1•ud0•11m ago•0 comments

Mark Zuckerberg's biggest legal nightmare yet could cost Meta $1.4T

https://www.the-independent.com/tech/mark-zuckerberg-meta-fine-trillion-b3010281.html
6•wrxd•11m ago•0 comments

OpenCRA

https://github.com/borisRadonic/OpenCRA
2•BorisRadonic•13m ago•1 comments

The Gap Map v0.1

https://www.currentai.org/blogs/introducing-the-gap-map-v0-1
1•surprisetalk•14m ago•0 comments

Show HN: Sprytools – 26 small developer APIs behind one key

https://sprytools.com/api/
1•grenzfrei•14m ago•0 comments

Netherlands recruited 29 top scientist leaving U.S. under Trump

https://nltimes.nl/2026/07/07/netherlands-recruited-29-top-scientist-leaving-us-trump
2•jacquesm•15m ago•1 comments

Hacking the bureaucracy to get stuff done (2020)

https://www.zainrizvi.io/blog/hacking-the-bureaucracy-to-get-stuff-done/
1•cdirkx•15m ago•0 comments

A visual calculator to estimate and compare LLM API pricing

https://neutraloverdrive.com/tools/token-calculator/
1•brancpa•15m ago•0 comments

Software is eating the world, AUTONOMOUSLY

https://2030.marketing/software-is-eating-the-world-autonomously/
1•TechOnionKing•15m ago•0 comments

Space Force's high-powered electro beam nullifies hostile satellites

https://newatlas.com/military/space-force-meadowlands-satellite-blinding-beam-weapon/
3•geox•17m ago•0 comments

Show HN: SigMap – deterministic repo maps for AI coding agents

https://sigmap.io
2•cees007•17m ago•0 comments

Ask HN: What are alternative to Upwork for side gig?

2•user7878•17m ago•1 comments

Show HN: Sdlc factory built on pi.dev:intent->DDD->architecture->tested code

https://github.com/arman-jalili/guardian-framework
1•arman-w-jalili•18m ago•0 comments

Court allows far-right leader Marine Le Pen to run for president

https://www.nbcnews.com/world/europe/france-far-right-marine-le-pen-presidential-election-macron-...
2•Alien1Being•18m ago•1 comments

A design system for Rust/egui where token violations fail the build

https://ouroboros-ui.typezerolabs.com
1•mauriciojuba•19m ago•0 comments

The Perfect Cripple: A User Guide to Being Palatable

https://www.salient.org.nz/post/the-perfect-cripple-a-user-guide-to-being-palatable
2•speckx•20m ago•0 comments

Discovery helps explain why solid-state batteries often fail

https://news.mit.edu/2026/discovery-helps-explain-why-solid-state-batteries-often-fail-0706
2•gmays•20m ago•0 comments

Amazon Returns to US Bond Market to Fund AI Infrastructure Build

https://www.bloomberg.com/news/articles/2026-07-07/amazon-returns-to-us-bond-market-to-fund-ai-in...
3•thm•21m ago•0 comments

The Popup That Says the Quiet Part Out Loud

https://blog.ppb1701.com/the-popup-that-says-the-quiet-part-out-loud
1•ExMachina73•22m ago•0 comments