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•6mo ago

Comments

trbndev•6mo 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•6mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•6mo 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•6mo 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•6mo 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•6mo 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•6mo 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

I made a database of micro SaaS ideas from billion dollar companies

https://www.provenideas.net/
1•mattmerrick•2m ago•0 comments

Makers have a compulsion to explore the realm of the possible

https://philshapirochatgptexplorations.blogspot.com/2025/11/makers-have-compulsion-to-explore.html
1•pshapiro99•5m ago•0 comments

Show HN: Free Tool to Optimize Images for Fast Loading

https://simple.photo/tools/optimize
1•vladoh•7m ago•1 comments

Ways of Seeing (1972), John Berger – Episode 1 – 4 [video]

https://www.youtube.com/watch?v=8wxRxSfhw6I
1•hn_acker•9m ago•0 comments

Invite your heroes into your AI conversations

https://constantin.glez.de/posts/2025-11-03-invite-your-heroes-into-your-ai-conversations/
1•herbertl•10m ago•0 comments

Vsora Jotunn-8 5nm European inference chip

https://vsora.com/products/jotunn-8/
2•rdg42•10m ago•0 comments

The Performance Inequality Gap, 2026

https://infrequently.org/2025/11/performance-inequality-gap-2026/
1•Kerrick•12m ago•0 comments

Dare (Digital Autonomy with RISC-V in Europe)

https://dare-riscv.eu/
1•doener•15m ago•0 comments

Press Release: Bringing Collabora Online to the Desktop

https://www.collaboraonline.com/blog/press-release-bringing-collabora-online-to-the-desktop/
2•marcodiego•16m ago•0 comments

The Math of Why You Can't Focus at Work

https://justoffbyone.com/posts/math-of-why-you-cant-focus-at-work/
2•walterbell•23m ago•0 comments

Visualizing spatial and temporal locality on an M1 chip

https://kelvinou.com/posts/memory-mountain/
1•kelvinou•29m ago•0 comments

Mathematics is hard for mathematicians to understand too

https://www.science.org/doi/10.1126/science.aec9014
3•mmaaz•34m ago•0 comments

Where Have the International Math Olympiad Gold Medallists Ended Up?

https://xquant.substack.com/p/where-have-the-international-math
1•paulpauper•39m ago•0 comments

No more PJM data centers unless they can be reliably served: market monitor

https://www.utilitydive.com/news/pjm-data-center-interconnection-market-monitor-ferc-complaint/80...
1•toomuchtodo•40m ago•0 comments

Vibecoded x86_64 Forth "OS"

https://github.com/isene/SimplicityOS
3•romforth•42m ago•1 comments

The dark side of Japanese convenience stores

https://www.ft.com/content/786642f4-32d4-4f92-a5d0-8a363c2f7212
2•philip1209•43m ago•0 comments

Show HN: Whole-home VPN router with hardware kill switch (OpenWrt and WireGuard)

https://github.com/yoloshii/privacy-first-network
12•yoloshii•50m ago•4 comments

250MWh 'Sand Battery' to start construction in Finland

https://www.energy-storage.news/250mwh-sand-battery-to-start-construction-in-finland-for-both-hea...
48•doener•52m ago•12 comments

Sally Rooney books may be withdrawn from UK sale over Palestine Action ban

https://www.bbc.com/news/articles/cm20ldz0g9ro
3•clanky•58m ago•0 comments

Mission home invasion highlights danger of crypto-related violence

https://sfstandard.com/2025/11/25/mission-home-invasion-highlights-danger-crypto-related-violence/
2•JumpCrisscross•59m ago•0 comments

A Programmer-Friendly I/O Abstraction Over io_uring and kqueue

https://tigerbeetle.com/blog/2022-11-23-a-friendly-abstraction-over-iouring-and-kqueue/
6•enz•59m ago•0 comments

AI Tool to Discover Expert Scientists

https://www.scientistfinder.ai/
1•Tardigrade10•1h ago•0 comments

Lung Cancer Deaths Prevented and Life-Years Gained from Lung Cancer Screening

https://jamanetwork.com/journals/jama/fullarticle/2841694
1•JumpCrisscross•1h ago•1 comments

Evidently 0.7.17: open-source LLM tracing and dataset management

https://www.evidentlyai.com/blog/open-source-llm-tracing
1•ashvardanian•1h ago•0 comments

Tesla Model Y Is the Most Defective Car This Year, Germany Says

https://www.jalopnik.com/2035447/tesla-model-y-most-defective-car-in-germany/
13•doener•1h ago•1 comments

Germany's Plan for War with Russia

https://www.wsj.com/world/europe/germany-russia-war-nato-secret-plan-8ce43a8d
7•perihelions•1h ago•2 comments

External looping pattern for Claude Code – apply one task to N inputs

https://github.com/kanatti/claude-code-external-loop
2•bkanattil•1h ago•0 comments

Show HN: I built a free astro and tailwind static site for GitHub pages

https://tariqdude.github.io/Github-Pages-Project-v1/
2•chiengineer•1h ago•0 comments

A macOS Window Manager Inspired by FancyZones on Windows

https://bentoboxapp.com/
1•alexktz•1h ago•0 comments

Kobo Articles Proxy – use Kobo Instapaper integration, without using Instapaper

https://github.com/marklar423/kobo-pocket-proxy
1•Curiositry•1h ago•0 comments