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

Inference startup Baseten raises $3B at $30B valuation

https://techcrunch.com/2026/12/03/inference-startup-baseten-raises-3b-at-30b-valuation/
1•doppp•15s ago•0 comments

Volumetric 3D based on two-frequency upconversion of Er3-doped Tellurite (2024)

https://opg.optica.org/ao/abstract.cfm?uri=ao-63-31-8054
1•peter_d_sherman•16s ago•0 comments

Hands-On Demo and Release Post (Hacker News, Forums, or Technical Communities)

https://exponential.earth/
1•Vincent_Opar•19s ago•0 comments

Freehand: The Bitter Lesson Comes to Agent Harnesses

https://arxiv.org/abs/2612.02442
1•ToJans•1m ago•0 comments

Elon Musk Gave Record $486M to Super PACs in US Midterm Elections

https://www.bloomberg.com/news/articles/2026-12-04/musk-gave-record-486-million-to-super-pacs-in-...
1•williamhartley•2m ago•0 comments

Looking for new people for fun tg.sara26kp

1•saramiller•6m ago•0 comments

The index, part 1: the table you write and the index you don't

https://infino.ai/blog/hidden-index-part-1/
1•ashishmishra262•8m ago•0 comments

Functional testing: what it checks, its types, and functional vs. non-functional

https://keploy.io/blog/community/functional-testing-an-in-depth-overview
1•Keployio•8m ago•0 comments

NSA reportedly asks OpenAI and Anthropic to pause cryptography research

https://vectorwire.ai/article/national-security-agency-reportedly-asks-openai-and-anthropic-to-pa...
2•netfortius•8m ago•0 comments

Picoballoon Flight Updates – 5 Flights, 140 Days Aloft, 11 Circumnavigation

https://reverea.dev/picoballoon-flight-updates-5-flights-140-days-aloft-11-circumnavigations/
1•rbanffy•10m ago•0 comments

Bending Spoons: AI coding spend is down 90%

https://twitter.com/fedesimio/status/2128535157896622356
1•curiousigor•10m ago•0 comments

RentnerPDF – a fast Rust-powered PDF engine for React

https://github.com/RentnerKev/RentnerPDF
1•RentnerKev•10m ago•0 comments

Practical cryptanalysis with MiniMax's latest Internal Model

https://www.minimax.io/blog/practical-cryptanalysis-with-minimaxs-latest-internal-model
2•throwa356262•15m ago•1 comments

Olive CSS: Utility class vanilla CSS framework, Lisp powered, Tailwind syntax

https://jointhefreeworld.org/blog/articles/development/olive-css-tailwinds-class-names-lisp-engine/
2•jjba23•16m ago•0 comments

Stop cleaning up vibe-coded apps

https://jurajb.dev/rebuild-vibe-coded-apps/
2•jurajbla•16m ago•0 comments

BetterTabMac – Windows-style Alt+Tab for macOS, with browser tabs

https://github.com/manuelkuhlin/bettertabmac
1•butterbrezn•17m ago•0 comments

Should Women Be Kings?

https://aeon.co/essays/why-dont-voters-elect-women-women-do-lead-and-lead-wella
2•ersinesen•19m ago•2 comments

The first program (digital 60)

https://curation.cs.manchester.ac.uk/digital60/www.digital60.org/birth/program/index.html
2•measurablefunc•20m ago•0 comments

PapiKost Simulator – A browser SIM about running an Indonesian boarding house

https://papikostsimulator.app/
1•Dragoing-Xing•20m ago•0 comments

People spot AI-gen. images from recent models 54% of the time, close to chance

https://epoch.ai/data-insights/ai-image-detection-accuracy
1•ersinesen•21m ago•0 comments

Shocks, geopolitics forcing EU to step up efforts to stop being digital colony

https://english.elpais.com/international/2026-12-03/shocks-and-geopolitics-are-forcing-europe-to-...
2•vrganj•21m ago•1 comments

Show HN: 7 years from "Yelp for sales" to a business recommendation engine

https://bizzit.ai/
1•ryanrudin•22m ago•0 comments

Vera: A Linux based replacment for iOS

https://github.com/v3ai/tessera
3•v3ai•24m ago•1 comments

Post‑Quantum Cryptography

https://pqc101.com/
1•will_wright•24m ago•0 comments

Save new files automatically to the cloud in Office apps for Windows

https://techcommunity.microsoft.com/blog/microsoft365insiderblog/save-new-files-automatically-to-...
1•ingve•28m ago•0 comments

Faxes and analogue phones: Europe's largest fund manager readies for cyber risks

https://www.reuters.com/legal/litigation/faxes-analogue-phones-europes-largest-fund-manager-readi...
1•gostsamo•28m ago•0 comments

Ask HN: Why are so many of the 'new' posts so quickly [dead] these days?

2•jMyles•30m ago•2 comments

Show HN: Turn your iCloud photos into videos and posters

https://smarchone.github.io/memories/
1•smarch27•36m ago•0 comments

Avoiding embarrassment is getting expensive

https://tornikeo.com/avoiding-embarrassment/
3•tornikeo•39m ago•0 comments

Nospeaker: make a MacBook trackpad talk through its haptic motor

https://a90.com/nospeaker
2•ramenat2am•42m ago•0 comments