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 Danger of "Modern" Open Source

https://fagnerbrack.com/the-danger-of-modern-open-source-c15dd5206346
1•pjmlp•42s ago•0 comments

Rust vs. Go

https://bitfieldconsulting.com/posts/rust-vs-go
1•teleforce•3m ago•0 comments

MicroHs, a Tiny Haskell Compiler – Lennart Augustsson

https://github.com/augustss/MicroHs
1•lioeters•3m ago•0 comments

Australia, Japan sign contracts to start $7B warship deal

https://www.reuters.com/world/china/australia-japan-sign-contracts-start-7-billion-warship-deal-2...
1•JumpCrisscross•4m ago•0 comments

Tabular Database Systems – DuckDB-Based Course on the Fundamentals of RDBMS/SQL

https://github.com/DBatUTuebingen/TaDa
1•mpweiher•7m ago•0 comments

Hikikomori: Two Hundred Years of Housework Devalued

https://wonbrand.substack.com/p/hikikomori-two-hundred-years-of-housework
1•wonbrand•7m ago•0 comments

Claude knows who you are

https://www.patrickstevens.co.uk/posts/2026-04-18-claude-knows-you/
1•Smaug123•13m ago•2 comments

Shared-memory persistent data structures for ClojureScript and Clojure

https://github.com/SeniorCareMarket/eve
1•PaulHoule•16m ago•0 comments

Show HN: Chlibc – A ptrace-based tool to hot-swap glibc and interp in user-space

https://github.com/gzm55/chlibc
1•gzm55•16m ago•0 comments

Metallic Microlattice

https://en.wikipedia.org/wiki/Metallic_microlattice
1•ZeljkoS•19m ago•0 comments

GNOME GitLab Git traffic caching

https://www.dragonsreach.it/2026/04/17/gnome-gitlab-git-pulls-caching-improvements/
25•JNRowe•23m ago•0 comments

The Quiet Coup: How AI Is Rewriting Power, Wealth, and Human Agency

https://neerajkarimpuzha.wordpress.com/2026/04/18/293/
2•neeraj_r•28m ago•0 comments

Fixing DNS tail latency with a 5-line config and a 50-line function

https://numa.rs/blog/posts/fixing-doh-tail-latency.html
2•fanf2•28m ago•0 comments

Biangbiang Noodles

https://en.wikipedia.org/wiki/Biangbiang_noodles
1•thunderbong•30m ago•0 comments

China humanoid robot half-marathon to showcase technical leaps

https://www.reuters.com/world/asia-pacific/china-humanoid-robot-half-marathon-showcase-technical-...
3•JumpCrisscross•34m ago•0 comments

A brief history of C/C++ programming languages

https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/
1•signa11•34m ago•0 comments

Cannabis may make you remember things that never happened

https://www.nationalgeographic.com/health/article/how-cannabis-affects-memory-thc-false-recall
2•johntfella•40m ago•0 comments

Anthropic decided to shut down our organization for an alleged violation

https://twitter.com/patomolina/status/2045281665363386504
1•isolli•40m ago•1 comments

Ask HN: How do small startups, solo/lean HR agencies manage hiring pipeline?

1•kathir05•43m ago•0 comments

Show HN: I can't write Python. It works anyway

https://github.com/Wewoc/Garmin_Local_Archive
1•Wewoc•45m ago•0 comments

Laimark – 8B LLM that self-improves. Consumer GPU

https://github.com/seetrex-ai/laimark
2•jesustabares•52m ago•0 comments

Peter Thiel Is Launching an "AI Ministry of Truth" Called Objection

https://old.reddit.com/r/antiai/comments/1sngw6f/peter_thiel_is_launching_an_ai_ministry_of_truth/
4•doener•59m ago•0 comments

Men caught competing in women's category of prestigious South African marathon

https://www.cnn.com/2026/04/17/sport/men-found-womens-category-sa-marathon-intl-scli
1•breve•59m ago•0 comments

Grok TTS and STT APIs

https://x.ai/news/grok-stt-and-tts-apis
2•chopete3•59m ago•1 comments

BibCrit – LLM grounded in ETCBC corpus data for Biblical textual criticism

https://github.com/Jossifresben/BibCrit
1•jossifresben•1h ago•0 comments

Long Covid Diagnostic Out of Stanford

https://join.muno.bio/
2•limalabs•1h ago•0 comments

Forsp: A Forth+Lisp hybrid lambda calculus language (2024)

https://xorvoid.com/forsp.html
1•HeliumHydride•1h ago•0 comments

The Art of the Fictional Pop Song

https://www.newyorker.com/culture/pop-music/the-art-of-the-fictional-pop-song
2•fortran77•1h ago•0 comments

America Lost the Mandate of Heaven

https://geohot.github.io//blog/jekyll/update/2026/04/18/america-mandate-of-heaven.html
3•mefengl•1h ago•1 comments

Claude Opus wrote a Chrome exploit for $2,283

https://www.theregister.com/2026/04/17/claude_opus_wrote_chrome_exploit/
5•Mohansrk•1h ago•0 comments