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

Show HN: We ran 79 MCP servers in microVMs, only 31 passed

https://usethrone.dev
1•imtaimoorkhan•2s ago•0 comments

Victoria proposes 'demasking' powers to identify anonymous social media accounts

https://www.theguardian.com/australia-news/2026/jul/19/victoria-proposes-social-media-account-ide...
1•sbulaev•1m ago•0 comments

San Francisco Demands Apple and Google Delete AI 'Nudify' Apps from App Stores

https://techcrunch.com/2026/07/17/apple-and-google-ordered-to-purge-nudify-apps-from-app-stores/
1•nyku•2m ago•0 comments

Modern Harcker News (A Chrome extension to make Hacker News look moder)

https://chromewebstore.google.com/detail/modern-hacker-news/gkcajbhedfpgeaeeedhanlljgjbknadk
1•i3130002•4m ago•1 comments

Claude Code uses Bun written in Rust now

https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/
1•tosh•5m ago•0 comments

AI coding agents should optimize for less owned code

https://www.openenergytransition.org/posts/ai-coding-agents-should-optimize-for-less-owned-code
1•lyoncy•5m ago•0 comments

Claude Code now uses the new (unreleased) version of Bun (in Rust)

https://twitter.com/simonw/status/2078692298301587758
1•tosh•6m ago•0 comments

Follow the money, especially in open source

https://www.osnews.com/story/145548/follow-the-money-especially-in-open-source/
2•jandeboevrie•7m ago•0 comments

Show HN: Inertia, Physics in a Terminal

https://inertia-web.github.io/
1•aclfe•7m ago•0 comments

Aging Baby Boomers are America's real labor problem, not AI

https://fortune.com/2026/07/18/us-labor-shortage-ai-baby-boomers-2032/
2•quick_brown_fox•12m ago•0 comments

Free, comprehensive SEO analysis of your website (no signup, 100 checks)

https://www.upstart.quest/en/free-seo-analysis
1•k0ngz1•21m ago•1 comments

Tape notes: looking back at the iconic C81 compilation

https://www.nme.com/features/music-features/c81-tape-notes-3773602
1•jjgreen•21m ago•0 comments

Comprehensive understanding of Beidou short message communication (2024)

https://www.skylabmodule.com/comprehensive-understanding-of-beidou-short-message-communication
2•dizhn•29m ago•0 comments

Async Python File IO Using Uring

https://github.com/meitham/urio
1•meitham•29m ago•0 comments

Using AI makes people less likely to admit they don't know something

https://www.theregister.com/ai-and-ml/2026/07/19/using-ai-makes-people-less-likely-to-admit-they-...
3•defrost•30m ago•0 comments

Systemd, 10 years later: a historical and technical retrospective (2020)

https://blog.darknedgy.net/technology/2020/05/02/0/
1•downbad_•34m ago•0 comments

The Architecture of Absolute Autonomy: Inside the SOBÈK Framework

https://github.com/MichaelBirara/sobek-framework
1•MichaelBirara•37m ago•0 comments

Open Geo skills for geospatial analysis

https://github.com/jaakla/open-gis
1•jaakl•41m ago•0 comments

Show HN: Zlvox – A no-signup suite of developer tools (JSON, Temp Mail, PDF)

https://zlvox.com/blog/why-i-stopped-using-random-online-ai-tools-2026
1•mraadikhokhar•44m ago•0 comments

A full offline voice agent in 1.2 GB of RAM on Android device with FunctionGemma

https://old.reddit.com/r/androiddev/comments/1v07clk/a_full_offline_voice_agent_in_12_gb_of_ram_s...
1•ipotapov•46m ago•0 comments

Design a Url Shortner

https://blog.danwald.me/design-a-url-shortner
1•danwald•49m ago•0 comments

Ask HN: USB-to-WiFi print server for old printers – do you want it?

3•ValdikSS•55m ago•0 comments

Reading Between the Dots: Decoding Hidden Computation Across Filler Tokens

https://arxiv.org/abs/2607.03502
1•user_7832•55m ago•2 comments

Linux Foundation Announces the Intent to Launch the Tokenomics Foundation

https://www.linuxfoundation.org/press/linux-foundation-announces-the-intent-to-launch-the-tokenom...
1•nlpnerd•56m ago•0 comments

Coding too fast to collaborate

https://chrisloy.dev/post/2026/07/19/coding-too-fast-to-collaborate
2•chrisloy•1h ago•0 comments

RedisME:The most user-friendly RDM in the world

https://www.hepengju.com/
1•hepengju•1h ago•0 comments

Node graphs suck for metrics and traces

https://play.mapgl.org
1•vaduga•1h ago•1 comments

Dumber Mini: A Nokia-Style Phone with WhatsApp and Maps

https://dumbermini.com/
2•thunderbong•1h ago•0 comments

Trump, not Iran, is the greatest danger

https://www.theguardian.com/commentisfree/2026/jul/18/donald-trump-iran-world-danger-bombing-us
7•0x54MUR41•1h ago•4 comments

Show HN: AI mock interview tool that scores your answers – free, no signup

https://interviewpracticeai.com
1•BenGallagh•1h ago•0 comments