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: Ledge – a shelf for files, clipboard history, and music

https://www.tryledge.app
1•sb78639•10m ago•0 comments

In 1 in 6 repos with both files, Claude Code never loads the AGENTS.md

https://gethrbr.com/blog/claude-md-agents-md-github-study
1•rshoustak•11m ago•0 comments

A Chromium Bug Caused by a 25-Hour Day

https://ramsayleung.github.io/en/post/2026/the_chromium_bug_caused_by_25_hour_day/
1•signa11•11m ago•0 comments

A few drawings about Linux (2016)

https://jvns.ca/blog/2016/11/10/a-few-drawings-about-linux/
2•sammatilda•15m ago•0 comments

The Curse of Recursion: Training on Generated Data Makes Models Forget (2024)

https://arxiv.org/abs/2305.17493
1•Eridanus2•15m ago•0 comments

Light Pollution Map

https://lightpollutionmap.app/
2•joebig•21m ago•0 comments

Tetragon Outgoing Guard

https://github.com/danielecr/tetragon-outgoing-guard
1•danielecr•23m ago•0 comments

Real: Reported Engagement with AI Level Framework

https://www.realgoodai.org/real-rating
1•jalev•23m ago•0 comments

ProKey wrecked a perfectly good IBM XT keyboard for its bad ads in the 80s

https://buttondown.com/suchbadtechads/archive/prokey-macro/
1•rfarley04•24m ago•0 comments

1 Week with the iPad Mini OLED [video]

https://www.youtube.com/watch?v=5tqm_9eR02Y
1•tosh•25m ago•0 comments

Goodrunes – just released – mmo browser game

https://goodrunes.com/
1•tongsong•31m ago•0 comments

Fly to Infinity and Back

https://vatsaltanna.com/traveltoinfinity/
1•vatsaltanna•32m ago•1 comments

Mac Health MCP – ask Claude why your Mac is slow

https://github.com/Swedishwizards/Mac-health-mcp
1•Swedishwizards•33m ago•0 comments

Microsoft says services restored after global outage

https://www.theguardian.com/technology/2026/nov/14/microsoft-says-services-fully-restored-after-g...
2•saikatsg•36m ago•0 comments

Bitrise Suffered a Security Incident

https://status.bitrise.io
1•hacb•37m ago•0 comments

Silicon Valley Is Used to Scandal. This One Upped the Ante

https://www.nytimes.com/2026/11/14/technology/jensen-huang-nvidia-scandal-silicon-valley.html
2•saikatsg•38m ago•0 comments

Project Zero will disclose vulnerabilities 90 days after reporting

https://projectzero.google/2026/11/disclosure-policy.html
2•hacb•39m ago•0 comments

On Vibe Coding, Part II

https://rz01.org/vibecoding-2/
2•exitnode•41m ago•0 comments

HealthLog – Open-source personal health tracker

https://healthlog.dev
1•upcoming-sesame•41m ago•0 comments

Migrating from GitHub to Codeberg

https://yorickpeterse.com/articles/migrating-from-github-to-codeberg/
3•YorickPeterse•46m ago•0 comments

The need for at least a third option

https://blog.ovalerio.net/archives/3359
1•birdculture•49m ago•0 comments

Ask HN: My product makes money, AI does the coding, and I feel useless

3•hellohiki•54m ago•3 comments

Ukraine needs a Starshield alternative. Can Europe deliver? – DW News [video]

https://www.youtube.com/watch?v=7Zz1ZxI9ldY
1•doener•54m ago•0 comments

Anti-Turing for AI: Presumption as a Form of Thought

https://medium.com/@smoking2man/anti-turing-for-ai-presumption-as-a-form-of-thought-9eb8ae8edc9f
1•Aldus551•54m ago•0 comments

Microsoft 365 Outage Continues: Tech Giant Has No Timeline for Recovery

https://www.forbes.com/sites/antoniopequenoiv/2026/11/13/microsoft-365-outage-continues-tech-gian...
1•truegoric•55m ago•0 comments

Apple Files Patent for a Phone Camera Hidden Behind the Screen

https://patentlyze.com/patent/apple-phone-camera-hidden-behind-screen/
1•DeepLogin•59m ago•0 comments

I made a drum and bass track inspired by the recent Nvidia drama

https://soundcloud.com/poivrenoirmusic/export-controlled-love
1•bigcarrotcake•1h ago•0 comments

Why a 98%-accurate model leaves an agent's state right only 21% of the time

https://zenodo.org/records/23958737
2•shalendragaur•1h ago•0 comments

The FAA Rolled Out AI Air Traffic Tool a Few Days Ago?

https://gizmodo.com/the-faa-is-rolling-out-its-ai-air-traffic-tool-nationwide-2000839347
2•nephihaha•1h ago•0 comments

Ask HN: Why isn't the Solid protocol more popular?

1•laianav•1h ago•1 comments