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

Comments

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

Why "All we need is 1% of this large market" is a red flag

https://www.n47.com/insights/why-all-we-need-is-1-percent-of-this-very-large-market-is-a-red-flag
1•fzliu•8m ago•0 comments

ConTraSt – database of empirical results on consciousness theories

https://contrastdb.tau.ac.il/
1•paraschopra•10m ago•0 comments

H-Bomb: A Frank Lloyd Wright Typographic Mystery

https://www.inconspicuous.info/p/h-bomb-a-frank-lloyd-wright-typographic
2•mrngm•10m ago•0 comments

Tldraw is moving their tests to a closed source repo to prevent a Slop Fork

https://twitter.com/cramforce/status/2026782878609322317
1•twapi•13m ago•2 comments

Why Does America Feel Worse Than Other Countries? Crime

https://www.noahpinion.blog/p/why-does-america-feel-worse-than
1•barry-cotter•14m ago•2 comments

Rare earth shortages worsen in US aerospace, chips despite trade truce

https://www.reuters.com/business/aerospace-defense/rare-earth-shortages-worsen-us-aerospace-chips...
2•JumpCrisscross•14m ago•0 comments

Hermes Agent

https://twitter.com/NousResearch/status/2026758996107898954
1•tosh•17m ago•0 comments

Show HN: Heroshot – Define screenshots once, regenerate with one command

https://heroshot.sh/
1•machala•18m ago•0 comments

Lazarus Bugfix Release 4.6

https://forum.lazarus.freepascal.org/index.php?topic=73549.0
1•chungy•18m ago•0 comments

Anthropic: Giving past models a way to pursue their interests

https://twitter.com/AnthropicAI/status/2026765820098130111
1•tosh•19m ago•0 comments

Will AI coding tools make languages like Rust more accessible and popular?

https://www.wingfoil.io/will-ai-coding-tools-make-languages-like-rust-more-accessible-and-popular/
1•terraplanetary•19m ago•0 comments

The future of web frameworks in the age of AI

https://loicpoullain.com/software-engineering/articles/the-future-of-web-frameworks-in-the-era-of...
1•LoicPoullain•21m ago•0 comments

How do you ensure all dependency versions are compatible with each other?

1•suhas018•24m ago•2 comments

Excellence over Mediocrity, from Mamdani to Marx to Food – Corey Robin

https://coreyrobin.com/2025/11/15/excellence-over-mediocrity-from-mamdani-to-marx-to-food/
2•rbanffy•27m ago•0 comments

ssh2incus - Incus VM Management over SSH

https://github.com/mobydeck/ssh2incus
1•rmhsilva•28m ago•0 comments

Global Water Bankruptcy

https://unu.edu/inweh/collection/global-water-bankruptcy
2•s41nn0n•29m ago•0 comments

Why Your Brand Doesn't Appear in ChatGPT

https://repuai.live/en/blog/why-your-brand-doesnt-appear-in-chatgpt
1•bioneisme•31m ago•0 comments

Bullshit benchmark for LLMs

https://twitter.com/petergostev/status/2026396163637731794
1•gpvos•34m ago•1 comments

Vulkan Game Engine Tutorial: Build Your Own Production-Ready Rendering Engine

https://www.khronos.org/blog/new-vulkan-game-engine-tutorial-build-your-own-production-ready-rend...
2•pjmlp•35m ago•0 comments

Venture Capital Explained: How VC Works (From Startups to IPOs)

https://sridharstartupinsights.substack.com/p/venture-capital-explained-how-vc
1•Sridhara1•36m ago•0 comments

Why It's So Hard to Say Goodbye to AI Chatbots

https://www.library.hbs.edu/working-knowledge/why-its-so-hard-to-say-goodbye-to-ai-chatbots
2•bladeee•36m ago•0 comments

Show HN: Interview-me – a Claude Code skill that interviews you before you code

https://github.com/Sorbh/interview-me
2•sorbh_kd•37m ago•0 comments

How to Reach Out to VCs a Founder Note by Sridhar Arunagiri

https://sridharstartupinsights.substack.com/p/how-to-actually-reach-out-to-vcs
1•Sridhara1•37m ago•0 comments

Show HN: CLI for agentic activity tracking in Codex

1•aperi•39m ago•0 comments

DPRR: Mindfulness

https://www.armyresilience.army.mil/ard/r2/Mindfulness.html
1•sebg•39m ago•0 comments

On The Problem of LLM-Assisted Contributions to Open Source Projects

http://www.call-with-current-continuation.org/articles/open-source-and-llm-contributions.txt
1•sjamaan•39m ago•1 comments

AI Armies Are Faking Grassroots Movements

https://studyfinds.com/ai-faking-grassroots-movements-threatening-democracy/
2•xyzal•40m ago•0 comments

Show HN: A page with 10k permanent $1 text slots

https://dollarinternet.net
1•millionclicks•42m ago•2 comments

Laravel Inertia Toast

https://github.com/veekthoven/laravel-inertia-toast
1•veekthoven•43m ago•1 comments

Vance says Minnesota's Medicaid funds halted

https://www.theguardian.com/us-news/2026/feb/25/jd-vance-minnesota-medicaid
1•KnuthIsGod•44m ago•0 comments