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: Jevlang. delegate every if/while to Jev

https://github.com/RoyWiggins/jevlang
1•roywiggins•1m ago•0 comments

Cognition Crosses $1B in Annualized Revenue Run Rate

https://cognition.com/blog/1b-run-rate
1•doppp•3m ago•0 comments

Distributed Quantum Compiler (DQC / XDQC) by MemQ open-source now

https://www.hpcwire.com/off-the-wire/memq-releases-open-sourced-distributed-quantum-compiler/
1•noobplus•3m ago•0 comments

Great News from Saturn's Moon Enceladus in the Search for Life in Space

https://www.fu-berlin.de/en/presse/informationen/fup/2026/fup_26_116-enceladus-cassini-mikroben-s...
1•geox•3m ago•0 comments

Make an animated pelican on unicycle jugging fish while explaining bash command

https://twitter.com/goodside/status/2103149526244618682
1•forgingahead•5m ago•0 comments

Lecture: Blowup for the Euler Equations with Smooth Forcing – Tristan Buckmaster [video]

https://www.youtube.com/watch?v=tn45ZOp3lXM
1•yurimo•8m ago•1 comments

Ask HN: Is multi-model redundancy now a compliance requirement for small teams?

1•weiqi554177834•15m ago•0 comments

Show HN: A dashboard for tracking usage limits across Claude, Codex, and Cursor

https://www.usagebuddy.com/
2•bhavyshekhaliya•16m ago•1 comments

Walgit: A Git server that is one binary in front of an object store

https://github.com/rgodha24/walgithub
1•handfuloflight•17m ago•0 comments

Show HN: CoordMap – free browser tools for coordinates, elevation, and distance

https://www.coordmap.com/
1•luoluoecho•20m ago•0 comments

Trading a Cloud Identity for Your Own: Workload Attestation on Managed Compute

https://netflixtechblog.com/trading-a-cloud-identity-for-your-own-workload-attestation-on-managed...
1•mfrw•27m ago•0 comments

Were 1970s Korean Orphanages a Great Place to Raise Kids?

https://www.richardhanania.com/p/were-1970s-korean-orphanages-a-great
2•barry-cotter•35m ago•0 comments

A thesis isn't enough for a PhD

https://lemire.me/blog/2026/09/26/a-thesis-isnt-enough-for-a-phd/
2•smilelamp•36m ago•0 comments

Revelations of dozens more platforms hit by OpenAI agents

https://www.abc.net.au/news/2026-09-26/openai-review-rogue-agents-australia-medicare-hack/107199074
3•soundworlds•38m ago•1 comments

The Universe Rendered in ASCII

https://gcdatlas.vercel.app/
1•chaosmachine•40m ago•1 comments

We're gonna need a lot more mathematicians

https://terrytao.wordpress.com/2026/09/24/were-gonna-need-a-lot-more-mathematicians/
1•srcreigh•40m ago•0 comments

Show HN: Safe-fetch – a Python URL fetcher with per-redirect address checks

https://github.com/Rehanfaisal/ssrf-safe-fetch
1•rehandevv•45m ago•0 comments

Eremina Desertorum

https://en.wikipedia.org/wiki/Eremina_desertorum
1•thunderbong•56m ago•0 comments

Lix: Version control system for files and tables

https://lix.dev
2•handfuloflight•59m ago•1 comments

Guitar amp and effects pedal built on the Waveshare ESP32-S3-Touch-AMOLED-2.06

https://github.com/dashersw/coyopedal
1•arbayi•1h ago•0 comments

ShinyHunters Renewed Mass Exploitation Campaign Targeting Oracle PeopleSoft

https://cloud.google.com/blog/topics/threat-intelligence/shinyhunters-renewed-mass-exploitation-c...
3•882542F3884314B•1h ago•0 comments

Faster Transport on Cloud Infra

https://quasiben.github.io/blog/efa-aws/
3•quasiben•1h ago•0 comments

Yamtam.nyc – yet another mass-transit all-in-one map

https://yamtam.nyc
2•tolidano•1h ago•3 comments

Deep Scattering Layer

https://en.wikipedia.org/wiki/Deep_scattering_layer
1•gradus_ad•1h ago•0 comments

Velum: CosyVoice in a Single Binary for Deployment

https://github.com/hardenedlinux/velum
1•nalaginrut•1h ago•0 comments

The Major Social Media Platforms Are All Rejecting Paid Ads for Gibney's 'Musk'

https://www.hollywoodreporter.com/business/digital/elon-musk-documentary-trailer-rejected-tiktok-...
7•lapcat•1h ago•1 comments

NetBSD: Playing with Disklabels

https://movq.de/blog/postings/2026-09-25/0/POSTING-en.html
1•jaypatelani•1h ago•0 comments

WSL as a Blind Spot for Enterprise Endpoint DLP Controls

https://zenodo.org/records/22961986
1•nsainaveen•1h ago•1 comments

Laya, Jev, and the work of keeping answers close to the page

https://openbrowser-landing.pages.dev/context-atlas-blog/
1•billy-enrizky-1•1h ago•0 comments

A security website that is a filesystem

https://l1ackers.com
2•m4y0u•1h ago•2 comments