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

Can AI Do Intelligence Analysis? Apparently Not

https://blog.predictivedefense.io/p/can-ai-do-intelligence-analysis-apparently
1•beatrobot•7m ago•0 comments

One Equation. Thirty Binaries. Zero Agents

https://github.com/silentnoisehun/Bio-Binaries
1•silentnoisehun•7m ago•0 comments

Database-Centric Architecture

https://en.wikipedia.org/wiki/Database-centric_architecture
1•teleforce•11m ago•0 comments

Trump's Takeover of the American Regulatory Machine

https://www.wsj.com/politics/policy/trump-takeover-regulators-130b57a3
1•KnuthIsGod•13m ago•0 comments

Americans Are Leaving the U.S. in Record Numbers

https://www.wsj.com/podcasts/the-journal/americans-are-leaving-the-us-in-record-numbers/f2ae7db5-...
3•KnuthIsGod•14m ago•1 comments

Ask HN: How do people secure their Linux computer?

1•foo12bar•15m ago•1 comments

Community usage metrics and cost analytics for Claude Code subscriptions

https://meter.vsits.co/
1•sea-gold•16m ago•1 comments

Optimized Point Addition Circuits for Elliptic Curve Discrete Logarithms [pdf]

https://arxiv.org/abs/2606.02235
2•aburan28•17m ago•0 comments

Show HN: 3GPP Spec Manager – A GUI app to track and download 3GPP specifications

https://github.com/chsung/3gpp-spec-manager
2•tughvn•22m ago•1 comments

Implicit.js, a way to program 3D models with mathematical functions

https://www.implicit.sh/
1•softservo•23m ago•1 comments

Does Llms.txt Replace Sitemap.xml

https://docsalot.dev/blog/llms-txt-vs-sitemap-xml
1•fazkan•25m ago•0 comments

Platypus – create native Mac applications from command line scripts

https://github.com/sveinbjornt/Platypus
3•gregsadetsky•25m ago•1 comments

Nvidia to spend $150B a year in Taiwan, 'epicentre' of AI revolution

https://www.reuters.com/world/asia-pacific/nvidia-ceo-says-taiwan-is-epicentre-ai-revolution-2026...
1•JumpCrisscross•25m ago•0 comments

C64 OS – Ready for Internet Action – C64 OS steps it up [video]

https://www.youtube.com/watch?v=9TmJMBHrg7A
1•amichail•25m ago•0 comments

The Effort to Build Ukraine's Ground Robot Arsenal

https://www.twz.com/news-features/inside-the-effort-to-build-ukraines-ground-robot-arsenal
1•JumpCrisscross•29m ago•0 comments

Microsoft's Project Solara is an Android OS designed for agents instead of apps

https://arstechnica.com/gadgets/2026/06/microsofts-project-solara-is-an-android-os-designed-for-a...
1•thunderbong•32m ago•0 comments

A whale of a deal: Paramount's takeover of Warner Bros

https://www.reuters.com/graphics/WARNER-BROS-DIS-MA/PARAMOUNT-SKYDAN/byprngedkpe/
3•giuliomagnifico•32m ago•0 comments

Slow Tools

https://www.quarter--mile.com/Slow-Tools
3•ogundipeore•34m ago•0 comments

Global EV Outlook 2026: Growing sales amid an energy crisis [pdf]

https://iea.blob.core.windows.net/assets/3718cf37-fac6-4ee2-aeb0-1546e6222cfc/GlobalEVOutlook2026...
1•toomuchtodo•36m ago•1 comments

Ransomecare.io a tabletop journey where everything sucks

https://ransomecare.io/value
2•splintersio•37m ago•1 comments

Vim Classic debuts with its first release as a Vim fork without AI assistance

https://www.neowin.net/news/vim-classic-debuts-with-its-first-release-as-a-vim-fork-without-ai-as...
4•bundie•42m ago•0 comments

A rift is splitting Africa apart forming Earth's sixth ocean

https://www.thebrighterside.news/post/a-massive-rift-is-splitting-africa-apart-forming-earths-six...
3•sizzle•43m ago•0 comments

How to Just Do a Thing

https://www.raptitude.com/2026/05/how-to-just-do-a-thing/
2•_vaporwave_•49m ago•0 comments

America's Data Center Build-Out Is Falling Way Behind Schedule

https://www.wsj.com/tech/ai/americas-data-center-build-out-is-falling-way-behind-schedule-e408a9a8
15•1vuio0pswjnm7•54m ago•3 comments

C++: Let's get comfortable with concepts

https://platis.solutions/blog/2026/05/02/lets-get-comfortable-with-concepts/
1•HeliumHydride•55m ago•0 comments

Type-Error Ablation and AI Coding Agents

https://arxiv.org/abs/2606.01522
1•matt_d•56m ago•0 comments

Microsoft Scout: Your always-on personal agent

https://www.microsoft.com/en-us/microsoft-365/blog/2026/06/02/introducing-microsoft-scout-your-al...
2•Garbage•56m ago•0 comments

The American civilians that stayed behind in Saigon

https://connla.substack.com/p/whats-another-year
3•jfil•58m ago•0 comments

Wikiracer–an chess.com style Wikipedia racing website with analysis

https://wikiracer.com
2•smolyar•59m ago•0 comments

The Unreasonable Redundancy of Nature's Protein Folds

https://research.ligo.bio/posts/unreasonable-redundancy-of-natural-protein-folds/
9•ray__•59m ago•0 comments