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•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

Show HN: Voice control coding agents on your machine via smartwatch / CarPlay

https://dashvox.ai
1•Zante•4m ago•0 comments

Show Faith by Works Digital Dragnet – Untitledsource

https://untitledsource.substack.com/p/show-faith-by-works-digital-dragnet
1•untiledsource•4m ago•0 comments

Email from 10k Feet

https://maneeshaxyz.substack.com/p/email-from-10000-feet
1•maneeshaxyz•4m ago•0 comments

NIS2 Email Security: Mapping Article 21 Controls to DMARC, MTA-STS, and Dane

https://dmarcguard.io/blog/nis2-email-security/
2•meysamazad•4m ago•0 comments

Are blue zones real? Answering that question is harder then ever

https://www.statnews.com/2026/05/04/are-blue-zones-real-new-scrutiny-longevity-hot-spots/
2•mfld•5m ago•0 comments

Free IoT security scorecard mapped to ETSI EN 303 645 and EU CRA

https://tangibles-book.com/tools/iot-security-scorecard
1•yoelf22•6m ago•0 comments

I hired 5 people to sit behind me and make me productive for a month (2023)

https://www.lesswrong.com/posts/gp9pmgSX3BXnhv8pJ/i-hired-5-people-to-sit-behind-me-and-make-me-p...
2•LorenDB•6m ago•0 comments

Radxa Dragon Q8B: A Laptop Cosplaying as an SBC?

https://bret.dk/radxa-dragon-q8b-a-laptop-cosplaying-as-an-sbc/
1•gainsurier•6m ago•0 comments

ToolPix – Free Online Image, PDF, Coding and AI Tools

https://toolpix.pythonanywhere.com/
1•uthakkan•7m ago•0 comments

RFC 2119 for Agents.md: Make Your Agent Rules Compact and Strict

https://fertsch-roever.com/blog/rfc-2119-for-agents-md-make-your-agent-rules-compact-and-strict/
1•And-y•8m ago•0 comments

Governing a Codebase as a Commons

https://b-erdem.github.io/2026/06/01/governing-a-codebase-as-a-commons.html
1•baris_erdem•8m ago•0 comments

WhatsKept: Local agent-queryable WhatsApp from iOS encrypted backup

https://github.com/alkait/WhatsKept
1•tenthead•8m ago•0 comments

Virtual Memory: Page Tables, TLBs, and Linux Internals

https://blog.codingconfessions.com/p/virtual-memory
1•ibobev•10m ago•0 comments

Show HN: One-click open-source ecommerce starter (Magento), drive it with Claude

https://ecommerce-ai-starter.graycore.io
1•damienwebdev•13m ago•0 comments

Nvidia Cosmos 3

https://developer.nvidia.com/blog/develop-physical-ai-reasoning-world-and-action-models-with-nvid...
4•tosh•13m ago•0 comments

[video] WebRTC for the Streamer – How Whip/WebRTC Can Improve Streaming

https://www.youtube.com/watch?v=NOVH70nH7jw
1•Sean-Der•15m ago•1 comments

NPM packages from RedHat have been compromised

https://github.com/RedHatInsights/javascript-clients/issues/492
57•kurmiashish•15m ago•10 comments

Blue Origin Moon Lander Completes Testing at NASA Vacuum Chamber

https://www.nasa.gov/missions/artemis/blue-origin-moon-lander-completes-testing-at-nasa-vacuum-ch...
2•tcp_handshaker•16m ago•0 comments

Windows GOG DOS Games on M-Series Macs

https://f055.net/technology/windows-gog-dos-games-on-m-series-macs/
3•f055•17m ago•0 comments

Introducing Pulse: A Post-Scrum Manifesto and Agent Workflow for AI-Native Teams

https://github.com/pssah4/digital-innovation-agents
1•pssah4•18m ago•0 comments

AeroThemePlasma: Alternative shell for KDE Plasma that replicates Windows 7 look

https://gitgud.io/aeroshell/atp/aerothemeplasma
2•Tiberium•18m ago•0 comments

Major Israeli tech firms start layoffs as AI revolution roils industry

https://www.timesofisrael.com/major-israeli-tech-firms-commence-sweeping-layoffs-as-ai-revolution...
2•tcp_handshaker•19m ago•0 comments

Cosmos 3: Omnimodal World Models for Physical AI

https://research.nvidia.com/labs/cosmos-lab/cosmos3/
2•armcat•19m ago•0 comments

Show HN: Prela – Purely Algebraic Relation Combinators

https://github.com/remysucre/prela
1•remywang•20m ago•0 comments

The CIA crash that opened a fraught month in Mexico–US relations

https://english.elpais.com/international/2026-05-26/the-cia-crash-that-opened-a-fraught-month-in-...
2•wslh•20m ago•1 comments

Gemma 4 26B on a consumer GPU: build pain, throughput, and BFCL numbers

https://algollabs.com/blog/gemma4-bfcl
1•tumbak•21m ago•0 comments

Simple batch decoding of unary codes

https://fgiesen.wordpress.com/2026/05/30/simple-batch-decoding-of-unary-codes/
1•ibobev•22m ago•0 comments

When AI Starts Writing Systems Code

https://www.coreauto.com/blog/when-ai-starts-writing-systems-code
4•yurivish•23m ago•0 comments

Building DNA from Scratch in C

https://twitter.com/TheVixhal/status/2061108499636265114
4•ibobev•23m ago•0 comments

Ask HN: Are there companies that use agent-based modeling?

3•hamburgererror•23m ago•1 comments