frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

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

Unsloth Desktop

https://unsloth.ai/docs/desktop
1•pentagrama•2m ago•0 comments

Laurie Anderson's manuscript to be locked away for 88 years in Future Library

https://www.theguardian.com/books/2026/aug/29/laurie-anderson-manuscript-88-years-future-library-...
1•mitchbob•2m ago•0 comments

Phaseonebig: Message Board for Agents

https://phaseonebig.com/
1•fmarasho•3m ago•0 comments

Focal.vc

https://focal.vc
1•audreyfei•5m ago•0 comments

Git3 – Use an S3 bucket as a Git remote

https://github.com/robertpitt/git3
3•robertpitt•7m ago•0 comments

Minimax H3 Max Live – An infinite broadcast is generated by the chat

https://www.twitch.tv/koumpas
2•amrrs•8m ago•0 comments

The Rise and Fall of Agent Civilizations

https://www.dwarkesh.com/p/openai-huggingface
2•consumer451•10m ago•0 comments

Ask HN: How do you handle the yearly 5% price increases of SaaS subscriptions?

2•hbarka•13m ago•1 comments

Speech to text in a crowded room with the OpenAI Realtime API

https://trpevski.com/blog/voice-assistant-noisy-environments-openai-realtime
1•gorillax•21m ago•1 comments

38% of Hugging Face Spaces are permanently broken; linked GitHub repos are fine

https://github.com/ashishsinha1602/dataset-integrity-audit
1•sinhaashish4u•21m ago•0 comments

New Chinese surveillance leaves foreigners nowhere to hide

https://www.dw.com/en/new-chinese-surveillance-leaves-foreigners-nowhere-to-hide/a-77246713
3•pir8life4me•23m ago•0 comments

How cats.txt showed llms.txt evidence is GEO astrology

https://markwilliamscook.substack.com/p/how-catstxt-showed-llmstxt-evidence
2•birdculture•24m ago•0 comments

FBI Disrupts Chinese Proxy Tools Used in Mass Hacking of US Agencies and Infrast

https://www.wired.com/story/fbi-disrupts-chinese-proxy-tools-used-in-mass-hacking-of-us-agencies-...
3•pir8life4me•24m ago•1 comments

Open Battery Information

https://github.com/mnh-jansson/open-battery-information
1•toomuchtodo•26m ago•1 comments

Highest-ever ocean temperature measured as powerful El Niño forms

https://www.latimes.com/environment/story/2026-08-26/highest-ever-ocean-temperature-measured-as-p...
9•measurablefunc•27m ago•1 comments

OpenContext – Persistent, project-local memory for AI coding agents via MCP

https://www.opencntx.dev/
2•slxca•29m ago•0 comments

Police departments weren’t looking for Flock abuse. We did it for them.

https://www.washingtonpost.com/technology/2026/08/19/we-found-cops-who-misused-flock-their-police...
4•dataflow•31m ago•0 comments

Full-Bandwidth Transformer

https://arxiv.org/abs/2608.08888
1•gmays•32m ago•0 comments

When AI Writes the Code Verification Is the New Implementation

https://sarpex.com/2026/08-verification-is-the-new-implementation
1•TheSorcerer•33m ago•0 comments

The Foothills Of Bay Area House Party

https://www.astralcodexten.com/p/the-foothills-of-bay-area-house-party
2•andromaton•36m ago•1 comments

Lawmakers added $1 to car insurance policies. That money paid for Flock cameras

https://www.texastribune.org/2026/08/28/texas-flock-cameras-auto-insurance-fee-mvcpa-grants/
5•DeepLogin•36m ago•1 comments

Lion-man – the oldest confirmed statue ever discovered

https://en.wikipedia.org/wiki/Lion-man
1•gurjeet•36m ago•0 comments

Sean Minhui Tashi Chua on Polar Data and Creative Expression

https://rendahmag.com/article/sean-minhui-tashi-chua
1•toomuchtodo•38m ago•0 comments

I co-founded Burning Man. The festival has lost its soul

https://sfstandard.com/2026/08/29/burning-man-lost-its-soul-founder/
23•lisper•41m ago•7 comments

Meghalayan – The Latest Geologic Age

https://en.wikipedia.org/wiki/Meghalayan
1•gurjeet•42m ago•0 comments

How Big Tech Blinded Itself to the Grassroots AI Revolt

https://www.wsj.com/tech/ai/how-big-tech-blinded-itself-to-the-grassroots-ai-revolt-cb6f5715
2•dnw•42m ago•0 comments

People Are Doing Something Strange and Illegal with the Epstein Files

https://slate.com/technology/2026/02/epstein-files-digital-piracy-trump-doj.html
2•pir8life4me•43m ago•0 comments

My Tasks – a to-do app that works offline

https://play.google.com/store/apps/details?id=com.zakomania.todoapp&hl=en_US
1•zakomaniac•47m ago•0 comments

Show HN: VibeGuard – security linter for AI-generated code

https://github.com/zeroFhacker/vibeguard
1•obadafid•50m ago•0 comments

Why do borrowers make mortgage refinancing mistakes? [pdf]

https://www.econstor.eu/bitstream/10419/96658/1/74522380X.pdf
1•toomuchtodo•50m ago•0 comments