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: Using prediction margins to decide when to trust your classifier

https://jeffyclassify.com/blog/confidence-routing/
1•nico•33s ago•0 comments

How to Run Large-Scale Web Scraping Jobs

https://www.zenrows.com/blog/large-scale-web-scraping-zenrows-batch
2•adelekeabdulgan•2m ago•0 comments

Show HN: Loudwalk – Review your Anki deck out loud on a walk

https://loudwalk.com/?from=hn
2•cracadumi•2m ago•0 comments

Growing Trees

https://brashandplucky.com/2026/10/15/growing-trees.html
2•ibobev•3m ago•0 comments

Gaussian Splats part 3: There's always a bigger scene

https://www.magnopus.com/blog/gaussiansplats-part-3-theres-always-a-bigger-scene
1•ibobev•3m ago•0 comments

Don't throw it all away: Caching an immediate-mode UI

https://blickeditor.com/blog/caching-an-immediate-mode-ui
1•ibobev•3m ago•0 comments

Coxon Day

https://www.thenewcritic.com/p/coxon-day
1•gmays•4m ago•0 comments

Show HN: Turm.dev – Agent computers that are cheap, simple, and built in Europe

https://turm.dev
1•j-bu•4m ago•0 comments

Firecrawl Government and Legal Index

https://www.firecrawl.dev/gov-index
1•bluepeter•4m ago•0 comments

Celebrating the brilliant pragmatism of TCP/IP, the wiring of the world

https://www.theregister.com/columnists/2026/10/12/celebrating-the-brilliant-pragmatism-of-tcp/ip-...
1•hkhn•4m ago•0 comments

Apple to Support Brain-Implant Control of Its Devices (2025)

https://www.wsj.com/tech/apple-brain-computer-interface-9ec69919
1•bookofjoe•5m ago•1 comments

Show HN: Sonah, code reviewer that reads your agent's session, not only the diff

https://github.com/getsonah/sonah
1•abhinavsoni•5m ago•0 comments

Bun v1.4.4: now including `bun fmt`, a built-in formatter

https://bun.com/blog/bun-v1.4.4
1•jrop•5m ago•0 comments

Apple ordered allow alternative App Stores - Violated Australian Competition Law

https://www.abc.net.au/news/2026-10-23/fortnite-epic-games-back-in-apple-app-store/107302160
2•evolve2k•5m ago•0 comments

Show HN: I built Trama(gotrama) to monitor agency client sites

https://gotrama.com
1•emmanuelyaks•5m ago•0 comments

Show HN: Balsio – a free European alternative to WhatsApp for work chats

https://www.balsio.com/
1•rmesters•7m ago•1 comments

Wall Street Is Getting Nervous About AI

https://jacobin.com/2026/10/artificial-intelligence-investors-finance-bubble
3•jrepinc•9m ago•0 comments

Profiling Org->HTML formal grammar and optimizing it: orgwebalchemy

https://jointhefreeworld.org/blog/articles/lisps/orgwebalchemy-benchmarking-profiling-and-org-sup...
1•jjba23•10m ago•0 comments

Ghost Particles Are Exposing Hidden Black Holes. They Just Won a Nobel Prize [video]

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

Nvidia caused the gaming GPU shortage by pushing AI stockpiling

https://respawnfirst.com/multiple-reports-say-nvidia-manufactured-the-gaming-gpu-crisis-by-forcin...
1•entryleveljobsc•12m ago•0 comments

Omicron – Minimal, modern, self-hostable blogging over ActivityPub

https://omicron.blog/
3•subhangadirli•12m ago•0 comments

Why Is Netflix Laying People Off When Business Is So Good?

https://robrosenberg.substack.com/p/why-is-netflix-laying-people-off
2•PaulHoule•13m ago•0 comments

Local Wikipedia, on a Map

https://www.neil-scott.com/localwiki/
2•f91w•13m ago•0 comments

Ask HN: When can we trust AI in coding, and avoid the happy path issue?

1•abalgir•13m ago•2 comments

Why Britain can't get anything done

https://spectator.com/article/why-britain-cant-get-anything-done/
3•konamicode•13m ago•0 comments

Tachyon: Sampling Profiling in Python

https://mathspp.com/blog/tachyon-sampling-profiling-in-python
1•lumpa•15m ago•0 comments

Police in Japan likely to gain authority to hack phones to check messaging apps

https://soranews24.com/2026/10/21/police-in-japan-likely-to-gain-authority-to-hack-phones-to-chec...
4•snarky-comments•16m ago•0 comments

Does Sam Altman have a sister?

https://twitter.com/anniealtman108/status/2112954659497472100
3•34679•16m ago•0 comments

Neural Computers

https://arxiv.org/abs/2604.06425
2•oldfuture•18m ago•0 comments

Realising the Full Potential of the Web (1998)

https://www.w3.org/1998/02/Potential.html
2•skeledrew•18m ago•1 comments