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: DRS-VPT. Localize a photo in a 3D point cloud without an initial pose

https://github.com/ori-drs/drs-vpt
1•seasponge•37s ago•0 comments

Fable and Mythos 5.2: The System Card

https://thezvi.substack.com/p/fable-and-mythos-52-the-system-card
1•paulpauper•48s ago•0 comments

Escaping the "Outside Criticism" Trap

https://www.astralcodexten.com/p/escaping-the-outside-criticism-trap
1•paulpauper•1m ago•0 comments

UI SDK: A library for agents to build the next generation of UIs

https://ui-sdk.dev/
1•bpierre•1m ago•0 comments

Voyager 1 is about to reach one Light-Day from Earth

https://www.smithsonianmag.com/smart-news/voyager-1-is-the-farthest-human-made-object-in-the-univ...
1•cybermango•2m ago•0 comments

Nvidia Shareholders Won't Miss Jensen Huang for Long

https://www.wsj.com/finance/stocks/nvidia-shareholders-wont-miss-jensen-huang-for-long-13429e31
2•JumpCrisscross•3m ago•0 comments

Coffeezilla: Investigating the President [video]

https://www.youtube.com/watch?v=W4PIkmjwGsQ
1•iamben•3m ago•0 comments

Vibes Don't Maintain

https://roll.bybacon.com/2026/10/14/vibes-dont-maintain.html
2•dxs•4m ago•0 comments

Distributed Ray Tracer

https://ray.hatchet.run
2•juliusgeo•4m ago•0 comments

The Triumph of Labour

https://publicdomainreview.org/collection/walter-crane-cartoons-for-the-cause/
1•jruohonen•4m ago•0 comments

Dwarf planet candidate appears which takes roughly 280 years to orbit our sun

https://www.smithsonianmag.com/smart-news/astronomers-found-a-mysterious-object-orbiting-far-beyo...
2•cybermango•4m ago•0 comments

Capabilities to Compliance

https://gluufederation.medium.com/connecting-organizational-policies-to-technical-evidence-unders...
2•idm_guru•6m ago•0 comments

Mysterious Combination Lock Sank in a 1583 Shipwreck opened after 400 years

https://www.smithsonianmag.com/smart-news/this-mysterious-combination-lock-sank-in-a-1583-shipwre...
1•cybermango•7m ago•0 comments

The Nvidia Machine Was Already Facing a Tougher Future

https://www.nextplatform.com/ai/2026/11/12/the-nvidia-machine-is-self-sustaining-and-was-already-...
1•jonbaer•7m ago•0 comments

HubSpot's co-founder returns as CEO after layoffs, 49% stock drop

https://www.msn.com/en-us/news/other/hubspot-rises-as-co-founder-halligan-returns-as-ceo/ar-AA2hhYKN
2•ilamont•8m ago•0 comments

Ukraine says Starshield disrupted as US envoys reach Moscow for Putin talks

https://www.cnbc.com/2026/11/12/starlink-starshield-ukraine-restrictions-spacex.html
2•MilnerRoute•8m ago•0 comments

Tell HN: Major Microsoft Outlook/Exchange Online/Teams Outage in the Americas

4•wmchen•9m ago•1 comments

Revisiting Leander vs. Sweden and Big Brother Watch

https://berthub.eu/articles/posts/revisiting-leander-and-big-brother/
1•jruohonen•10m ago•0 comments

The Real-Estate Billionaire Spending a Fortune to Slow Down Aging

https://www.wsj.com/health/wellness/meet-the-real-estate-billionaire-spending-a-fortune-to-slow-d...
1•doener•10m ago•0 comments

Show HN: Semi-Tycoon

https://semitycoon.borgorg.org/demo/
1•vmazi•11m ago•0 comments

Nemotron-3.5-SuperVL-120B-1.4CQ: A 22GB Variant for Local Inference

https://huggingface.co/Cactus-Compute/nemotron-3.5-120b-cq
1•HenryNdubuaku•12m ago•0 comments

Show HN: Headwig- worktree alternative to develop and run parallel agent changes

https://harsh-kr-jha.github.io/headwig/
1•harshkrjha•13m ago•1 comments

Apify Security Incident

https://status.apify.com/incidents/sxd1dj5j6749
3•choult•14m ago•0 comments

Live tracker: Kevin, the marine research bouy that got away

https://hulab.utmsi.utexas.edu/temp/Kevin/
1•reaperducer•14m ago•0 comments

Ask HN: What do you all use to share context with team mates?

1•Satoshri•15m ago•0 comments

CEO Key-Person Exposure Index - how much of a stock walks out with the CEO?

https://github.com/Flubio/KPEI
1•flubio•15m ago•0 comments

From AI rabbit holes to a warm den: co-building the Inference Cooperative

https://nathanschneider.info/2026/11/from-ai-rabbit-holes-to-a-warm-den-co-building-the-inference...
1•ntnsndr•16m ago•0 comments

Gemini 4 Hydrogen and Orchestrator

https://antigravity.google/blog/gemini-4-hydrogen-in-google-antigravity/
5•jonbaer•18m ago•1 comments

A Great Lakes Business

https://native.works/writing/a-great-lakes-business
1•herbertl•18m ago•0 comments

Fireworks AI cyberattack let hackers access Notion customers' chat transcripts

https://techcrunch.com/2026/11/12/cyberattack-on-fireworks-ai-allowed-hackers-to-access-notion-cu...
2•rndsignals•19m ago•1 comments