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

Every Frame Perfect

https://tonsky.me/blog/every-frame-perfect/
1•soheilpro•9m ago•0 comments

Preliminary analysis of AUR malware (400 packages compromised)

https://ioctl.fail/preliminary-analysis-of-aur-malware/
1•apublicfrog•10m ago•0 comments

Show HN: AccInt – a Work Model for AI coding agents

https://accint.xyz/
1•maxbaluev•19m ago•0 comments

Raspberry Pi projects I'm self-hosting this year

https://www.xda-developers.com/raspberry-pi-projects-self-hosting-this-year-instead-of-paying-mon...
2•y1n0•19m ago•0 comments

Catjam 2026

https://itch.io/jam/catjam-2026
1•y1n0•22m ago•0 comments

Local-first open-source vibe-coded feelings wheel app

https://feel-forward.web.app
1•no_creativity_•22m ago•1 comments

Saasm (Software as a Slot Machine)

https://sammacginty.substack.com/p/saasm-software-as-a-slot-machine
3•sammacg•23m ago•0 comments

Anthropic disables access to Fable 5 and Mythos 5 to comply with government

https://www.cnbc.com/2026/06/12/anthropic-disables-access-to-fable-5-and-mythos-5-to-comply-with-...
2•y1n0•24m ago•1 comments

Has AI Killed How-To Nonfiction?

https://tim.blog/2026/06/12/has-ai-already-killed-nonfiction/
1•igonvalue•30m ago•0 comments

As a result of a US Government directive, we are suspending access to Fable 5

https://twitter.com/ClaudeDevs/status/2065597942602531163
19•plonkus•42m ago•1 comments

A Diary from the Psychic Capital of the World

https://www.theparisreview.org/blog/2026/06/12/diaries-from-the-psychic-capital-of-the-world/
1•zeech•44m ago•0 comments

Show HN: Open-source Git-like Markdown docs for humans and agents

https://www.datacompany.dev
1•jbuchananr•46m ago•0 comments

We've suspended access to Claude Mythos 5 and Claude Fable 5

https://status.claude.com/incidents/s9w82lp9dcn9
3•jesse_dot_id•46m ago•0 comments

White House discussions are weighing giving CISA Mythos access

https://www.nextgov.com/artificial-intelligence/2026/06/white-house-discussions-are-weighing-givi...
2•WaitWaitWha•46m ago•0 comments

Learn and validate historical data modeling patterns

https://bitemporal-debugger.vercel.app
1•temp_debugger•48m ago•0 comments

GM's New Battery Storage System Could Threaten Tesla's Power Empire

https://www.msn.com/en-us/autos/news/gm-s-new-battery-storage-system-could-threaten-tesla-s-power...
1•MilnerRoute•48m ago•0 comments

Language Transfer

https://www.languagetransfer.org
1•jbm•49m ago•0 comments

US Government directive to suspend access to Fable 5 and Mythos 5

https://www.anthropic.com/news/fable-mythos-access
495•Dylan1312•53m ago•270 comments

Nix Koans

https://rgbcu.be/blog/nix-koans/
1•RGBCube•58m ago•0 comments

Kryptos: Paradigm Puzzles

https://paradigm.xyz/kryptos-ctf/pk1
1•nycdatasci•1h ago•0 comments

Four Programming Languages You've Probably Never Heard of [video]

https://www.youtube.com/watch?v=_rHoHLanuQg
2•marvinborner•1h ago•0 comments

Sodium Bicarbonate for In-Hospital Cardiac Arrest – A Randomized Clinical Trial

https://jamanetwork.com/journals/jama/fullarticle/2850405
1•bookofjoe•1h ago•0 comments

Solid-state batteries are now powering EVs in the real world

https://electrek.co/2026/06/11/solid-state-batteries-now-powering-evs-in-real-world/
3•breve•1h ago•0 comments

How to prepare for interview in the new AI era

https://medium.com/@amney.mounir/data-analyst-interviews-are-changing-with-ai-and-you-better-be-r...
2•amnito•1h ago•2 comments

The social consequences of AI delegation

https://arxiv.org/abs/2606.11058
1•Anon84•1h ago•0 comments

No-One Is Going to Buy Your Videogame

https://illomens.itch.io/no-one-is-going-to-buy-your-game
7•generichuman•1h ago•0 comments

We recommend Highway over std:SIMD

https://github.com/google/highway/blob/master/g3doc/std_simd_comparison.md
1•ndiddy•1h ago•0 comments

Oracle and the AI Boom's Hidden Debt Bomb

https://www.inc.com/fast-company-2/oracle-ai-boom-hidden-debt-nvidia-jensen-huang/91357055
4•PessimalDecimal•1h ago•0 comments

Socratic Spiral Learning with LLMs

https://abhichavali.com/posts/socratic-spiral-learning-with-llms/
2•chabi•1h ago•1 comments

Show HN: Spin up MCU simulations like VMs

https://simulator86.com/blog/simulator86-sdk/
1•grog_6•1h ago•0 comments