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

Show HN: A tiny macOS app that clears app caches and NPM/Docker/Xcode junk

https://apps.apple.com/us/app/woof-disk-cleaner-organizer/id6761780156?mt=12
1•chernikovalexey•27s ago•0 comments

Japanese man sentenced to prison for posting spoilers

https://www.theverge.com/entertainment/914984/godzilla-minus-one-overlord-coda-spoilers-lawsuit-t...
1•speckx•49s ago•0 comments

Advent of Computing: Episode 179 – Programming Block by Block

https://adventofcomputing.libsyn.com/episode-179-programming-block-by-block
1•matt_d•2m ago•0 comments

Visibility, approvals, and auditability for multi-agent coding workflows

https://beta.actower.io/blog/visibility-approvals-auditability-multi-agent-workflows
1•gokhanozer•3m ago•0 comments

Show HN: Simple CLI tool to convert PDFs to dark mode, with TOC preservation

https://github.com/rngil/dark-pdf
1•rngil•3m ago•0 comments

BookShelves – Modern eBook reader and library manager for macOS and iOS

https://getbookshelves.app
1•janandonly•3m ago•0 comments

Openheim – open-source LLM agent in Rust (CLI, REPL, or HTTP server)

https://openheim.io
1•themartto•3m ago•0 comments

ClickHouse Native JSON Support in 2026: A PR-by-PR Analysis

https://dataanalyticsguide.substack.com/p/clickhouse-native-json-support-2026
1•manveerc•4m ago•0 comments

Spam – A Software PAckage Manager Utility

https://codeberg.org/aol/spam
1•iris-digital•5m ago•0 comments

What will be scarce? – by Alex Imas – Ghosts of Electricity

https://aleximas.substack.com/p/what-will-be-scarce
1•bilsbie•5m ago•0 comments

Opt-In Isn't a Guardrail

https://christophermeiklejohn.com/ai/zabriskie/agents/reliability/caucus/2026/04/14/opt-in-isnt-a...
1•azhenley•6m ago•0 comments

AI Resistance Is Growing

https://stephvee.ca/blog/artificial%20intelligence/ai-resistance-is-growing/
1•speckx•6m ago•0 comments

Agentic AI as a Part of Software Development

https://nemorize.com/roadmaps/agentic-ai-as-a-part-of-software-development
1•reverseblade2•7m ago•0 comments

Package Cooldown with SBOMs

https://www.interlynk.io/resources/cooldowns-with-sboms
2•surendrapathak•8m ago•0 comments

Trending projects from the GithubAwesome YouTube channel

https://mcowger.github.io/gha/
1•indigodaddy•9m ago•0 comments

More than 50% of young Dutch adults do not want children

https://nltimes.nl/2026/04/20/50-young-dutch-adults-want-children
3•randycupertino•9m ago•0 comments

How to make a video look much smoother, without increasing the file size?

https://www.seriousaboutech.com/2023/03/how-to-make-video-look-much-smoother.html
2•janandonly•12m ago•0 comments

Phones to be banned in schools by law in England under government plans

https://www.bbc.co.uk/news/articles/c5y7vd6gpq1o
2•mmarian•12m ago•0 comments

Over 200 Japanese firms have paid ransomware attackers; 60% fail to recover data

https://japantoday.com/category/crime/over-200-japanese-firms-paid-ransomware-attackers-60-fail-t...
1•xoxxala•12m ago•0 comments

IPv4, IPv6, and a sudden change in attitude (2020)

https://tailscale.com/blog/two-internets-both-flakey
1•frizlab•13m ago•0 comments

ASI-Evolve: AI Accelerates AI

https://arxiv.org/abs/2603.29640
1•Mars008•15m ago•0 comments

Git 2.54.0 Released

https://lwn.net/Articles/1068703/
2•kazu11max17•17m ago•0 comments

F-35 is a masterpiece built for the wrong war

https://warontherocks.com/cogs-of-war/the-f-35-is-a-masterpiece-built-for-the-wrong-war/
7•anjel•18m ago•2 comments

Waves and Particles

https://taylor.town/waves
3•birdculture•19m ago•1 comments

The Missing Bundler Features

https://byroot.github.io/ruby/bundler/2026/04/20/bundle-features.html
1•weaksauce•20m ago•0 comments

Show HN: Explain The Law – Simplified legislation and executive orders using AI

https://explainthelaw.com/
1•Nortey•21m ago•0 comments

OpenAI's Chronicles is basically what I open-sourced last week, to continue?

2•ainthusiast•22m ago•1 comments

About Homespring.cloud

https://homespring.cloud/about
1•mygrant•23m ago•1 comments

Three Time-to-Power Strategies That Failed in 2025

https://chrisgillett.org/three-failed-time-to-power-strategies
2•powermarketer•24m ago•0 comments

Sam Altman's World ID Expands Biometric Identity Checks

https://reclaimthenet.org/world-id-iris-scan-online-verification-expansion
3•uyzstvqs•27m ago•0 comments