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

The Calculator Discipline – AI-Assisted Disclosure Hallucinations

https://zenodo.org/records/20393083
1•ethical•4m ago•0 comments

Researchers have developed pixels that can emit and analyse light together

https://ethz.ch/en/news-and-events/eth-news/news/2026/06/a-new-type-of-pixel.html
2•tspng•5m ago•1 comments

Decline in IQ linked to frequent or dependent use of cannabis use in youth

https://www.cambridge.org/core/journals/psychological-medicine/article/intelligence-quotient-decl...
2•vixen99•7m ago•0 comments

Om interviews Brunello Cucinelli (2015)

https://om.co/2015/04/27/brunello-cucinelli-2/
2•tosh•12m ago•0 comments

US Military conducts strikes on Iran after attack on ship in Strait of Hormuz

https://twitter.com/BBCBreaking/status/2070610019578511419
3•aurenvale•12m ago•0 comments

NLNet Labs LLM Policy

https://nlnetlabs.nl/llm-policy/
1•birdculture•15m ago•1 comments

Clockwork, a browser engine of intermeshing gears and impossible motion

https://sand-morph.up.railway.app/clockwork
1•echohive42•16m ago•0 comments

Germany urges EU to suspend methane rules after US pressure

https://www.ft.com/content/c5c97c40-6afe-4a22-a9b8-aea456b85326
3•littlexsparkee•20m ago•1 comments

How to Write an Effective Software Design Document · Refactoring English

https://refactoringenglish.com/excerpts/write-an-effective-design-doc/
1•mpweiher•24m ago•0 comments

Gstack

https://github.com/garrytan/gstack
1•grajmanu•26m ago•0 comments

Russian hackers were behind $2.5B hack of Jaguar Land Rover

https://techcrunch.com/2026/06/26/russian-hackers-were-behind-2-5-billion-hack-of-jaguar-land-rov...
3•01-_-•27m ago•0 comments

Free-For.dev

https://github.com/ripienaar/free-for-dev
1•grajmanu•27m ago•0 comments

Git Push No-Mistakes

https://github.com/kunchenguid/no-mistakes
1•grajmanu•28m ago•0 comments

Digital Donkeys: An Allegory for the Algorithmic Feed

https://om.co/2026/05/25/we-are-living-in-pinocchios-world/
2•merqurio•30m ago•0 comments

Om Malik, Whose Blog Shaped How Silicon Valley Saw Itself, Dies at 59

https://www.nytimes.com/2026/06/26/technology/om-malik-dead.html
10•philip1209•35m ago•0 comments

Selfhost.directory – a directory of self-hostable projects with live updates

https://selfhost.directory/
1•internetak•36m ago•1 comments

The Copy and the Guru

https://om.co/2026/05/26/the-copy-and-the-guru/
3•tosh•43m ago•0 comments

The text/Markdown Media Type

https://datatracker.ietf.org/doc/html/rfc7763
1•foxfired•44m ago•0 comments

They quit the West for Russia's traditional values, but it wasn't as expected

https://www.bbc.co.uk/news/articles/cn075j04pnyo
7•mellosouls•47m ago•1 comments

The Cost Yagni Was Never About

https://newsletter.kentbeck.com/p/the-cost-yagni-was-never-about
2•mpweiher•47m ago•0 comments

RelayMatch | Get your idea in front of the right people in 5 minutes.

https://relaymatch.pro
1•nikitafaesch•48m ago•0 comments

Apple's Vision Pro and Smart Glasses Chief to Join OpenAI

https://www.bloomberg.com/news/articles/2026-06-26/apple-s-vision-pro-and-smart-glasses-chief-pau...
5•aurenvale•49m ago•0 comments

IBM has unveiled chip technology that could help extend Moore's Law another dec

https://www.technologyreview.com/2026/06/25/1139696/ibm-unveils-sub1nm-chip/
2•joozio•55m ago•0 comments

Corgi makes things worse, claims Postmark is overcharging (despite being Free)

https://twitter.com/SergioGarc20223/status/2070629753506476376
2•mmunj•58m ago•0 comments

Reversing Ukraine's Population Loss After Four Years of War

https://www.thinkglobalhealth.org/article/reversing-ukraines-population-loss-after-four-years-of-war
1•littlexsparkee•58m ago•0 comments

Show HN: Hikaru Labs – image tools that run directly on your device

https://hikarulabs.xyz
2•CFBL•1h ago•0 comments

Show HN: Statemently – Bank statement PDFs to Excel/CSV, totals verified

https://statemently.io
1•pro_methe5•1h ago•0 comments

A small plane crashed into Beijing's tallest building

https://www.bbc.com/news/videos/c8j2rjrzjero
4•linzhangrun•1h ago•0 comments

Ask HN: How do founders get early beta testers?

2•KNihalani•1h ago•2 comments

Searching for a [72,36,16] extremal code

https://valbert4.github.io/selfdual_site/
2•EvgeniyZh•1h ago•0 comments