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

Comments

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

https://n.survol.fr/n/lartisan-et-lusine
1•speckx•1m ago•0 comments

Estonia bets on artificial intelligence to offset demographic decline

https://estonianworld.com/technology/estonia-bets-on-artificial-intelligence-to-offset-demographi...
1•atlasunshrugged•1m ago•0 comments

Show HN: Simple terminal UI for cleaning macOS

https://github.com/2ykwang/mac-cleanup-go
2•immutable000•2m ago•0 comments

Claude Code Skills for Marketing

https://github.com/coreyhaines31/marketingskills
1•mpaepper•4m ago•0 comments

CedarDB: The fastest database you've never heard of

https://www.amplifypartners.com/blog-posts/the-fastest-database-youve-never-heard-of
4•itunpredictable•4m ago•0 comments

AgentHub: Unified, Stateful SDK for All SOTA LLMs and Agent Executions

https://github.com/Prism-Shadow/AgentHub
1•PrismShadow•6m ago•1 comments

SS64 Command Line Reference

https://ss64.com/
1•thunderbong•7m ago•0 comments

Help us benchmark Agentic AI adoption patterns (Last day for Jan survey)

https://survey.actiindex.org/January2026/
1•7777777phil•8m ago•0 comments

Cloudflare Can't Save You from a DoS (I Checked)

https://nullrabbit.ai/research/cloudflare-dos-limitations
2•simonmorley•8m ago•0 comments

Technical benchmarks for CAAE optimization layer

1•zwmaronek•8m ago•2 comments

Change news.ycombinator to news.gcombinator to get copyable context

https://twitter.com/janwilmake/status/2015405833681621392
1•mpaepper•9m ago•6 comments

I built a Mac keyboard util to get stray thoughts, ideas, todos into Markdown

https://www.publicspace.net/BurstNotes/index.html
1•imperfectly•10m ago•0 comments

Show HN: Frigatebird – high performance OLAP database built on io_uring

https://github.com/Frigatebird-db/frigatebird
1•joeeverjk•10m ago•0 comments

Claude Code made me love meetings again

https://tn1ck.com/blog/claude-code-made-me-love-meetings-again
4•TN1ck•10m ago•0 comments

Phantom Obligation

https://www.terrygodier.com/phantom-obligation
1•zxlk21e•10m ago•0 comments

Building Brains on a Computer: Roadmap for brain emulation models at human scale

https://www.asimov.press/p/brains
1•atlasunshrugged•11m ago•0 comments

The Ruby Users Forum Is Now Live

https://www.rubyforum.org/
3•todsacerdoti•12m ago•0 comments

Data workers are being forced to work on-site during natural disasters

https://restofworld.org/2026/philippines-disasters-bpo-workers/
1•vinnyglennon•12m ago•0 comments

Show HN: Confcrypt – Encrypt Secrets in YAML/JSON Configs with FIDO2/Age/SSH

https://github.com/maurice2k/confcrypt
1•maurice2k•13m ago•0 comments

Show HN: Nr – 26x faster NPM run replacement

https://github.com/dawsbot/nr
1•dawsonbotsford•14m ago•0 comments

Hasbro is being sued for printing too many Magic: The Gathering cards

https://www.dexerto.com/magic-the-gathering/hasbro-is-being-sued-for-printing-too-many-magic-the-...
1•randycupertino•14m ago•0 comments

Show HN: ExoAgent – Security kernel for AI agents. Steal my $1K BTC (Live CTF)

https://exoagent.io/challenge
1•ryanrasti•14m ago•0 comments

Database Benchmarks Lie (If You Let Them)

https://www.exasol.com/blog/database-benchmarks-scalability-concurrency-failures/
8•exagolo•15m ago•1 comments

Larry Walters

https://vvesh.de/death/larry-walters
3•pryncevv•16m ago•1 comments

Show HN: FitVow – a smart contract that fines me if I miss weekly fitness goals

https://fitvow.pedroaugusto.dev/
1•the42thdoctor•17m ago•1 comments

Vibe coding is a moving target (so don't marry the tool)

https://www.nothingeasyaboutthis.com/vibe-coding-is-a-moving-target-so-dont-marry-the-tool/
1•speckx•17m ago•0 comments

Windows 11 January Update Breaks Notepad

https://winbuzzer.com/2026/01/22/windows-11-january-update-breaks-notepad-snipping-tool-and-other...
2•Aldipower•18m ago•0 comments

Sig P320 Gun Uncommanded Discharge

https://www.youtube.com/watch?v=jOMQOtOQoPk
1•nailer•18m ago•1 comments

I Still Teach OpenGL ES 3.0 in 2026

https://eliasfarhan.ch/jekyll/update/2026/01/27/why-i-teach-opengles.html
1•kwakwa_cat•20m ago•0 comments

Which LLM writes the best R code?

https://posit.co/blog/r-llm-evaluation-03/
1•ionychal•20m ago•0 comments