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•11mo ago

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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: Who'Studios – A Social Design Platform

https://www.whostudios.com/
1•WhosTiki•1m ago•0 comments

Lithium Yay

https://slimemoldtimemold.com/2025/10/02/lithium-yay/
1•surprisetalk•1m ago•0 comments

Notes on Beautiful Nonfiction

https://www.jenn.site/notes-on-beautiful-nonfiction/
1•surprisetalk•1m ago•0 comments

Age of Invention: Just Kiln Time

https://www.ageofinvention.xyz/p/age-of-invention-just-kiln-time
1•surprisetalk•1m ago•0 comments

Software Engineering Is Becoming Engineering

https://calebfenton.substack.com/p/software-engineering-is-becoming
1•calebfenton•1m ago•1 comments

No-Stack Web Development

https://dbushell.com/2026/04/10/no-stack-web-development/
1•rpgbr•1m ago•0 comments

Show HN: Cyber Pulse. AI pipeline for triage and alerting on cyber news/intel

https://play.google.com/store/apps/details?id=com.cyberpulse.cyber_pulse&hl=en_US
1•kozi93•1m ago•0 comments

Amazon signs $11.57B deal for satellite firm Globalstar

https://www.reuters.com/business/media-telecom/amazon-signs-1157-billion-deal-satellite-firm-glob...
1•elsewhen•2m ago•0 comments

Claude Code hitting ~50% usage after 1–2 prompts (Pro user)

https://github.com/anthropics/claude-code/issues/47587
2•kundi•2m ago•0 comments

Ratsissimo – RatGPT powered operatic mouse trap

https://shitposting.ai/ratsissimo/
1•commandertso•3m ago•0 comments

How to report a N=12 study?

https://statmodeling.stat.columbia.edu/2026/04/14/how-to-report-a-n12-study/
1•caminanteblanco•4m ago•0 comments

Stanford Artificial Intelligence Index Report 2026 [pdf]

https://hai.stanford.edu/assets/files/ai_index_report_2026.pdf
3•Anon84•5m ago•0 comments

Biased AI writing assistants shift users' attitudes on societal issues

https://www.science.org/doi/10.1126/sciadv.adw5578
1•Anon84•8m ago•0 comments

Show HN: I built a site to find cars compatible with open source ADAS software

https://buyanopenpilotcar.today/
1•ugtthis•8m ago•1 comments

Show HN: Linkshot – Auto-generate OG images from your live site via API

https://uselinkshot.com
1•shafkathullah•9m ago•0 comments

Orbiter – a CMS where everything (content, media,) lives in one SQLite file

https://github.com/aeon022/orbiter
1•aeon022•9m ago•0 comments

ivy: An APL-Like Calculator

https://github.com/robpike/ivy
1•tosh•9m ago•0 comments

The biggest advance since the LLM was neurosymbolic

https://twitter.com/GaryMarcus/status/2042987819333738929
1•thedebuglife•9m ago•1 comments

RawC: Pure Win32 C Client/Server Framework

https://magicalpc.com/
1•rogermaragh•9m ago•0 comments

Why I think the future of AI is in the browser

https://avkcode.github.io/blog/portal-browser-tmux.html
1•KyleVlaros•10m ago•0 comments

Show HN: Costile – open-source proxy, blocks AI API requests when budget is hit

https://costile.com/
1•Mkiza•10m ago•1 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
4•Anon84•11m ago•0 comments

The Dark Forest of Minds

https://github.com/thansz137/asiyah-protocol/blob/main/essays/dark_forest_of_minds.md
1•thansz•11m ago•0 comments

CoreWeave Takes as Much Financial Engineering as It Does Datacenter Design

https://www.nextplatform.com/cloud/2026/04/09/coreweave-takes-as-much-financial-engineering-as-it...
1•gmays•11m ago•0 comments

Show HN: Omega Walls–open-source stateful runtime defense for RAG and AI agents

https://synqra.tech/omega-walls
1•AnViF•12m ago•0 comments

Game Oriented Assembly Lisp

https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp
2•tosh•13m ago•0 comments

Why Vim uses hjkl keys as arrow keys

https://catonmat.net/why-vim-uses-hjkl-as-arrow-keys
1•speckx•13m ago•0 comments

Brainstorming Leaves Traces

https://blog.satsrail.com/brainstorming-leaves-traces/
1•keymaker_p•14m ago•0 comments

Pain and Suffering Are Not the Same Thing

https://medium.com/@genady_awarelife/why-suffering-persists-even-when-nothing-is-actually-wrong-f...
2•genadym•14m ago•0 comments

The Compression Paradox in AI: Meaning Breaks Before Models Hallucinate

https://figshare.com/articles/preprint/The_Compression_Paradox_in_AI_Why_Meaning_Breaks_Before_Mo...
1•scaledsystems•14m ago•0 comments