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

Comments

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

Fluctuating Accuracy in LLM Responses

1•chris_explicare•51s ago•0 comments

Linux File-System Proliferation a Burden: Requirements Laid Out

https://www.phoronix.com/news/Linux-FS-Proliferation-Burden
1•Bender•1m ago•0 comments

How long ago would the MacBook Neo be Apple's fastest computer?

https://www.thestudiesshow.com/p/macbook-neo-when-fastest-apple-computer-time-machine
1•throw0101c•1m ago•0 comments

Apple Patents Brain-Reading Earbuds for Neural Monitoring (2025)

https://www.gadgetreview.com/apple-patents-brain-reading-earbuds-for-neural-monitoring
1•wslh•3m ago•0 comments

OpenAI locks GPT-5.5-Cyber behind velvet rope despite slamming Anthropic

https://www.theregister.com/2026/05/01/openai_locks_gpt55cyber_behind_velvet/
1•Bender•4m ago•0 comments

Ask HN: Anyone else getting errors with GitHub Copilot?

https://github.com/copilot
1•voxleone•4m ago•0 comments

Vibe Graveyard

https://vibegraveyard.ai/
1•vintagedave•7m ago•0 comments

A multi-country citizen-science study on what makes us enjoy a cup of coffee

https://www.nature.com/articles/s41538-026-00832-5
1•bookofjoe•7m ago•0 comments

Tor Onion Service with Docker Compose and Lighttpd

https://github.com/nicdercole/Tor-Lighttpd-Onion-2026
2•nicderc•8m ago•0 comments

A Better Way to Evaluate Money Laundering Detection Algorithms

https://www.michelecoscia.com/?p=2532
1•mikk14•9m ago•0 comments

Train a LLM from Scratch

https://github.com/raiyanyahya/how-to-train-your-gpt
2•linhns•10m ago•1 comments

Never Skipping This Habit Again

https://chessunlock.app
10•jasonmadeit•11m ago•0 comments

Ask HN: Would you use a "blast radius" view during PR reviews?

1•shivang2607•11m ago•0 comments

Why the cycle of open-source sustainability needs to be virtuous

https://www.gabrielebartolini.it/articles/2026/04/why-the-cycle-of-open-source-sustainability-nee...
1•bo0tzz•12m ago•0 comments

DAG Workflow Engine

https://github.com/vivekg13186/Daisy-DAG
1•blobmty•15m ago•1 comments

Show HN: PDF to AI podcast in 9 Indian languages

https://n8n.io/workflows/15350-generate-two-host-pdf-podcasts-with-gpt-5-smallest-ai-and-gmail/
2•sosumit001•16m ago•0 comments

You might misunderstand arithmetic coding

https://purplesyringa.moe/blog/you-might-misunderstand-arithmetic-coding/
1•ibobev•16m ago•0 comments

Using the 'Sandwich Method' to Teach Mathematics

https://pikuma.com/blog/sandwich-method-math-education
1•ibobev•17m ago•0 comments

Logarithmic Spirals

https://www.boristhebrave.com/2026/05/02/logarithmic-spirals/
1•ibobev•18m ago•0 comments

Custom Music Boxes, Mechanisms, Movements and Discs

https://www.musichouseshop.com/store/custom-music-boxes-and-tunes.html
1•Rygian•20m ago•0 comments

Japan is deploying ultra-cheap cardboard drones

https://www.tomshardware.com/tech-industry/japan-is-deploying-ultra-cheap-cardboard-drones-built-...
1•flippyhead•20m ago•1 comments

Agent Skills for Non-Devs

https://agent-skills.market/
1•liorsh•22m ago•0 comments

Kepler.gl inside Snowflake (Snowpark app)

https://app.snowflake.com/marketplace/listing/GZSYZJNO4W/dekart-xyz-dekart-–-kepler-gl-maps-insid...
1•delfrrr•23m ago•0 comments

Mommy, Are the Inspirational Stories on LinkedIn Real?

https://www.mcsweeneys.net/articles/mommy-are-the-inspirational-stories-on-linkedin-real
2•jyounker•25m ago•0 comments

How YouTube Took over the American Classroom

https://www.wsj.com/us-news/education/youtube-chromebooks-schools-children-brain-f151dfbb
1•impish9208•25m ago•1 comments

Show HN: Image Gen MCP – one MCP server with goal-shaped routing

https://github.com/thebenlamm/image-gen-mcp
1•benlamm•26m ago•0 comments

The impact of self-affirmation interventions on well-being: A meta-analysis

https://psycnet.apa.org/doiLanding?doi=10.1037%2Famp0001591
1•RickJWagner•29m ago•1 comments

Native Color Lidar

https://www.businesswire.com/news/home/20260504718668/en/Ouster-Releases-The-REV8-OS-Family-The-W...
1•pis7aller•30m ago•0 comments

Agentic RAG Explained in 3 Levels of Difficulty

https://machinelearningmastery.com/agentic-rag-explained-in-3-levels-of-difficulty/
1•eigenBasis•33m ago•0 comments

New Orleans relocation must start now due to sea level

https://www.theguardian.com/us-news/2026/may/04/new-orleans-sea-levels-relocation-climate-crisis
2•vr46•33m ago•1 comments