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

Kit-IFMS: A platform that combines SACCO management, lending, inventory and POS

https://kit-ifms.com/
1•amtkm•47s ago•0 comments

Turbocharged Earnings Are Pushing Stocks Higher. There's a Catch

https://www.wsj.com/finance/turbocharged-earnings-are-pushing-stocks-higher-theres-a-catch-100839c9
2•petethomas•1m ago•0 comments

Git platform built for agentic era

https://gitlawb.com/node
1•kevin11111•1m ago•2 comments

OSS models decisively overtook Proprietary models in market share

https://dirac.run/labs-market-share
2•GodelNumbering•2m ago•0 comments

A SaaS Boilerplate So You Can Launch in Hours, Not Weeks

https://github.com/katarinapetrov19/ShipKit
1•katarinap19•3m ago•1 comments

What can Cloudflare's Browser Run do?

https://what-can-browser-run-do.examples.workers.dev/
1•fayazara•3m ago•0 comments

Turn any MP3 into a karaoke pitch game (Demucs and RMVPE and forced alignment)

https://pitchhighway.com/
1•gabrielpolyy•4m ago•0 comments

PostFast MCP – schedule social posts to 11 platforms from Claude/Cursor/ChatGPT

https://github.com/peturgeorgievv-factory/postfast-mcp
1•peturgeorgievv•5m ago•0 comments

Luxury markets burn trillions in human labor – here's an engineering solution

https://qasoft.wordpress.com/2013/11/10/luxury-and-its-impact-on-society/
1•qamaster•5m ago•0 comments

The Underground Logic Shaping the Suburbs [video]

https://www.youtube.com/watch?v=jHIkiGJ1PxM
1•surprisetalk•6m ago•0 comments

Sexually Rejected Flies Turn to Booze (2012)

https://www.science.org/content/article/sexually-rejected-flies-turn-booze
1•speckx•6m ago•0 comments

OpenOMB – Apportionment Tracker

https://openomb.org/
1•softwaredoug•6m ago•0 comments

81920 CPU Cores per Rack with AMD EPYC Venice at HPE Discover 2026

https://www.servethehome.com/81920-cores-per-rack-with-amd-epyc-venice-at-hpe-discover-2026/
2•ksec•10m ago•0 comments

Show HN: Talos – Open-source WASM interpreter for Lean

https://github.com/cajal-technologies/talos
4•mfornet•11m ago•0 comments

MCP-customs: NPM audit, but for MCP servers

https://github.com/mcpcustoms/mcp-customs
1•mcpcustoms•11m ago•0 comments

Develop magazine #19 (1994) [pdf]

https://vintageapple.org/develop/pdf/develop-19_9408_September_1994.pdf
1•gregsadetsky•15m ago•1 comments

How Alberta Eradicated Rats

https://worksinprogress.co/issue/albertas-war-on-rats/
1•tzury•15m ago•0 comments

The Big Dig: Learning from a Mega-Project [pdf]

https://www.nasa.gov/wp-content/uploads/2025/09/appel-the-big-dig.pdf
1•bluedino•16m ago•0 comments

Is this England's best World Cup team since 1966?

https://www.ft.com/content/a6995fe9-9459-4e71-8e58-1cf33a5689fd
1•helsinkiandrew•16m ago•0 comments

How Hackers Found a Back Door into the American Living Room

https://www.wsj.com/tech/cybersecurity/how-hackers-found-a-back-door-into-the-american-living-roo...
1•thm•16m ago•0 comments

CVE-2026-42530 – Nginx HTTP3/QUIC Use-After-Free

https://my.f5.com/manage/s/article/K000161616
1•kro•17m ago•0 comments

CI/CD Security Principles in 2026

https://worklifenotes.com/2026/06/18/ci-cd-security-principles-in-2026/
1•taleodor•17m ago•0 comments

An Introduction to Programming with Threads [pdf]

http://birrell.org/andrew/papers/035-Threads.pdf
1•ibobev•18m ago•0 comments

Why Runtime Reconstruction Is Only Half the Problem

https://blog.bridgexapi.io/runtime-reconstruction-created-a-new-problem
2•Bridgexapi•18m ago•0 comments

Show HN: Flexorch-audit – quality scoring and PII detection for LLM pipelines

https://github.com/flexorch/flexorch-audit
1•flexorch•18m ago•0 comments

Leviathan Waking

https://www.hyperdimensional.co/p/leviathan-waking
1•gmays•19m ago•0 comments

Where's the holistic AI productivity data?

https://rachelandrew.co.uk/archives/2026/06/11/wheres-the-holistic-ai-productivity-data/
1•speckx•20m ago•0 comments

Before Mythos, Satan: A 1990s Software Satanic Panic

https://newsletter.pessimistsarchive.org/p/before-mythos-satan-a-1990s-software
1•pr337h4m•21m ago•0 comments

There have been 4 major plane crashes in the US in 4 days. What is going on?

https://www.cnn.com/2026/06/17/us/there-have-been-four-major-plane-crashed-in-the-us-in-four-days...
2•Tomte•22m ago•0 comments

Show HN: Know which AI coding tools/MCPs/etc. are used to ship software

https://blog.codacy.com/the-visibility-problem-behind-ai-tool-adoption-in-engineering-teams
2•ARayOutOfBounds•22m ago•0 comments