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

Bet on German Train Delays

https://bahn.bet
1•indiantinker•17s ago•0 comments

Agentmap – Like SKILL spec but for code. A frontmatter for source code files

https://github.com/remorses/agentmap
1•xmorse•21s ago•1 comments

Iran Strikes U.S. Military Communication Infrastructure in Mideast

https://www.nytimes.com/2026/03/03/world/middleeast/iran-strikes-us-military-communication-infras...
1•TheAlchemist•23s ago•0 comments

What 127.5M forms can tell you about the state of front-end regex input v

https://amandastjerna.se/blog/127-million-forms/
1•fanf2•33s ago•0 comments

The next era of social media: built and run in Europe, ruled by our laws

https://www.eurosky.tech
1•doener•3m ago•0 comments

American Snacking Habits Are Transforming the Restaurant Industry

https://www.theatlantic.com/health/2026/03/restaurant-snack-meal-menu/686220/
1•fortran77•6m ago•1 comments

Solidjs releases 2.0 beta – The <Suspense> is Over

https://github.com/solidjs/solid/releases/tag/v2.0.0-beta.0
1•evertheylen•7m ago•1 comments

The Corporate Bullshit Receptivity Scale

https://www.sciencedirect.com/science/article/abs/pii/S0191886926000620
1•robtherobber•8m ago•0 comments

Bugsight – CLI tool that analyzes errors and suggests fixes

https://github.com/Arnel-rah/bugsight
1•nel123•8m ago•0 comments

The Context Optimization Layer for LLM Applications

https://github.com/chopratejas/headroom
1•selvan•10m ago•0 comments

Show HN: Ungrind – the solopreneur CRM that updates itself

https://ungrind.ai
1•magnumpowerz•10m ago•0 comments

I built Formguard – form back end without DB or APIs

https://formguard.strivio.world
1•sh20raj•12m ago•1 comments

Show HN: CUP – MCP but for desktop UI (open spec for computer use agents)

https://github.com/computeruseprotocol/computeruseprotocol
2•k4cper-g•12m ago•2 comments

Google Analytics Made Beautiful

https://analyticsma.de/
1•daniloao•13m ago•0 comments

Ask HN: How do you catch OpenAPI drift before the UI breaks?

1•losalah•13m ago•1 comments

ClawOS:Linux Panel for OpenClaw,nanobot,picoclaw,nullclaw

https://github.com/mrytsr/clawos
1•mrytsr•14m ago•0 comments

LocalStack: Community edition abandoned, users will need to create an account

https://blog.localstack.cloud/the-road-ahead-for-localstack/
1•greatgib•16m ago•0 comments

Show HN: You don't forget password, You just forget pattern

https://drp.kingname.info/
1•kingname•17m ago•1 comments

CIA working to arm Kurdish forces to spark uprising in Iran, sources say

https://www.cnn.com/2026/03/03/politics/cia-arming-kurds-iran
3•Imustaskforhelp•18m ago•1 comments

Which LLMs fold under pressure? We made 6 LLMs argue 300 hard cases to find out

https://servanda.ai/benchmarks/the-post-training-stress-test
1•luke14free•18m ago•1 comments

From RGB to L*a*b* color space (2024)

https://kaizoudou.com/from-rgb-to-lab-color-space/
1•kqr•18m ago•0 comments

Show HN: SFT to convert a base language model into a conversational chat model

https://github.com/onurkanbakirci/Llama-2-7b-oasst-sft
1•onurkanbkrc•18m ago•0 comments

OpenAI in talks to deploy AI across NATO classified networks

https://www.marketscreener.com/news/openai-in-talks-to-deploy-ai-across-nato-classified-networks-...
1•_____k•19m ago•0 comments

Donx64mcp-dbg – an injected DLL debugger toolkit with an MCP server for x64 apps

https://github.com/d0nk3yhm/donx64mcp-dbg
1•d0nk3yhm•19m ago•1 comments

Molmo 2: video understanding, pointing, and tracking

https://github.com/allenai/molmo2
1•tamnd•19m ago•0 comments

Erratic ILS Signal Causes a Missed Approach

https://www.boldmethod.com/learn-to-fly/safety/erratic-ils-signal-causes-a-missed-approach/
1•kqr•19m ago•0 comments

Show HN: Dirsv – live reload server for dir browsing, GFM, and more filetypes

https://github.com/letientai299/dirsv
1•letientai299•20m ago•0 comments

Wikipedia articles on the Iran war are being rewritten in real time

https://medium.com/@chris_50496/the-world-is-burning-wikipedia-is-being-rewritten-in-real-time-5c...
2•membrshiperfect•21m ago•1 comments

Toyota and Stellantis exit Tesla's EU regulatory pool for 2026 – Ford remains

https://www.schmidtmatthias.de/post/toyota-and-stellantis-exit-tesla-s-eu-regulatory-pool-for-202...
1•doener•22m ago•0 comments

Slack bot coding agent built on pi (mom)

https://github.com/badlogic/pi-mono/tree/main/packages/mom
1•rmhsilva•22m ago•0 comments