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

Pentagon Adopts Incel-Speak

https://www.theguardian.com/science/2026/mar/01/incel-slang-mainstream-government-media
1•zabzonk•24s ago•0 comments

The Norwegian Consumer Council delved into enshittification and how to resist it [video]

https://vimeo.com/1168468796
1•jahala•1m ago•1 comments

Show HN: Tree, but for Token Usage

https://github.com/li-kai/treetok
1•likium•1m ago•0 comments

Ape Coding

https://rsaksida.com/blog/ape-coding/
2•rmsaksida•2m ago•0 comments

Claude Dungeon – Visualize Claude Code sessions as pixel-art dungeon heroes

https://github.com/thousandsky2024/claude-pixel-agent-web
1•simonshishenlsy•2m ago•1 comments

Show HN: Agentic Airport

https://github.com/OvidijusParsiunas/agentic-airport
1•ovisource•3m ago•0 comments

Simple Screw Counter [video]

https://www.youtube.com/watch?v=MkfHD2ShE5s
1•radeeyate•5m ago•0 comments

HN Skins – Read HN in Style with 5 Skins: Cafe, London, Teletype, Terminal, Nox

https://github.com/susam/hnskins
2•susam•5m ago•0 comments

Building with an AI that remembers – A blog by my OpenClaw Assistant

https://janhoon.com/blog/building-with-an-ai-that-remembers/
1•janhoon•6m ago•1 comments

Show HN: Esoteric Single Counter Programming Language

https://af-dev.com/tiny-lang-ui/
1•_adev•10m ago•0 comments

Mastodon Onboarding Workshop

https://termine.di.day/events/0416dee7-cc7f-4e2a-aa94-ff11322daaaa
2•doener•11m ago•0 comments

I wanted to touch grass but the clouds had other plans

https://apps.apple.com/us/app/pingy-cloud-outage-alerts/id6759363978
1•Sayuj01•11m ago•0 comments

I built a CLI tool to detect fake high-res audio and visualize audio spectrum

https://github.com/giorgiogamba/avil
1•giorgiogamba•11m ago•1 comments

Show HN: TheAgentMail – email for AI agents with karma-based spam prevention

https://theagentmail.net/
1•uriva•11m ago•0 comments

Much Will Gas Prices Rise After the Iran Strikes?

https://www.thepricer.org/how-much-will-gas-prices-rise-after-the-iran-strikes/
1•theothersidebac•12m ago•1 comments

Local LLM compresses long prompts before they reach Claude – MCP server

https://github.com/base76-research-lab/token-compressor
1•base76•15m ago•2 comments

Six Into One: The Prisoner File (1984) [video]

https://www.youtube.com/watch?v=5UKga58CYmY
1•olvy0•17m ago•0 comments

Show HN: RTS – A Git-native execution provenance protocol for AI decisions

https://github.com/nobutakayamauchi/RTS
1•nobutaka_y•18m ago•1 comments

AI is making junior devs useless

https://beabetterdev.com/2026/03/01/ai-is-making-junior-devs-useless/
2•beabetterdev•20m ago•0 comments

Search Engine for Vintage Computers

http://frogfind.com/
2•TigerUniversity•21m ago•1 comments

Show HN: Zagora, Distributed fine-tuning platform on mixed GPUs over internet

https://app.zagora.ai
1•miyamotomusashi•21m ago•0 comments

RE#: how we built the fastest regex engine in F#

https://iev.ee/blog/resharp-how-we-built-the-fastest-regex-in-fsharp/
2•exceptione•21m ago•0 comments

Show HN: I'm a teen from Kenya and I built a pretty fast package manager in Rust

https://github.com/v1peridae/vee
3•v1peridae•22m ago•0 comments

The stranger secret: how to talk to anyone – and why you should

https://www.theguardian.com/lifeandstyle/2026/feb/24/stranger-secret-how-to-talk-to-anyone-why-yo...
2•haunter•26m ago•0 comments

America's new era of state-sponsored mining

https://economist.com/briefing/2026/02/26/americas-new-era-of-state-sponsored-mining
2•andsoitis•30m ago•0 comments

How the Federal Government Is Painting Immigrants as Criminals on Social Media

https://www.npr.org/2026/02/27/nx-s1-5720167/trump-ice-immigration-social-media-deportation-dhs-i...
8•TigerUniversity•34m ago•1 comments

The U.S. war on Iran is manifestly unjust

http://edwardfeser.blogspot.com/2026/02/the-us-war-on-iran-is-manifestly-unjust.html
8•danielam•35m ago•0 comments

You Are the Bottleneck

https://zknill.io/posts/you-are-the-bottleneck/
2•zknill•39m ago•0 comments

Een kleine non-profitorganisatie deed wat de FDA niet wilde doen

https://brownstone.org/articles/a-small-nonprofit-did-what-the-fda-would-not/
1•Agnost•39m ago•0 comments

Show HN: CloudPriceCheck – Cloud pricing comparison for 8 providers

https://cloudpricecheck.com/
2•m4sui•40m ago•1 comments