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

Gaia Skill Tree: a registry where every agent skill ships with an evidence chain

https://github.com/gaia-research/gaia-skill-tree
1•nova-gaia•3m ago•0 comments

Show HN: Ticker-line.com – embeddable market sparkline SVGs

https://ticker-line.com/
1•kahtaf•4m ago•0 comments

Scientists are regrowing human teeth

https://www.bbc.com/future/article/20260717-goodbye-implants-scientists-are-regrowing-teeth
2•dabinat•6m ago•0 comments

Is it a slop if it's not sloppy?

https://mkagenius.substack.com/p/is-it-a-slop-if-its-not-sloppy
1•mkagenius•9m ago•0 comments

Jurassic Park packed $4M of legit 1993 computer hardware

https://www.tomshardware.com/desktops/jurassic-park-packed-usd4-million-of-legit-1993-computer-ha...
4•sbulaev•13m ago•1 comments

xAI's first lawsuit against a user tests who is responsible for what Grok makes

https://thenextweb.com/news/xai-sues-grok-user-csam-terms-of-service
4•nyku•14m ago•0 comments

We want Texans to know their rights

https://www.eff.org/deeplinks/2026/07/we-want-texans-know-their-rights-qa-mayday-health-impact-su...
8•amarcheschi•17m ago•0 comments

The Control Group Is Out of Control (2014)

https://slatestarcodex.com/2014/04/28/the-control-group-is-out-of-control/
3•downbad_•19m ago•0 comments

Ask HN: How are you doing threat modeling for Terraform/IaC?

2•PotatoFy•21m ago•1 comments

On Creativity

https://twitter.com/bekhovsgun/status/2078959026004471973
3•reb•21m ago•0 comments

Grok-iOS – remote Grok Build from your iPhone over ACP

https://github.com/Pedroshakoor/grok-build-ios
2•pedroshakoor•29m ago•0 comments

Biggest Probabilistic Computer Turns Noise into Answers

https://spectrum.ieee.org/biggest-probabilistic-computer
2•rbanffy•38m ago•0 comments

Bad roads act as filters (1967)

https://wist.info/krutch-joseph-wood/53557/
2•dredmorbius•40m ago•1 comments

Is AI Progress Real? Four Independent Metrics Show It

https://skepticcto.substack.com/p/is-ai-progress-real-a-skepticcto
2•rbuccigrossi•41m ago•0 comments

Offload: Parallelize your test suite across 200 cloud sandboxes

https://imbue.com/product/offload
2•nvader•44m ago•0 comments

Show HN: A canvas-based note taking and organizer app

https://www.passinote.app/
4•passiflora96•49m ago•1 comments

Fayetteville officers fired for misusing license plate system

https://www.fox5atlanta.com/news/3-fayetteville-officers-fired-misusing-license-plate-system
7•pir8life4me•51m ago•1 comments

Three HPC Gurus Ask: Do We Still Need GPUs?

https://www.nextplatform.com/compute/2026/06/30/three-hpc-gurus-ask-do-we-still-need-gpus/5264552
3•rbanffy•51m ago•0 comments

How to Abandon Your Climate Commitments and Get Away with It

https://www.nytimes.com/2026/07/17/climate/company-climate-change-commitments-renege.html
4•littlexsparkee•57m ago•0 comments

Beware Change-Blocking Priors

https://www.overcomingbias.com/p/beware-change-blocking-priors
2•paulpauper•59m ago•0 comments

AI advice made people 3x less accurate but 2x confident, researchers found

https://thenextweb.com/news/ai-advice-suppresses-critical-thinking-wrong-answers-study
42•rbanffy•1h ago•8 comments

Show HN: ShipMD.app – Moving things in folders, move things in the real world

https://shipmd.app
2•bosky101•1h ago•0 comments

Built 160 micro calculator tools and the keyword data genuinely surprised me

https://www.indiehackers.com/post/built-160-micro-calculator-tools-and-the-keyword-data-genuinely...
3•julian-vix•1h ago•0 comments

Forbes Thinks AI Created a New Profession. History Has Seen It Before

https://futurehangover.substack.com/p/forbes-thinks-ai-created-a-new-profession
3•DefNotAiForSure•1h ago•2 comments

Cronstable, a cron replacement with retries, DAGs and a TUI/web dashboard

https://github.com/ptweezy/cronstable
2•ptweezy•1h ago•0 comments

A new Intel Itanium (IA-64) emulator that boots Windows

https://raymii.org/s/blog/Intel_Itanium_IA-64-Emulator_that_boots_Windows.html
21•jandeboevrie•1h ago•11 comments

Americans are angry about data centers. Politicians are feeling the pressure

https://www.reuters.com/world/us/americans-are-angry-about-data-centers-politicians-are-feeling-p...
12•baranul•1h ago•1 comments

From Enlightenment to Alignment

https://smolnero.com/posts/from-enlightenment-to-alignment
2•andsoitis•1h ago•0 comments

Why It's So Hard to Add a Column in the Middle of a PostgreSQL Table

https://www.bytebase.com/blog/why-its-hard-to-add-a-column-in-the-middle-of-postgres-table/
3•thunderbong•1h ago•0 comments

Moore's Law for Everything

https://moores.samaltman.com/
2•dtj1123•1h ago•0 comments