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

How to Fix Circular Imports in a React/TypeScript Application

https://jsdev.space/howto/circular-imports-ts/
1•javatuts•50s ago•0 comments

Show HN: VaultAI – 42 AI models on a portable SSD, works offline ($399)

https://vaultai.us/
1•laramie_co•2m ago•1 comments

A 97M-parameter model outperforms 900M for warehouse robot coordination

https://rovnou.com/en/blog/deepfleet
1•ekusiadadus•5m ago•1 comments

Show HN: HushWork – A calm focus environment for focus in one tab

https://hushwork.app
1•pgebski•5m ago•1 comments

The path to ubiquitous AI (17k tokens/sec)

https://taalas.com/the-path-to-ubiquitous-ai/
2•sidnarsipur•10m ago•0 comments

SwiftUI Agent Skill: Build Better Views with AI

https://www.avanderlee.com/ai-development/swiftui-agent-skill-build-better-views-with-ai/
2•skreep•11m ago•0 comments

Chess engine, pt. 3: Elo, and rigorous SPRT testing

https://www.dogeystamp.com/chess3/
1•luu•13m ago•0 comments

Show HN: R2Stat – Monitor your Cloudflare R2 free Class B quota

https://r2stat.com/
1•jacoka•15m ago•1 comments

Agentic Engineering Best Practices

1•kingJulio•17m ago•0 comments

I tripled my SaaS prices after 2 weeks and signups didn't drop

https://web-production-71423.up.railway.app/
1•Shmungus•17m ago•1 comments

Show HN: One async PHP process serving web, REST API, and MCP for AI agents

https://pascualmg.dev/blog/pascual/one-async-php-process-web-server-rest-api-and-mcp-for-ai-agents
1•passh•17m ago•0 comments

Improving Interactive In-Context Learning from Natural Lang Feedback – DeepMind

https://arxiv.org/abs/2602.16066
2•zerop•21m ago•0 comments

Show HN: Behavr – Run realistic user simulations on your prototypes in minutes

1•Behavrai•27m ago•1 comments

Microsoft: Anti-phishing rules mistakenly blocked emails, Teams messages

https://www.bleepingcomputer.com/news/microsoft/microsoft-anti-phishing-rules-mistakenly-blocked-...
1•exploraz•28m ago•0 comments

Arpa.net

http://www.arpa.net/
1•TigerUniversity•30m ago•0 comments

Cloudflare uses ClickHouse to scale analytics at quadrillion-row scale

https://clickhouse.com/blog/cloudflare
2•samaysharma•30m ago•0 comments

Laurie Spiegel's pioneering '80s music software, Music Mouse, returns updated

https://djmag.com/news/laurie-spiegels-pioneering-80s-music-making-software-music-mouse-returns-m...
3•coffeeyesplease•31m ago•0 comments

A Constructive Look at TempleOS

http://www.codersnotes.com/notes/a-constructive-look-at-templeos/
2•TigerUniversity•33m ago•0 comments

Accenture combats AI refuseniks by linking promotions to log-ins

https://www.ft.com/content/ac672f97-a603-4c56-afa3-4a5273d45674
2•cianmm•41m ago•1 comments

Show HN: I Emulated My Childhood

https://sklivvz.com/posts/i-finally-emulated-my-childhood
2•sklivvz1971•45m ago•0 comments

Show HN: 17MB pronunciation scorer beats human experts at phoneme level

2•fabiosuizu•45m ago•0 comments

The Great Locomotive Chase

https://en.wikipedia.org/wiki/Great_Locomotive_Chase
3•keiferski•46m ago•0 comments

State of Generative Media

https://fal.ai/gen-media-report-volume-1
1•mdrzn•46m ago•0 comments

Brave Iranians gather in central Iran to honour those killed in uprising

https://twitter.com/IranIntl_En/status/2024767317893075330
8•ukblewis•46m ago•1 comments

Trump to order declassification of UFO/UAP related files

https://twitter.com/TrumpDailyPosts/status/2024661955479556382
1•lucasRW•47m ago•0 comments

Show HN: SaveTheTrade – a simple trade journal and performance tracker

https://survivethetrade.com/
1•daniellax•48m ago•0 comments

Wikipedia has deprecated and will blacklist archive.today

https://en.wikipedia.org/wiki/Wikipedia:Archive.today_guidance
7•gyrovague-com•52m ago•3 comments

TamboUI: A Modern Terminal UI Framework for Java (GraalVM Native)

https://github.com/tamboui/tamboui
1•mikepapadim•52m ago•0 comments

Optimism Plunges 28% as Base Drifts from OP Stack: What's Next?

https://timescrypto.com/cryptonews/altcoins/optimism-plunges-28-as-base-drifts-from-op-stack-what...
1•Alan_Writer•53m ago•0 comments

Show HN: Aismond – attack-surface monitoring for MSP client fleets

https://www.aismond.com/
1•mirceamitu•54m ago•0 comments