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

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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: Pause – an AI that assigns YOU tasks

https://www.pause.build/
1•chaidhat•1m ago•0 comments

Apple iPhone texting changes: they fixed everything and changed nothing

https://webmatrices.com/post/apple-iphone-texting-changes-they-fixed-everything-and-changed-nothing
1•bishwasbh•2m ago•0 comments

Show HN: pg_roast – A Postgres extension that harshly judges your database

https://github.com/samirketema/pg_roast
1•samirketema•4m ago•0 comments

Homeland Security is making "smart glasses" to collect intelligence on Americans

https://www.kenklippenstein.com/p/exclusive-ice-glasses
1•c420•7m ago•0 comments

Red Queen Hypothesis

https://en.wikipedia.org/wiki/Red_Queen_hypothesis
2•Hooke•7m ago•0 comments

FanDuel wants to carve a sports niche in the prediction market business

https://www.cnn.com/2026/04/19/tech/fanduel-prediction-markets-app
1•1659447091•9m ago•0 comments

"You're mad Lad figured it out " – OpenClaw creator [video]

https://www.youtube.com/watch?v=7rzYDM6vMtI
1•0xAntonioo•11m ago•0 comments

String Seed of Thought: Prompting for Distribution-Faithful, Diverse Generation

https://pub.sakana.ai/ssot/
1•hardmaru•12m ago•0 comments

Show HN: Palmier – bridge your AI agents and your phone

https://github.com/caihongxu/palmier
1•caihongxu•13m ago•0 comments

pnpm v11 is almost here

https://twitter.com/pnpmjs/status/2045901598006690244
1•bpierre•15m ago•0 comments

Futuristic analyser tool? – what is this – omg

https://rogmash.neocities.org/3drein
1•rogmash•17m ago•0 comments

KMDS, now with natural language ingestion and search

https://github.com/rajivsam/kmds
1•rsva•24m ago•1 comments

Amazon behind on jobs promised for funding to build Virginia headquarters

https://www.washingtonpost.com/dc-md-va/2026/04/20/amazon-h2q-virginia-headquarters/
1•reaperducer•26m ago•0 comments

Digital Ecosystems: Interactive Multi-Agent Neural Cellular Automata

https://pub.sakana.ai/digital-ecosystem/
2•hardmaru•27m ago•0 comments

A Pragmatic Approach to Thorny People Problems

https://witnesstodestruction.blogspot.com/p/a-pragmatic-approach-to-thorny-people.html
2•basilikum•29m ago•0 comments

San Francisco Solved Metro Vandalism with One Neat Trick

https://www.theatlantic.com/ideas/2026/04/fare-gate-society-bart/686868/
2•mmcclure•32m ago•0 comments

KV Cache Compression 900000x Beyond TurboQuant and Per-Vector Shannon Limit

https://arxiv.org/abs/2604.15356
9•EGreg•33m ago•1 comments

Technological Phylogenetics: Modeling Tech Evolution Like Git (Paper)

https://zenodo.org/records/19673425
1•xsytrance•38m ago•1 comments

What Does a VPN Protect You From

https://anonymous-proxies.net/posts/what-does-a-vpn-protect-you-from/
2•sabrinacarpen•38m ago•0 comments

Show HN: Real-time visualization of Claude Code agent orchestration

https://github.com/patoles/agent-flow
1•daco•39m ago•0 comments

Show HN: NeuG – High-performance Embedded graph DB, one line to serve

2•robeenly•41m ago•0 comments

Front End Is Edge Computing

https://edge.jmaleonard.com/01-frontend-is-edge-computing.html
1•jmaleonard•41m ago•0 comments

Show HN: Weekly Log, Old-school journaling social media

1•bobbies-treats•42m ago•0 comments

Bad Matrix Reloaded

https://flandrew.srht.site/listful/bad-matrix-reloaded.html
1•adityaathalye•44m ago•0 comments

How the Heck Does Shazam Work?

https://perthirtysix.com/how-the-heck-does-shazam-work
6•thunderbong•49m ago•1 comments

Mruby 4.0.0 Released

https://mruby.org/releases/2026/04/20/mruby-4.0.0-released.html
2•rguiscard•56m ago•0 comments

FreeBSD CVE-2026-4747 Log Suggests Mythos Is a Marketing Trick

https://www.flyingpenguin.com/freebsd-cve-2026-4747-log-suggests-mythos-is-a-marketing-trick/
3•jgalt212•58m ago•0 comments

Prediction markets are breaking the news and becoming their own beat

https://www.niemanlab.org/2026/04/prediction-markets-are-breaking-the-news-and-becoming-their-own...
2•gnabgib•58m ago•0 comments

Computational Models of Interoception and Body Regulation(2021)

https://www.sciencedirect.com/science/article/abs/pii/S0166223620302204
1•rolph•1h ago•0 comments

Qwen3.6-35B-A3B speculative decoding is net-negative on RTX 3090

https://github.com/thc1006/qwen3.6-speculative-decoding-rtx3090
5•thc1006•1h ago•1 comments