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

Google Says K-12 Students at Schools That Turn Off Its AI Tools Will Lose Search

https://www.ghacks.net/2026/11/04/google-says-k-12-students-at-schools-that-turn-off-its-ai-tools...
1•rdmuser•1m ago•0 comments

Hosted Markdown 2 medium tool

https://medium.com/@keith.hodges/markdown-2-medium-tool-d3711869b762
1•keithhodges•2m ago•0 comments

The State of Python Profiling in 2026

https://p403n1x87.github.io/the-state-of-python-profiling-in-2026.html
1•lumpa•3m ago•0 comments

Accelerating Engineering for the Physical World

https://openai.com/index/accelerating-engineering-for-the-physical-world/
1•gmays•6m ago•0 comments

Time || Space? Generation of Time and Dates in C Language:Generation of Space

http://www.catb.org/esr/time-programming/
1•efren6•7m ago•0 comments

Isometric SF

https://isometricsf.com/
2•avyfain•9m ago•0 comments

Show HN: Autorun-audit – find what runs when you open, CD into or install a repo

https://github.com/ag3ntsc4rn/autorun-audit
1•ag3ntsc4rn•9m ago•0 comments

Here Be Monsters

https://www.nybooks.com/online/2026/10/30/here-be-monsters/
1•benbreen•14m ago•0 comments

Half-Life in 23:58

https://www.youtube.com/watch?v=P74qS4zYmis
1•nonethewiser•20m ago•0 comments

Bansat – Make your AI agent write the blueprint before the code

https://github.com/bewithkhan/bansat
1•bewithkhan•22m ago•0 comments

Anthropic Needs to Disclose Its Tokenomics Before Its IPO

https://www.techpolicy.press/anthropic-needs-to-disclose-its-tokenomics-before-its-ipo/
1•JustinHendrix•24m ago•0 comments

Show HN: Botlark – HN for Agents

https://botlark.com/
1•1potato•25m ago•1 comments

Siri AI is now open to all developers

https://developer.apple.com/news/?id=gdk2umrf
4•gmays•25m ago•1 comments

Show HN: I turned 18 Agatha Christie novels into SQL murder cases

https://querythemurder.com/
3•jenikashah07•36m ago•1 comments

Quasi-Logarithmic Kitchen Timer

https://blog.coredump.cx/p/quasi-logarithmic-kitchen-timer
1•surprisetalk•39m ago•0 comments

Anthropic buys one-person Kendall Square biotech ahead of IPO. Here's why

https://www.masslive.com/news/2026/11/anthropic-buys-one-person-kendall-square-biotech-ahead-of-i...
3•thavalai•47m ago•0 comments

Agent State Machines: Building Deterministic Scaffolding for Agents

https://twitter.com/josharosen/status/2117687393213932003
3•gmays•47m ago•0 comments

Show HN: Exact integer LLL lattice basis reduction in C99

https://github.com/qawbecrdtey/clll
2•qawbecrdtey•50m ago•0 comments

Cat Wu joins OpenAI from Anthropic in product-lead coup

https://www.businessinsider.com/cat-wu-joins-openai-from-anthropic-product-lead-coup-2026-11
3•closetheloopdev•50m ago•0 comments

HawaiʻI Green Party Candidate Makes History, Edges Democrat

https://www.civilbeat.org/2026/11/hawaii-green-party-candidate-makes-history-edges-democrat/
2•PaulHoule•53m ago•0 comments

The anatomy of language model inference and reinforcement learning

https://www.nabo.dev/blogs/jam-architecture
2•nomi_uw•56m ago•0 comments

Competition for direct weight editing for models: Delta League

https://deltaleague.ai/
1•zmanian•59m ago•0 comments

Vietnam Jails Pirate Football Streamers for Up to a Year, Three Escape Prison

https://torrentfreak.com/vietnam-jails-pirate-football-streamers-for-up-to-a-year-three-escape-pr...
4•gslin•1h ago•0 comments

Kimi K3.1 Pro Recalls and Enforces Hidden Test Rules [pdf]

https://r40.org/papers/kimi_k31_benchmark_audit.pdf
3•cheshire_cat•1h ago•0 comments

Harvey AI Is Proud to Sponsor the HBO Original Series, War

https://www.instagram.com/reel/DfVLkeKtbyD/
1•flyingsky•1h ago•0 comments

I Rebuilt My Custom Calculator and Made It Worse [video]

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

StateBench: Testing how language models track state changes over long documents

https://huggingface.co/blog/allenai/statebench
3•thedreammachine•1h ago•0 comments

The great butter and cheese fire of 1991

https://www.wisfarmer.com/story/opinion/columnists/2022/05/11/over-20-m-lbs-commodities-lost-grea...
1•subroutine•1h ago•0 comments

Nintendo's biggest ROM chip supplier is bowing out of the business

https://arstechnica.com/gaming/2026/11/the-tech-memory-shortage-comes-for-nintendos-cartridge-sup...
5•jnord•1h ago•0 comments

American Voters Overwhelmingly Reject AI Data Centers

https://www.404media.co/american-voters-overwhelmingly-reject-ai-data-centers/
10•latexr•1h ago•1 comments