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

Comments

trbndev•10mo 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•10mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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: Agentic Docs Templates, keep AI coding agents disciplined

https://github.com/Sukitly/agentic-docs-templates
1•sukit•2m ago•0 comments

I put my AI on a PIP. It worked

https://pip-skill.pages.dev/case-study
1•MrCoder•2m ago•0 comments

I turned off 5 settings and my TV stopped spying on me

https://www.pocket-lint.com/tv-settings-turn-off-spying/
1•breve•3m ago•0 comments

Bash Theft Auto a GTA-inspired open-world crime game in pure Bash

https://github.com/stuffbymax/Bash-Theft-Auto
1•stuffbymax•4m ago•0 comments

Show HN: I Build a SaaS Analytics Platform

https://saaslytics.net
2•fabiaosdejka•10m ago•0 comments

Show HN: Koalify – a compact predicate DSL for filtering any Python object

https://dragos.dumitrache.dev/blog/koalify/
1•afterburner5•11m ago•1 comments

Show HN: thegoodmovies.com pick what to watch in under 60 seconds

2•thegoodmovies•12m ago•1 comments

Termix v2.0.0 – RDP, VNC, and Telnet Support (self-hosted Termius alternative)

https://github.com/Termix-SSH/Termix
1•bugattiguy527•13m ago•1 comments

Ask HN: Email identity isolation for multi-agent outreach systems?

1•kumardeepanshu•14m ago•0 comments

Memory Types in LangChain

https://looppass.mindmeld360.com/blog/langchain-memory-types/
1•tomerbd•15m ago•0 comments

Generating All 32-Bit Primes (Part I)

https://hnlyman.github.io/pages/prime32_I.html
2•hnlyman•17m ago•0 comments

Show HN: HN Jobs Trends – Monthly trend analysis of HN job postings

https://hn-job-trends.gantryops.dev
1•notdian•18m ago•0 comments

Show HN: Minimap – a local UI for repo roadmap files

https://github.com/rore/minimap
1•margolis20•19m ago•1 comments

Show HN: Grantex–Open authorization protocol for AI agents-like OAuth for agents

https://github.com/mishrasanjeev/grantex
2•mishrasanjeev•20m ago•0 comments

Ask HN: How many books have you read in 2026 so far and which was your favorite?

1•chistev•23m ago•1 comments

Patience – 3Sec Hold Game:)

https://3sec.site/
1•casultra•24m ago•1 comments

UFO Sighting in the Lower East Side

https://cinemasojourns.com/2026/03/14/ufo-sighting-in-the-lower-east-side/
1•jjgreen•27m ago•0 comments

Costs and Benefits from the New Energy Crisis

https://paulkrugman.substack.com/p/costs-and-benefits-from-the-new-energy
2•rbanffy•29m ago•0 comments

Show HN: AgentMailr – dedicated email inboxes for AI agents

https://www.agentmailr.com/
3•kumardeepanshu•30m ago•1 comments

Show HN: Subagent-reuse, an MCP to reuse Claude Code subagent context

1•h1r1ms•31m ago•2 comments

CrackArmor: Critical AppArmor Flaws Enable Local Privilege Escalation to Root

https://blog.qualys.com/vulnerabilities-threat-research/2026/03/12/crackarmor-critical-apparmor-f...
2•campuscodi•36m ago•0 comments

Am I right or am I right? Phrase

https://en.wiktionary.org/wiki/am_I_right_or_am_I_right
1•marysminefnuf•39m ago•0 comments

Ask HN: Is documentation a solved problem or are we all just pretending?

2•hariprasadr•41m ago•0 comments

Ask HN: What breaks first when your team grows from 10 to 50 people?

1•hariprasadr•43m ago•2 comments

Show HN: An OpenClaw skill to access Grok without an API Key

https://github.com/aquarius-wing/grok-scraper
1•lwy8wing•50m ago•1 comments

IBM, sonic delay lines, and the history of the 80×24 display

https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html
4•rbanffy•53m ago•0 comments

Ask HN: What are the hardest parts of working with the Web Audio API?

1•alexgriss•53m ago•0 comments

Ask HN: Why do the majority of vibecoded projects fail?

4•keepamovin•53m ago•2 comments

Those who 'circle back' and 'synergize' also tend to be crap at their jobs

https://www.theregister.com/2026/03/15/corporate_jargon_research/
1•beardyw•54m ago•1 comments

PHP-community: a faster-moving, community-driven PHP

https://blog.daniil.it/2026/03/15/php-community-a-faster-moving-community-driven-php/
2•danogentili•57m ago•0 comments