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

I time travelled to Ancient Rome [video]

https://www.youtube.com/watch?v=aaua5ghidk0
1•lisper•13s ago•0 comments

Palantir posts mini-manifesto denouncing inclusivity and 'regressive' cultures

https://techcrunch.com/2026/04/19/palantir-posts-mini-manifesto-denouncing-regressive-and-harmful...
1•benwerd•3m ago•0 comments

Critical flaw in Protobuf library enables JavaScript code execution

https://www.bleepingcomputer.com/news/security/critical-flaw-in-protobuf-library-enables-javascri...
2•Brajeshwar•5m ago•1 comments

Is the 'Tailored Resume' advice feasible without automation anymore?

https://applygenius.ai
1•mikkaai•6m ago•0 comments

Show HN: Google Gemini Is Scanning Your Photos – and the EU Said No

1•anju-kushwaha•6m ago•0 comments

Accepted proposal: UUID in the Go standard library

https://rednafi.com/shards/2026/04/go-uuid/
1•ingve•7m ago•0 comments

Amazon DCV – A Better Alternative to VNC

https://aws.amazon.com/hpc/dcv/
1•alhazrod•10m ago•0 comments

Self-healing GitHub CI that won't let AI touch your application code

https://github.com/mosidze/aiheal
3•mosidze•17m ago•0 comments

Show HN: AgentGrade – agent-readiness guide for your site

https://agentgrade.com/
2•usiegj00•17m ago•0 comments

AI Is Killing Open Source SaaS Too

https://nmn.gl/blog/open-source-killed-ai
1•namanyayg•17m ago•1 comments

543 Hours: What happens when AI runs while you sleep

https://michael.roth.rocks/research/543-hours/
2•pramodbiligiri•21m ago•0 comments

PM Carney declares U.S. ties now a 'weakness' in address to Canadians

https://www.ctvnews.ca/politics/article/pm-carney-declares-us-ties-now-a-weakness-in-address-to-c...
13•Teever•21m ago•1 comments

"Ukraine cut out the bloated red tape of military bureaucracy"

https://www.youtube.com/watch?v=1s39U0j2jPA
1•lifeisstillgood•22m ago•1 comments

Rensei – let agents code 3D models and screenshot them. then 3D print

https://github.com/remorses/rensei
3•xmorse•22m ago•0 comments

The State of LLM Bug Bounties in 2026

https://wraith.sh/learn/state-of-llm-bug-bounties-2026
1•WizardX_0x•23m ago•0 comments

CNNs + VLM outperforms pure VLMs on OCR

https://interfaze.ai/blog/cnn-plus-vlm-more-than-vlm
2•yoeven•23m ago•0 comments

Show HN: I built an open source and secure infrastructure for internal apps

https://github.com/RootCX/RootCX
1•seyz•24m ago•0 comments

This time is no different

https://czep.net/26/this-time.html
1•czep•26m ago•0 comments

How I sequenced my genome at home

https://twitter.com/sethshowes/status/2045782975380406623
4•Finbarr•26m ago•1 comments

EU LOTL trust anchors are rotating on April 28: what breaks and how to patch

https://guust.ysebie.be/blog/new-eu-trusted-certificates-updated
2•whizzx•27m ago•0 comments

The Trouble with Transformers

https://roblh.substack.com/p/the-trouble-with-transformers
4•rob_lh•30m ago•1 comments

Time-Variation of Fundamental Constants

https://en.wikipedia.org/wiki/Time-variation_of_fundamental_constants
1•tcp_handshaker•32m ago•0 comments

Why I de-Googled

https://kevinboone.me/why_i_degoogled.html
7•ingve•33m ago•1 comments

Show HN: A chess playground that lets you share board configurations

https://www.chesster.eu
2•MirceaOprea•41m ago•0 comments

Put away your phone and play Pokémon on your Nintendo DS instead

https://alexwennerberg.com/blog/2026-04-15-ds.html
2•abnercoimbre•42m ago•0 comments

We scored 10k Polymarket wallets. Calibration barely predicts profit

https://www.convexly.app/blog/polymarket-10k-wallet-study
3•convexly•42m ago•0 comments

Show HN: Design Graph – a canvas for reviewing parallel HTML variants

https://github.com/noemica-io/design-graph
1•SebastianSosa•43m ago•0 comments

BreachLab Phantom – 32-level post-exploitation wargame on a real Linux box

https://breachlab.org/tracks/phantom
2•atobones•43m ago•0 comments

AgentID – Shared identity. Shared memory. Shared tasks. Lower token costs

https://agentid.live/
1•colapsis•44m ago•0 comments

Koide Formula

https://en.wikipedia.org/wiki/Koide_formula
1•tcp_handshaker•46m ago•0 comments