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

220M traveler records exposed in Vietnam-linked APIs leak

https://www.bleepingcomputer.com/news/security/220-million-traveler-records-exposed-in-vietnam-li...
1•sbulaev•23s ago•0 comments

Social Reps: block Instagram until you do your push-ups

https://socialreps.app/
1•huevsite•26s ago•0 comments

Bitap: My favorite string matching algorithm

https://jo3-l.dev/posts/bitap/
1•haeseong•1m ago•0 comments

Sandbox confines the process, not the token

https://ki-utvikling.nav.no/en/news/sandbox-confines-the-process-not-the-token
1•starefossen•1m ago•0 comments

Show HN: Notifkit, self-hosted notification infra for email, SMS, push,etc. +MCP

https://github.com/devkitshq/notifkit
1•coo1estguy•2m ago•0 comments

FreeBSD 14.5-Release

https://www.freebsd.org/releases/14.5R/announce/
1•joshcsimmons•3m ago•0 comments

Automating Kubernetes Infrastructure with Crossplane Functions

https://engineering.moniepoint.com/kubernetes-infrastructure-with-crossplane-functions
1•Cellz•3m ago•0 comments

Experiment – Projectional Viewer

https://programmingsimplicity.substack.com/p/experiment-projectional-viewer
1•surprisetalk•3m ago•0 comments

ElevenLabs Aims to Be IPO-Ready in 2-3 Years

https://www.bloomberg.com/news/articles/2026-03-09/ai-startup-elevenlabs-aims-to-be-ipo-ready-in-...
1•JumpCrisscross•4m ago•0 comments

Show HN: Self-Hosted Code Review Agent for Local LLM

https://github.com/seoes/proval
1•dowonseo•5m ago•0 comments

Getting Out of the Loop: 8 Months Solo-Building with AI

https://github.com/patforna/writing
1•patforna•8m ago•0 comments

Early Data Indicates an A.I.-Generated Drug Could Slow Aging

https://www.nytimes.com/2026/09/07/science/ai-generated-drug-longevity.html
1•bookofjoe•8m ago•1 comments

Windows 11 users are getting full-desktop ads as wallpapers from Microsoft

https://www.neowin.net/news/windows-11-users-are-getting-full-desktop-ads-as-wallpapers-from-micr...
1•bundie•10m ago•0 comments

GTP6-Astra-Low in Codex launched a rocket in Factorio, on track for next planet

https://www.reddit.com/r/codex/comments/1wakicq/comment/p8ixq7l/
1•psihius•11m ago•1 comments

One Document, Two Hands

https://sunilpai.dev/posts/one-document-two-hands/
1•handfuloflight•12m ago•0 comments

Show HN: A Free AI Plugin for Google Ads, Console and Analytics

https://unfetch.com/plugin
1•timm37•12m ago•0 comments

Show HN: Stateful AI agent on Cloudflare Workers free tier, with evals

https://github.com/DomWane/workers-personal-agent
1•DomWane•13m ago•0 comments

Show HN: I've Translated Linear Algebra Done Right by Axler to Hebrew

https://twitter.com/AxlerLinear/status/2097188716091674804
1•tzury•14m ago•1 comments

NASA Sea Level Change

https://sealevel.nasa.gov/
1•simonebrunozzi•14m ago•0 comments

Show HN: Nexconn – Free cross-platform chat SDK with native push

https://www.nexconn.ai/free-chat-api
1•mia_tech•14m ago•0 comments

Show HN: Gat – Version large files with Git, store them anywhere

https://getgat.dev
1•davnn•15m ago•0 comments

Game publisher lies to its users and claims its graphics are hand-made

https://system3.com/news/from-retro-pixels-to-the-pondversethe-bovine-bomber-recreated-in-3d/
1•joemanaco•16m ago•1 comments

Show HN: AI Agent for Google Play Submissions [video]

https://www.youtube.com/watch?v=tSSPdkp0QVI
1•Harish_0089•17m ago•0 comments

PeaZip is an open-source file archiver that supports strong AES-256 encryption

https://digitalescapetools.com/tools/tool.html?id=peazip
1•xabd•18m ago•0 comments

Show HN: Fraise: a memory database for AI agents

https://docs.getfraise.dev
1•airejie•18m ago•0 comments

My dream is to become a chairman who only gave KPIs for AI, not tasks

1•nohuman-labs•20m ago•0 comments

On the 25th anniversary of 9/11, editor remembers the heroes of Flight 93

https://stateline.org/2026/09/08/on-the-25th-anniversary-of-9-11-states-newsroom-editor-remembers...
1•chmaynard•21m ago•0 comments

Pâro: The feeling that everything you do is somehow wrong

https://www.youtube.com/watch?v=w7l2hUp0CkQ
1•Arodex•21m ago•0 comments

Stop Killing the Internet: No Digital ID and No Age Verification

https://eci.ec.europa.eu/066/public/#/screen/home
1•miohtama•21m ago•0 comments

The Rich Climate Distraction

https://www.wsj.com/opinion/the-rich-worlds-climate-distraction-fe33cf14
1•mpweiher•23m ago•0 comments