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

How to Build an ML Framework in Rust, from Scratch, in a Weekend

https://www.erikkaum.com/blog/zml/index.html
1•tosh•54s ago•0 comments

NASA Says Farewell to Maven Mars Mission

https://www.nasa.gov/news-release/nasa-says-farewell-to-maven-mars-mission-hosts-media-call-today/
1•ironyman•1m ago•0 comments

Why open standards matter for AI infrastructure

https://openenvelope.org/writing/open-standards-ai-infrastructure/
1•ashconway•2m ago•0 comments

Compiling Zig to RISC-V

https://www.erikkaum.com/blog/advent-05/index.html
1•tosh•3m ago•0 comments

Counterfeit G.Skill and V-Color DDR5 modules hit Chinese marketplaces

https://www.tomshardware.com/pc-components/dram/counterfeit-g-skill-and-v-color-ddr5-modules-hit-...
1•speckx•4m ago•0 comments

The Public Should Own Half of the Big A.I. Companies

https://www.sanders.senate.gov/op-eds/the-public-should-own-half-of-the-big-a-i-companies/
2•droidjj•4m ago•0 comments

If AI Data Centers Are So Great, Why Are They Being Built in Secret?

https://www.thebrockovichreport.com/p/if-data-centers-are-so-great-why
2•thisislife2•6m ago•0 comments

Overwhelmed by AI Cost Management? The Tokenomics Foundation Can Help

https://techstrong.ai/articles/overwhelmed-by-ai-cost-management-the-tokenomics-foundation-can-help/
1•CrankyBear•7m ago•0 comments

An Audience of One

https://generativead.bearblog.dev
1•GlowingFern•7m ago•0 comments

Marcia Lucas, Oscar-Winning Editor Behind 'Star Wars,' Dies at 80

https://www.hollywoodreporter.com/movies/movie-news/marcia-lucas-dead-star-wars-george-lucas-1236...
2•bookofjoe•7m ago•1 comments

Google AI Edge Eloquent

https://ai.google.dev/edge/eloquent
1•xyzzy_plugh•10m ago•1 comments

Update on supply chain compromise of Red Hat cloud-services NPM packages

https://access.redhat.com/security/vulnerabilities/RHSB-2026-006
1•dralley•10m ago•0 comments

Vintage "Greetings From " postcards production design notes

https://bethmathews.substack.com/p/the-found-production-design-notes
1•thebent•11m ago•0 comments

Angular v22

https://blog.angular.dev/announcing-angular-v22-c52bb83a4664
2•Klaster_1•11m ago•0 comments

The War on Waymo

https://www.profgmedia.com/p/the-war-on-waymo
2•JumpCrisscross•11m ago•0 comments

Strengthening Europe's Tech Sovereignty

https://digital-strategy.ec.europa.eu/en/policies/eu-tech-sovereignty
2•robalni•13m ago•0 comments

Dismay as Trump officials to dismantle key ocean monitoring system

https://www.theguardian.com/environment/2026/jun/02/trump-administration-ocean-observatories-init...
5•ndsipa_pomu•16m ago•0 comments

Show HN: Capture, compress, and copy screenshots to clipboard

https://github.com/sauravtom/Screenshot2Clipboard
1•sauravt•16m ago•0 comments

Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structures

https://arxiv.org/abs/2505.24069
1•matt_d•19m ago•0 comments

NanoLog – A <17KB Shadow DOM widget for changelogs and roadmaps

https://www.nanolog.dev/
1•ahm-labs•21m ago•0 comments

Show HN: Rscrypto, pure-Rust crypto with industry leading public benches

https://github.com/loadingalias/rscrypto
2•LoadingALIAS•22m ago•1 comments

EWD 1041: By Way of Introduction (Science is hated)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD10xx/EWD1041.html
1•ethanwillis•22m ago•0 comments

Ideogram 4.0: A 9.3B open-weight image model

https://ideogram.ai/blog/ideogram-4.0/
1•victormustar•22m ago•0 comments

Rebuilding Postgres Metrics on Self-Hosted VictoriaMetrics with Zero Downtime

https://xata.io/blog/how-we-rebuilt-postgresql-branch-metrics-on-victoriametrics-per-cell
1•ClaudiuDasca•23m ago•0 comments

Google Expands AirDrop Support to More Android Phones

https://www.macrumors.com/2026/06/02/google-airdrop-support-more-android-phones/
1•tosh•23m ago•0 comments

A company didn't spend $500M on Claude in a month

https://stax.sh/articles/500-million-claude-bill
1•Topfi•25m ago•1 comments

$3.6M an Hour–and Other Ways to Measure Elon Musk's Fortune

https://www.wsj.com/tech/3-6-million-an-hourand-other-ways-to-measure-elon-musks-fortune-04e590a5
3•fortran77•25m ago•1 comments

Inteligencia

https://www.bing.com/search?qs=AS&pq=tra&sk=CSYN1&sc=14-3&pglt=299&q=traductor&cvid=d442becfe57f4...
1•BedoyaDC•25m ago•0 comments

Designing a terminal for listening instead of scanning

https://derekriemer.com/posts/2026/03/15/designing-a-terminal-for-an-audio-first-workflow/
1•blindprototypes•26m ago•0 comments

Resolving Feynman's Restaurant Problem

https://www.pnas.org/doi/full/10.1073/pnas.2509612123
1•FergusArgyll•27m ago•0 comments