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

Comments

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

Zuck Plans Deep Cuts for Metaverse Efforts

https://www.bloomberg.com/news/articles/2025-12-04/meta-s-zuckerberg-plans-deep-cuts-for-metavers...
4•nycdatasci•6m ago•1 comments

Show HN: Fleet Fund – Invest in Machines That Earn

https://fleet-fund.vercel.app
1•Justbeingjustin•9m ago•0 comments

A Headless Mystery

https://www.science.org/content/article/headless-bodies-hint-why-europe-s-first-farmers-vanished
1•senderista•9m ago•0 comments

A German court may have just shattered one of the Biden era's biggest lies

https://thehill.com/opinion/international/5625986-a-german-court-just-shattered-one-of-the-biden-...
3•salkahfi•10m ago•1 comments

New York Times Sues Pentagon over First Amendment Rights

https://www.nytimes.com/2025/12/04/business/media/new-york-times-pentagon-lawsuit.html
2•calcifer•10m ago•0 comments

Technical Escape Velocity

https://benjamincongdon.me/blog/2025/12/03/Technical-Escape-Velocity/
1•speckx•11m ago•0 comments

Operando interlayer expansion of curved graphene for dense supercapacitors

https://www.nature.com/articles/s41467-025-63485-0
2•westurner•13m ago•0 comments

Show HN: I analyzed 8k near-death experiences with AI and made them listenable

https://www.noeticmap.com/
1•mikias•14m ago•1 comments

Booting Linux in QEMU and Writing PID 1 in Go to Illustrate Kernel as Program

https://serversfor.dev/linux-inside-out/the-linux-kernel-is-just-a-program/
1•birdculture•14m ago•0 comments

The Argument for Letting AI Burn It All Down

https://www.wired.com/story/ai-normal-after-ai-plateaus/
2•bookofjoe•15m ago•1 comments

Open-Source Demos for Understanding Multi-Agent Collaboration

https://openagents.org/docs/tutorials/tutorials
1•snasan•15m ago•0 comments

Some news: We're selling Radish next year

https://supernuclear.substack.com/p/some-news-were-selling-radish-next
1•surprisetalk•18m ago•0 comments

RFdiffusion3 Now Available

https://www.ipd.uw.edu/2025/12/rfdiffusion3-now-available/
1•surprisetalk•18m ago•0 comments

Programming Like a Fighter Pilot [video]

https://www.youtube.com/watch?v=Gv4sDL9Ljww
1•surprisetalk•18m ago•0 comments

Scaling Career and Family: Systems Thinking, Public School, Home Enrichment

https://caseyhandmer.wordpress.com/2025/12/03/scaling-career-and-family-systems-thinking-public-s...
1•surprisetalk•19m ago•0 comments

Finding Papers Before the Web

https://blog.computationalcomplexity.org/2025/12/finding-papers-before-web.html
1•speckx•19m ago•0 comments

I turned my Airbnb listing AI analyzer into a public leaderboard

https://shortrentals.ai/listings/directory
1•samirt•21m ago•1 comments

Redis's Homegrown JSON Parser

https://github.com/redis/redis/pull/13959
2•tuananh•22m ago•1 comments

Rearrangement in a Catalyst Improves Selectivity in Dehydrogenation of Propane

https://pubs.acs.org/doi/10.1021/jacs.5c13571
1•PaulHoule•25m ago•0 comments

Type-Safe Python for TypeScript Developers

https://spin.atomicobject.com/type-safe-python/
1•philk10•26m ago•0 comments

Show HN: I built a 3D probability map for a White Christmas (React and Mapbox)

https://whitexmas.app
1•stlattack•27m ago•1 comments

Pat Gelsinger's EUV lithography gig gets $150M wink from Uncle Sam

https://www.theregister.com/2025/12/03/us_150m_xlight/
1•alecco•27m ago•0 comments

Meta's Child Sex-Trafficking Problem

https://www.afterbabel.com/p/metas-child-sex-trafficking-problem
2•Desafinado•27m ago•1 comments

Sam Altman Has Explored Deal to Build Competitor to Elon Musk's SpaceX

https://www.wsj.com/tech/ai/sam-altman-has-explored-deal-to-build-competitor-to-elon-musks-spacex...
1•perihelions•27m ago•1 comments

Ask HN: Glasses with lights that flash whenever they detect cigarette smoke?

1•amichail•28m ago•0 comments

Easy Trap

https://stackdiver.com/posts/easy-trap/
2•stackdiver•31m ago•1 comments

Show HN: TypMo – Markdown for Wireframing

https://typmo.com/
1•aditgupta•32m ago•0 comments

From quest‑hunting to cartography: a guide to contributing to OpenStreetMap

https://alternativeto.net/news/2025/12/from-quest-hunting-to-cartographer-craft-a-guide-to-contri...
4•elliot_a•32m ago•1 comments

SVG Filters – Clickjacking 2.0

https://lyra.horse/blog/2025/12/svg-clickjacking/
2•todsacerdoti•35m ago•0 comments

Show HN: UI front end to forecast with foundation time-series models

https://faim.it.com/
1•ChernovAndrei•35m ago•0 comments