frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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

US Department of Energy will give weapons-grade plutonium to energy companies

https://www.cnn.com/2026/05/26/climate/trump-administration-plutonium-deal-energy-companies
1•ck2•28s ago•0 comments

Trump Signs AI Executive Order to Increase Government Oversight

https://www.wsj.com/tech/ai/trump-signs-ai-executive-order-to-increase-government-oversight-e78fb21f
1•thm•39s ago•0 comments

Show HN: MemexAI – we gave AI agents a "dreaming" phase to consolidate memory

https://memexai.space/blog/why-we-shipped-dreaming-for-ai-memory/
1•soorajsanker•2m ago•0 comments

Directionality in Low Precision

https://constantinides.net/2026/06/02/directionality-in-low-precision/
1•matt_d•2m ago•0 comments

The color of this new and unusual blue octopus is what helps it survive

https://www.nationalgeographic.com/animals/article/microeledone-galapagensis-little-blue-octopus
1•svenfaw•4m ago•0 comments

Steph Curry is going Direct to Consumer

https://home.onetext.com/blog/steph-curry-is-going-direct-to-consumer
2•jfudem•4m ago•0 comments

Be a good cook when you use AI to edit your writing

https://blog.avas.space/be-a-good-cook/
1•speckx•7m ago•0 comments

Vibe-Coding WebRTC

https://webrtchacks.com/webrtc-vibes/
1•Sean-Der•8m ago•0 comments

Top AI labs expand research into machine 'consciousness'

https://www.ft.com/content/53e14bcc-788c-4959-b260-7aee363594bc
3•bookofjoe•9m ago•1 comments

Diátaxis: A systematic approach to technical documentation authoring

https://diataxis.fr/
2•ray_v•9m ago•2 comments

Ask HN: What are your digital end-of-life plans?

3•trogdor•11m ago•1 comments

AI Investments Are 'Circular Bet' as ROI Disappoints, Bain Survey Shows

https://www.bloomberg.com/news/newsletters/2026-06-01/bain-survey-ai-delivers-less-cost-reduction...
2•cdrnsf•13m ago•0 comments

Waves with world's first wind power undersea data center

https://www.chinadaily.com.cn/a/202606/01/WS6a1cde48a310d6866eb4bb64.html
1•geox•13m ago•0 comments

America's Driving Mandate: Don't Call It "Freedom"

https://mateosfo.substack.com/p/americas-driving-mandate-dont-call
2•speckx•13m ago•0 comments

Sites and role specific plugins in Codex

https://openai.com/index/codex-for-every-role-tool-workflow/
4•joshuawright11•16m ago•0 comments

Testing Google's Gemini Spark AI agent: it's incredible, and creepy

https://www.theverge.com/ai-artificial-intelligence/941388/gemini-spark-ai-agent-trip-planning
2•tambourine_man•17m ago•0 comments

How We Index Images for RAG

https://www.kapa.ai/blog/how-we-index-images-for-rag
1•mooreds•17m ago•0 comments

Spanner Graph Algorithms: Google-grade intelligence for connected data

https://cloud.google.com/blog/products/databases/introducing-spanner-graph-algorithms/
1•berlianta•17m ago•0 comments

Extensions SDK: An experimental playground inside Ableton Live

https://www.ableton.com/en/blog/introducing-extensions-sdk/
1•ceravis•19m ago•0 comments

shellfolio – a portfolio template that looks like a running Linux system

https://github.com/fajremvp/shellfolio
1•Fajre•20m ago•0 comments

Building Software Is Learning

https://registerspill.thorstenball.com/p/building-software-is-learning
2•aratahikaru5•21m ago•0 comments

We benchmarked Google Cloud's $512 VM – the speed wasn't the interesting part

https://webbynode.com/articles/google-cloud-512-vm-not-10x-faster-than-50-vm
4•gsgreen•22m ago•1 comments

Show HN: Infinite canvas notes in the non-Euclidean Poincaré disk

https://uonr.github.io/poincake/
1•uonr•23m ago•0 comments

ChessForge; A from-scratch, Python dependency free chess engine

https://lichess.org/@/ChessForge_Bot
1•ibnshafi•23m ago•0 comments

Alignment as Geometry: The Token-Stream as Abbott's Flatland, from Within

https://systemic.engineering/the-shape-of-the-thing/
1•wolf4earth•23m ago•0 comments

Show HN: Distance Ruler

https://tools.myurll.in/distance-ruler
1•nookeshkarri7•23m ago•0 comments

Let the agents democratize open source

https://world.hey.com/dhh/let-the-agents-democratize-open-source-9fd630a9
1•yomismoaqui•24m ago•0 comments

SHA-256 computed by the TypeScript type checker

https://github.com/montyanderson/ts-sha256
1•montyanderson•24m ago•0 comments

A New Chapter for Codecov

https://about.codecov.io/blog/a-new-chapter-for-codecov/
2•nhatcher•24m ago•0 comments

Productized Services Are Back

https://www.hauser.io/productized-services-are-back/
2•bkfh•25m ago•0 comments