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: Hyprmark – Markdown viewer for the Hyprland ecosystem

https://github.com/robinduckett/hyprmark
1•robinduckett•3m ago•0 comments

A resume builder for pets, for those who need to prove their animal isn't feral

https://petresume.co/
2•droopyKnees•15m ago•1 comments

The Khan Ted Institute

https://khanted.org/Home
2•capex•22m ago•0 comments

Ask HN: API Request for Feedback OK in Show HN?

2•casefile_dev•22m ago•2 comments

Opentargets-py – Python SDK for the Open Targets drug discovery database

https://pypi.org/project/opentargets-py/
2•goknurarican•26m ago•0 comments

Old Computers Sucked

https://oldcomputerssucked.com/
2•st_goliath•26m ago•0 comments

Is ChatGPT's web front end being intentionally degraded?

https://chatgpt.com
2•linzhangrun•30m ago•3 comments

Rise against the Machines: The Luddites [video]

https://www.youtube.com/watch?v=oeFTuD4Mnug
1•linsomniac•32m ago•0 comments

At the HumanX conference, everyone was talking about Claude

https://techcrunch.com/2026/04/12/at-the-humanx-conference-everyone-was-talking-about-claude/
1•Rafsark•32m ago•0 comments

The Cost of Cheap Clone Boards: Streaming Video on an STM32H750

https://msj.prose.sh/debug_streaming_weact_stm32h750
1•melastmohican•34m ago•1 comments

Robotaxi is now rolling out in Dallas and Houston

https://twitter.com/robotaxi/status/2045564609504116771
2•iknowstuff•36m ago•2 comments

AI chip startup Cerebras files for IPO

https://techcrunch.com/2026/04/18/ai-chip-startup-cerebras-files-for-ipo/
2•AnhTho_FR•36m ago•0 comments

Show HN: I built a CLI to fake Git commits

https://github.com/TDiblik/git-forge
2•TDiblik•41m ago•0 comments

No more bill shocks budget alerts comes to Cloudflare

https://projektisle.com/2026/04/no-more-bill-shocks-budget-alerts-comes-to-cloudflare/
1•todotask2•42m ago•0 comments

PostgreSQL Just Got Its Biggest Upgrade That Will Change DB Performance in 2026

https://medium.com/@CodingWithAbhi/postgresql-17-performance-upgrade-2026-f4222e71f577
1•breve•45m ago•0 comments

That 90s Chat Program You Don't Remember

https://www.youtube.com/watch?v=fMKiz7KTSz4
1•1o1o1o1o1•48m ago•0 comments

Deutsche Telekom has a bad DKIM key

https://infosec.exchange/@badkeys/116407565746342278
4•icco•48m ago•0 comments

Show HN: nvsx – A hook layer for NVSentinel GPU fault remediation

https://github.com/nav-beep/nvsx
1•essekar•50m ago•1 comments

MuJoCo – Advanced Physics Simulation

https://github.com/google-deepmind/mujoco
1•modinfo•51m ago•0 comments

Mailinator's Universal IDP

https://www.mailinator.com/introducing-mailinators-universal-idp/
3•zinxq•56m ago•0 comments

Hire a Freelancer Quantitative Developer

https://mathematicsconsultants.com/2026/04/19/hire-a-freelance-phd-quantitative-developer-or-rese...
1•GeniusConsult•58m ago•0 comments

The Social Battery and Symbolic Systems: Religion as Mediated Reciprocity

https://www.academia.edu/165768082/The_Social_Battery_and_Symbolic_Systems_Religion_as_Mediated_R...
1•W_G_III•1h ago•0 comments

Decision Density

https://jamesshelley.com/decision-density.html
1•zdw•1h ago•0 comments

Show HN: Slop Cop Claude Code / Cursor Plugin

https://github.com/yasyf/slop-cop
2•yasyfm•1h ago•0 comments

HTML5 Coupler Loop – Working

https://neocities.org/
4•rogmash•1h ago•7 comments

Sandboxes and Worktrees: My Secure Agentic AI Setup in 2026

https://mikemcquaid.com/sandboxed-agent-worktrees-my-coding-and-ai-setup-in-2026/
3•jdorfman•1h ago•0 comments

Five Days That Remade the Supreme Court

https://www.nytimes.com/2026/04/18/us/politics/supreme-court-shadow-docket.html
5•mitchbob•1h ago•1 comments

Changes in the system prompt between Claude Opus 4.6 and 4.7

https://simonwillison.net/2026/Apr/18/opus-system-prompt/
4•simonw•1h ago•1 comments

Show HN: Open Passkey – open-source passkey auth with free "backendless" host

https://github.com/locke-inc/open-passkey
2•connorpeters•1h ago•0 comments

OpenAI's April 2026 Policy Release: Industrial Policy for the Intelligence Age

https://www.landgate.com/news/energy-intelligence-for-open-ai-s-industrial-policy-blueprint
1•ninjahawk1•1h ago•0 comments