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

I'm Writing Go Again

https://twitter.com/mitchellh/status/2046319366489407803
1•tosh•14s ago•0 comments

Jury Awards $5K Verdict in Second Uber Sexual Assault Bellwether Trial

https://www.law.com/2026/04/20/jury-awards-5k-verdict-in-second-uber-sexual-assault-bellwether-tr...
1•1vuio0pswjnm7•29s ago•0 comments

Build an arcade game under 50kb, win 300 USD

https://hack.platan.us/26/arcade/ar
1•rafafdz•44s ago•1 comments

Japan in Birth-Rate Panic: You Get Paid 20k Yen to Use Tinder

https://anitsu.com/en/news/japan-in-panic-you-get-paid-20000-yen-to-use-tinder/
1•randycupertino•1m ago•1 comments

Pete Hegseth scraps mandatory flu shots for U.S. service members

https://www.cbsnews.com/news/pete-hegseth-scraps-mandatory-flu-shots-american-service-members/
1•rolph•1m ago•0 comments

Blue Origin New Glenn rocket grounded after launching satellite into wrong orbit

https://www.boston25news.com/news/science/blue-origins-new/5ORGDBBN746LTDZ46OPZF7UAIQ/
1•1vuio0pswjnm7•1m ago•0 comments

Claude Platform on AWS (Coming Soon)

https://aws.amazon.com/claude-platform/
2•connortyndall•2m ago•0 comments

Show HN: Daemons – we pivoted from building agents to cleaning up after them

https://charlielabs.ai/
2•rileyt•3m ago•0 comments

Sendspin: Open standard for synchronized music across multiple devices and rooms

https://www.sendspin-audio.com/
1•CharlesW•3m ago•0 comments

Former Pinterest team redesigns email with Extra – and it's good

https://techcrunch.com/2026/04/21/former-pinterest-team-redesigns-email-with-extra-and-its-actual...
1•babelfish•3m ago•0 comments

Draft-Meow-Mrrp-00

https://datatracker.ietf.org/doc/html/draft-meow-mrrp-00
2•lstodd•4m ago•0 comments

Slayerfest: An AI Simulation of Academia in the Buffyverse

https://victoriaritvo.com/blog/slayerfest/
1•evakhoury•4m ago•0 comments

Why Some S3 Videocards Have a Brightness Issue

https://hackaday.com/2026/04/21/why-some-s3-videocards-have-a-brightness-issue/
1•omer_k•5m ago•0 comments

Haiku 4.5 + skills outperforms Opus 4.7. 9 models tested with and without skills

https://tessl.io/blog/anthropic-openai-or-cursor-model-for-your-agent-skills-7-learnings-from-run...
2•sjmaplesec•6m ago•2 comments

Show HN: TogetherLetters – Group newsletters with no app, no feed, no login

https://www.togetherletters.com
2•sanjayparekh•6m ago•0 comments

A 100-Year-Old Cartoon Trope Solved a Modern Emoji Problem

https://substack.com/sign-in
2•lacieargyle•8m ago•0 comments

Red Lobster Revives Endless Shrimp Two Years After Deal Led to $11M Loss

https://balleralert.com/red-lobster-shrimp-return/
2•randycupertino•9m ago•1 comments

Midjourney and Suno v4 and Veo 3.1 chained in one Dify workflow for $0.35 per ad

https://twitter.com/aikitpros/status/2046596943023890780
2•yujunjie•9m ago•0 comments

Show HN: DialtoneApp Network, card payments for bot commerce

2•fcpguru•11m ago•0 comments

Compromised AI Tool Triggered the Vercel Security Breach

https://entelligence.ai/blogs/how-an-ai-tool-triggered-the-vercel-security-breach
2•astro_09•11m ago•0 comments

Where Are All These Meteors Coming From?

https://www.nytimes.com/2026/04/21/science/march-fireballs-meteors-astronomy.html
3•digital55•12m ago•0 comments

YouTuber Copyright Struck After Others Layer AI Voiceovers on Video Game Music

https://www.techdirt.com/2026/04/20/youtuber-copyright-struck-after-others-layer-ai-voiceovers-on...
2•hn_acker•12m ago•0 comments

Faster LLM Inference via Sequential Monte Carlo

https://arxiv.org/abs/2604.15672
2•matt_d•12m ago•0 comments

Show HN: LLMSecure – prompt injection detection, no signup

https://llmsecure.io/
2•eliadmualem•12m ago•1 comments

AI is changing how Texas universities teach computer science as job market slows

https://www.texastribune.org/2026/04/21/texas-computer-science-college-degree-ai/
3•hn_acker•13m ago•0 comments

Building a Fast Multilingual OCR Model with Synthetic Data

https://huggingface.co/blog/nvidia/nemotron-ocr-v2
2•gmays•14m ago•0 comments

Show HN: Handler – Open-source local sandboxes and control plane for code agents

https://handler.dev
2•shake-n-fries•15m ago•0 comments

Show HN: Four years of my CS degree, typeset in LaTeX (850 pages)

https://starikov.co/academia-notes/
2•iusevim•15m ago•0 comments

OpenAI turns on cost-per-click ads inside ChatGPT

https://digiday.com/marketing/openai-turns-on-cost-per-click-ads-inside-chatgpt/
4•thm•15m ago•0 comments

200MP iPhone camera rumors align on 2028 release

https://9to5mac.com/2026/04/21/200mp-iphone-camera-rumors-align-on-2028-release/
2•omer_k•16m ago•0 comments