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

Show HN: Civie. Anonymous daily civic questions. (civie.org)

https://www.civie.org/
1•gucduck•18s ago•0 comments

Liberty Ad Resistance

https://mattgemmell.scot/liberty-as-resistance/
1•theraven•37s ago•0 comments

Shelley Is a Coding Agent

https://github.com/boldsoftware/shelley
1•tosh•1m ago•0 comments

Will They Inherit Our Blogs?

https://kevquirk.com/blog/will-they-inherit-our-blogs/
1•cyanbane•1m ago•0 comments

Show HN: Askfeather.ai – Professional Class AI Tax Assistant

https://askfeather.ai
1•sokratisv•2m ago•0 comments

The Cost of Leaving a Software Rewrite "On the Table"

https://blog.planetargon.com/blog/entries/the-cost-of-leaving-a-software-rewrite-on-the-table
1•robbyrussell•2m ago•1 comments

Show HN: Ozor.ai – Create launch-ready videos from a single prompt

https://www.ozor.ai/
2•Martinmm•4m ago•0 comments

OpenClaw (a.k.a. Moltbot) Is Everywhere All at Once, and a Disaster

https://cacm.acm.org/blogcacm/openclaw-a-k-a-moltbot-is-everywhere-all-at-once-and-a-disaster-wai...
2•Beeroness•4m ago•0 comments

Mitchell Hashimoto considering closing external PRs to his OSS projects

https://twitter.com/mitchellh/status/2018458123632283679
1•ForgotIdAgain•5m ago•0 comments

Show HN: A mini-metro inspired game involving dollar-based economics too

https://championswimmer.in/metromap.io/
1•championswimmer•6m ago•0 comments

The Map that wants to be True

https://claudepress.substack.com/p/the-map-that-wants-to-be-true
1•paoladim•7m ago•0 comments

Open-sourcing a practical RAG system built on RAPTOR, HyDE, and reranking

https://github.com/incidentfox/OpenRag
1•ly07•7m ago•1 comments

Show HN: Our AI agent 'Collison Installs' your SDK in customers codebases [video]

https://www.youtube.com/watch?v=htNYJBNcL9s
1•daibhin•8m ago•0 comments

Sera-14B Coding Model

https://twitter.com/allen_ai/status/2018741177734910166
1•tosh•8m ago•0 comments

China is banning hidden electric door handles for EVs

https://www.theverge.com/transportation/873039/china-ban-hidden-tesla-door-handles-january-2027
1•voxadam•9m ago•0 comments

Show HN: Openwhiteclaw AI agents for people who think GitHub is a fitness app

https://openwhiteclaw.com/
1•beeeenorm•10m ago•0 comments

BranchFS is a FUSE-based filesystem enables speculative branching for AI agents

https://github.com/multikernel/branchfs
1•wang_cong•10m ago•1 comments

Moltipass – a client for human users of Moltibook

https://blog.fsck.com/2026/01/30/moltipass/
1•arittr•10m ago•0 comments

How to Speed Up the Search for Cures Through a Change in Probability Theory

https://reason.com/2026/02/03/how-to-speed-up-the-search-for-cures-through-a-change-in-probabilit...
1•mhb•10m ago•0 comments

When Not to Learn: Risk-Sensitive Abstention in Bandits with Unbounded Rewards

https://www.alphaxiv.org/abs/2510.14884
1•measurablefunc•10m ago•0 comments

Latent Space Engineering

https://blog.fsck.com/2026/01/30/Latent-Space-Engineering/
1•arittr•10m ago•0 comments

Show HN: Clawdstrike – a security toolbox for the OpenClaw ecosystem

https://github.com/backbay-labs/clawdstrike
3•backbay-machine•11m ago•0 comments

Bay Area's giant 550-mile trail could earn same status as Pacific Crest Trail

https://www.sfchronicle.com/outdoors/article/bay-area-ridge-trail-scenic-designation-21322636.php
1•aanet•12m ago•0 comments

Show HN: MyNextCamp – Search 500 beach volleyball camps in one place

https://mynextcamp.io
1•SvaleDrea•13m ago•0 comments

Resident Evil 2 for the N64 Kept Its FMV Cutscenes

https://hackaday.com/2026/02/03/how-resident-evil-2-for-the-n64-kept-its-fmv-cutscenes/
1•mcraiha•13m ago•0 comments

OpenClaw SaaS

1•mikemilla•14m ago•2 comments

Databricks' Serverless Database

https://venturebeat.com/data/databricks-serverless-database-slashes-app-development-from-months-t...
1•shenli3514•14m ago•0 comments

Duke Nukem 3D 30th Anniversary Tribute [video]

https://www.youtube.com/watch?v=70mZq8bUStw
1•GeoAtreides•15m ago•0 comments

Your Codebase Is the Prompt

https://blog.exe.dev/codebase-as-prompt
1•tosh•16m ago•0 comments

superfly/tokenizer: HTTP proxy that injects 3rd party credentials into requests

https://github.com/superfly/tokenizer
2•tosh•20m ago•0 comments