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

The unflattering secrets revealed so far in Elon Musk's latest legal feud

https://www.washingtonpost.com/technology/2026/04/23/musk-altman-lawsuit-trial-openai/
1•1vuio0pswjnm7•2m ago•0 comments

Complexity in a Systems Engineering Context(2019) [pdf]

https://www.sei.cmu.edu/documents/4245/2019_017_001_552583.pdf
1•o4c•2m ago•0 comments

The Downgrading of the American Tech Worker

https://nymag.com/intelligencer/article/after-layoffs-meta-is-training-ai-on-its-own-workers.html
1•sizzle•3m ago•0 comments

Perplexity Builds Accuracy into Frontier AI

https://www.perplexity.ai/hub/blog/how-perplexity-builds-accuracy-into-frontier-ai
2•gmays•6m ago•0 comments

PTP/1.0 – Prompt Transport Protocol

https://gpt.gekko.de/ptp-prompt-transport-protocol-rfc/
1•ekadagami•7m ago•0 comments

pnpm v11 Released

https://pnpm.io/blog/releases/11.0
1•sebws•7m ago•0 comments

SanDisk open-sources accelerated SSD pre-conditioning algorithm

https://www.blocksandfiles.com/flash/2026/04/28/sandisk-open-sources-accelerated-ssd-pre-conditio...
1•tanelpoder•8m ago•0 comments

What If Your OS Could Think?

https://github.com/AFKmoney/nexusOS
1•canaddons•8m ago•0 comments

Swift on Nvidia Jetson

https://mihaichiorean.com/blog/hard-part-of-swift-on-jetson/
1•mihaichiorean•14m ago•0 comments

Musk Testifies OpenAI Was Created as Nonprofit to Counter Google

https://www.cnbc.com/2026/04/28/openai-trial-elon-musk-sam-altman-live-updates.html
3•m463•20m ago•0 comments

Voxels in R3forth

https://www.reddit.com/r/Forth/s/wf7M7hV779
1•rickcarlino•21m ago•0 comments

State Dept. Finalizing Plan to Put Trump Picture on U.S. Passports

https://www.thebulwark.com/p/exclusive-state-dept-finalizing-plan
3•mikhael•22m ago•0 comments

Warp is now open-source

https://twitter.com/zachlloydtweets/status/2049154460039979268
1•dsr12•22m ago•1 comments

Personal Loan EMI Calculator – Check EMI Online – SMFG India Credit

https://www.smfgindiacredit.com/personal-loan-emi-calculator.aspx
1•saumyaraut11•32m ago•0 comments

AI Sandboxes with Memory

1•ajaysheoran2323•33m ago•0 comments

Google co-founder Sergey Brin says he fled socialism, rips billionaire tax

https://nypost.com/2026/04/27/us-news/google-co-founder-sergey-brin-says-he-fled-socialism-in-sta...
5•1vuio0pswjnm7•34m ago•3 comments

Omeka S: a platform for digital cultural heritage collections and resources

https://omeka.org/s/
1•the-mitr•34m ago•0 comments

Artificial Inteligence that works (maybe)

https://github.com/thepoorsatitagain/Artificial-Inteligence-that-works-maybe-./blob/main/README.md
1•thepoors•36m ago•0 comments

icloud-backup: The iCloud backup tool I always wanted

https://github.com/evantahler/icloud-backup
3•evantahler•37m ago•1 comments

Affinity gatekeeps MCP server; only available for Claude

https://www.affinity.studio/help/ai-connector-setup/
2•nik5•41m ago•2 comments

ChatGPT/Gemini can now draw on your screen to help you navigate complex software

https://sketchvlm.github.io/
6•septisum•43m ago•3 comments

Show HN: Plonk.world – Daily Geography Game

https://plonk.world/
1•plonk-er•46m ago•2 comments

Website is your first agent

https://nedkarlovich.com/writing/your-website-is-your-first-agent
1•birdwhistler•49m ago•0 comments

Ask HN: Google Account Is Being Deleted

2•14•51m ago•0 comments

Built a small side project to solve a tiny daily pain point

1•bbsclub•52m ago•0 comments

GitHub uses eBPF to improve deployment safety

https://github.blog/engineering/infrastructure/how-github-uses-ebpf-to-improve-deployment-safety/
1•geoffbp•52m ago•0 comments

Why AI Startup Offices in NYC Are Flashy but Mostly Empty

https://www.wsj.com/real-estate/commercial/why-ai-startup-offices-in-nyc-are-flashy-but-mostly-em...
1•petethomas•54m ago•0 comments

Full List of Cars with Soy-Based Wiring (2026 Update)

https://www.box-kat.com/blogs/box-kat-blog/full-list-of-cars-with-soy-based-wiring-2025-update
2•thunderbong•57m ago•0 comments

The versioned filesystem for AI agents

https://coregit.dev
2•AlenzhanJ•59m ago•1 comments

Show HN: Docktor – I put live window previews and widgets on the macOS 26 Dock

https://petercsauer.github.io/docktor-releases/
1•petercsauer•59m ago•0 comments