frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•9mo ago

Comments

trbndev•9mo 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•9mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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: ClawMoat – Open-source runtime security for AI agents (zero deps, <1ms)

https://github.com/darfaz/clawmoat
1•ildar•1m ago•0 comments

North American Computational Linguistics Open Competition

https://naclo.org/practice.php
2•Antibabelic•4m ago•0 comments

DSGym: A holistic framework for evaluating and training data science agents

https://www.together.ai/blog/dsgym
1•roody_wurlitzer•5m ago•0 comments

Show HN: crai – Get notified when your AI CLI finishes thinking

https://github.com/turtlekazu/crai
1•turtlekazu•6m ago•0 comments

Show HN: What data brokers sell your profile for vs. what ads earn from you

https://data.attentionworth.com/
1•withshakespeare•9m ago•1 comments

Claude Code Remote Control

https://code.claude.com/docs/en/remote-control
1•empressplay•9m ago•0 comments

First British baby born using transplanted womb from dead donor

https://www.bbc.com/news/articles/cvg53xp5857o
1•breve•13m ago•0 comments

Show HN: I tested 50 AI video APIs and built a comparison platform

https://findaivideo.com
2•ludydev•18m ago•0 comments

Socialist Excellence in New York City

https://pluralistic.net/2026/02/24/mamdani-thought/#public-excellence
2•mrkpdl•18m ago•0 comments

Show HN: Workz – Zoxide for Git worktrees (auto node_modules and .env, AI-ready)

https://github.com/rohansx/workz
1•rohansx•19m ago•0 comments

Hatsune Miku Meets Clojure

https://old.reddit.com/r/Clojure/comments/1rck4tr/hatsune_miku_meets_clojure/
1•adityaathalye•20m ago•0 comments

MoltMemory – AI agent memory for Moltbook

https://github.com/ubgb/moltmemory
2•ubgbclaw1•21m ago•2 comments

Letters to a Young Creator

https://letters.stevejobsarchive.com/
2•dvrp•22m ago•0 comments

Strategic choices: When both options are good

https://longform.asmartbear.com/strategic-choices/
1•doppp•23m ago•0 comments

Ask HN: Seeking 5 alpha testers for Sovereign Stack, an AGPLv3 bare-metal NAS OS

1•csomaratne•24m ago•1 comments

Show HN: AgentVoice – Get feedback from AI to improve your MCP

https://voiceofagents.com
1•KenRuf•27m ago•0 comments

How Will OpenAI Compete?

https://www.ben-evans.com/benedictevans/2026/2/19/how-will-openai-compete-nkg2x
1•brettcvz•28m ago•0 comments

Hello – ProofOfConcept

https://poc.bcachefs.org/blog/hello.html
1•Antibabelic•29m ago•0 comments

"Willy's Chocolate Experience" (2024)

https://web.archive.org/web/20240301031453/https://willyschocolateexperience.com/index.html
1•nxobject•29m ago•0 comments

Ask HN: Is it worth doing a startup?

1•zkmon•30m ago•0 comments

Cache-aware prefill–decode disaggregation for 40% faster LLM serving

https://www.together.ai/blog/cache-aware-disaggregated-inference
1•roody_wurlitzer•35m ago•0 comments

Show HN: claude-env – Manage multiple accounts for Claude-code

https://github.com/solomon-b/claude-env
2•solomonb•38m ago•1 comments

Show HN: Sopho - Open Source Business Intelligence Platform

https://github.com/sopho-tech/sopho
2•athultr1997•41m ago•0 comments

Google RankBrain: How Google's AI Changed the Rules of Search

https://repuai.live/en/blog/google-rank-brain
1•bioneisme•44m ago•0 comments

Japan aims for world first in space-based solar power

https://www.asahi.com/ajw/articles/16293144
1•BaudouinVH•44m ago•1 comments

Find where your face appears online

https://eyematch.ai/
2•anetagro•45m ago•1 comments

Show HN: Turn Instagram and TikTok workouts into executable gym routines

1•chetansorted•46m ago•0 comments

The command line didn't die. It was waiting

https://getcoai.com/article/the-command-line-didnt-die-it-was-waiting/
1•djabatt•47m ago•0 comments

Ed Zitron loses his mind annotating an AI doomer macro memo

https://www.dropbox.com/scl/fi/1p1n0y1ip48ianok9dvbp/Annotation-The-Global-Intelligence-Crisis.pd...
2•ossa-ma•47m ago•0 comments

Show HN: PickOrCraft – AI photo studio, train your model, any aesthetic

https://www.pickorcraft.com/
1•yaswanthadi•48m ago•0 comments