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

Berlin, Israeli defence giant IAI sign deal for defence innovation hub

https://www.euractiv.com/news/berlin-israeli-defence-giant-iai-sign-deal-for-aerospace-and-defenc...
1•doener•8m ago•0 comments

Scott Pelley Shows How Legacy Media Got It Wrong – and Bari Weiss Made It Worse

https://theintercept.com/2026/06/11/bari-weiss-scott-pelley-60-minutes-cbs-news/
2•hn_acker•8m ago•1 comments

'News' Site Keeps Hallucinating EFF Staffers

https://www.eff.org/deeplinks/2026/06/news-site-keeps-hallucinating-eff-staffers
1•hn_acker•8m ago•0 comments

A Functional Taxonomy of World Models

https://drfeifei.substack.com/p/a-functional-taxonomy-of-world-models
2•gmays•12m ago•0 comments

Bringing Hilton's loyalty program onto a secure AWS platform

https://www.justaftermidnight247.com/case-study/hilton-premium-club-japan/
1•mooreds•12m ago•0 comments

ICE Officers Break Cameras. Cops Steal Them. Welcome to New Jersey

https://www.techdirt.com/2026/06/11/ice-officers-break-cameras-cops-steal-them-welcome-to-new-jer...
3•hn_acker•12m ago•0 comments

SpaceX officially prices shares at $135 in the largest IPO ever

https://techcrunch.com/2026/06/11/spacex-officially-prices-shares-at-135-in-the-largest-ipo-ever/
3•7777777phil•12m ago•0 comments

Euro-Office 1.0 arrives to FOSS infighting: 'Compatibility is not sovereignty'

https://www.zdnet.com/article/euro-office-is-here-libreoffice-supporters-arent-happy/
4•devonnull•12m ago•0 comments

Silent Android feature scans photos for 'sensitive content' – how to uninstall

https://www.zdnet.com/article/android-safetycore-scans-phone-photos-for-sensitive-content-how-to-...
1•josephcsible•12m ago•0 comments

Show HN: A self-hosted market-research tool with publicly verifiable security

https://atlas.freedomcore.io/
1•MaverickAtlas•15m ago•0 comments

What Would It Look Like If the AI Bubble Popped?

https://www.thebignewsletter.com/p/what-would-it-look-like-if-the-ai
1•chmaynard•18m ago•0 comments

Is Your Writing Yours?

https://personalaisafety.com/p/is-your-writing-yours
1•sofiaqt•19m ago•1 comments

Mu

https://mu.social/
2•doener•19m ago•0 comments

Precision Matters in Block Scales

https://constantinides.net/2026/06/11/precision-matters-in-block-scales/
1•matt_d•20m ago•0 comments

UX Collective: The Prompt is not an Interface

https://uxdesign.cc/the-prompt-is-not-an-interface-41b77277681d
1•valisvalis•20m ago•0 comments

OpenAI Prepping for On-Prem Product?

https://ledger.somantix.ai/posts/open-ai-lays-groundwork-for-on-prem-product/
1•bdroopy•21m ago•0 comments

Data Science Weekly – Issue 655

https://datascienceweekly.substack.com/p/data-science-weekly-issue-655
1•sebg•22m ago•0 comments

Building an AI-Friendly Company, Just in Case AI Takes over the World

https://www.paxerp.com/blog/ai-friendly-company-docs
1•robeym•25m ago•0 comments

Agents' Last Exam

https://arxiv.org/abs/2606.05405
2•matt_d•27m ago•0 comments

DiffusionGemma: Discrete diffusion in a large language model

https://idlemachines.co.uk/topics/trending
2•smaddrellmander•27m ago•0 comments

Does the Harness Matter? Lessons from Ale-Claw on Agents' Last Exam

https://agents-last-exam.org/blogs/harness-matters
2•matt_d•28m ago•0 comments

Codex for Open Source

https://openai.com/form/codex-for-oss/
2•EvgeniyZh•29m ago•0 comments

Sam Altman's eye-scanning startup [Worldcoin parent] is laying off employees

https://www.businessinsider.com/sam-altman-orb-worldcoin-tools-for-humanity-layoffs-2026-6
2•toomuchtodo•29m ago•1 comments

Google Bikes?

https://www.republicbike.com/google_bikes.asp?hl=en-GB
1•joebig•29m ago•0 comments

Show HN: Diffcat – a TUI for delightful Git diffs

https://github.com/trebaud/diffcat
1•trebaud•29m ago•0 comments

Germany's 'HS2' delayed for five years after engineering blunder

https://www.telegraph.co.uk/world-news/2026/06/10/germanys-hs2-delayed-five-years-engineering-blu...
1•ExpertAdvisor01•30m ago•1 comments

The unreasonable effectiveness of simple HTML

https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiveness-of-simple-html/
14•luispa•32m ago•1 comments

Show HN: Vera – open-source tool to self-audit smart contracts with AI

https://vera.apostro.xyz/
1•roofloor•33m ago•0 comments

We Had to Ban 65 CTF Teams to Get a Top 10 Leaderboard

https://camel4.dev/posts/byuctf-2026/
1•joshmoody24•34m ago•0 comments

The same SQLite query returns different results in Bun and Node

https://github.com/andrewitsover/blog/blob/main/sqlite.md
1•andrewitsover•34m ago•0 comments