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

Story of How Im Running an Unlimited $6/Month AI Provider on 4x RTX 3090s

1•yolo-auto•40s ago•0 comments

World Models and the Emergence of a "First-Person" Perspective in an AI [video]

https://www.youtube.com/watch?v=2nQSoiC5VHs
1•mojuba•2m ago•0 comments

Frontier AI companies will never exceed the capability frontier again

https://andrewtrask.substack.com/p/breaking-todays-frontier-ai-companies
2•williamtrask•7m ago•0 comments

OpenAI hit with multistate probe into possible user harm as its IPO looms

https://www.yahoo.com/news/politics/articles/openai-hit-multistate-probe-possible-191744135.html
2•1vuio0pswjnm7•8m ago•0 comments

AP Transit – A lightweight 3D real-time NYC subway and PATH map

https://aptransit.co/
1•UnitedOfTransit•9m ago•0 comments

Git merges can be better

https://brandondong.github.io/blog/git_merges_can_be_better/
1•brandon_bot•12m ago•0 comments

New Documents Detail Nine-Figure, Silicon Valley–Funded "Abundance Movement"

https://prospect.org/2026/06/12/new-documents-detail-nine-figure-silicon-valley-funded-abundance-...
2•slater•17m ago•0 comments

Extinction-Level Capitalism

https://matthewbutterick.com/extinction-level-capitalism.html
2•csbartus•18m ago•0 comments

Phoenix LiveView 1.2 Released

https://phoenixframework.org/blog/phoenix-liveview-1-2-released
1•ksec•18m ago•0 comments

Show HN: I made a crossword (Motplot) to stop losing bananagrams to my grandma

https://motplot.app/
1•jamwise•18m ago•0 comments

Quick: An internal hosting platform for the AI era

https://shopify.engineering/quick
1•ksec•20m ago•0 comments

Forked TensorZero after it was archived after raising $7.3M

https://github.com/agentify-sh/gateway
1•agentifysh•28m ago•0 comments

Initial Results on Legal Agent Benchmark

https://twitter.com/gabepereyra/status/2059320727988224128
1•gmays•32m ago•0 comments

Show HN: Agent Gate – a deterministic CI firewall for AI-generated PRs

https://github.com/sjh9714/Agent-Gate
1•sjh9714•33m ago•0 comments

Design Engineer at Solve Intelligence

https://foundersarehiring.com/job/on-site/design-engineer-6a2bbb90fd4cdebe8c4ed02f
1•niksmac•34m ago•0 comments

Co-Founder Honch

https://www.honch.io/
2•Raeedzz•35m ago•1 comments

Hi HN: Loopy agent, meta-loop engineer my Claude Code and codex sessions

https://github.com/secretbuilds/loopy
1•secretbuilds•49m ago•1 comments

Pac-Man, but You're the Ghost

https://garrit.xyz/posts/2026-06-13-pac-man-but-you-re-the-ghost
5•mindracer•53m ago•1 comments

Ask HN: Do you buy the domain first or build first then domain?

1•akashwadhwani35•53m ago•0 comments

PeopleSoft 0-day affecting organizations steals gigabytes of data

https://arstechnica.com/security/2026/06/peoplesoft-0-day-affecting-hundreds-of-organizations-ste...
2•geoffbp•57m ago•0 comments

Track tokens usage and AI Subscriptions across major AI platforms

https://www.tokens4breakfast.app
1•1Kapish•1h ago•1 comments

Software Architecture Guide

https://martinfowler.com/architecture/
11•laxmena•1h ago•1 comments

Show HN: Winamp's Geiss and Milkdrop ported to WebGL

https://milkbar.fm/
2•vlbeta•1h ago•0 comments

OmniCloud is a full-stack cloud drive aggregation platform

https://github.com/dimartarmizi/OmniCloud
1•tonyhart7•1h ago•0 comments

Free SQL→ER diagram tool, runs in the browser, nothing uploaded

https://sqltoerdiagram.com/
4•robhati•1h ago•2 comments

Show HN: I created a simple searchable list of abandoned WordPress Plugins

https://vimsy.io/plugin-graveyard
2•arximughal•1h ago•0 comments

Running Out of Context? No More

https://github.com/shrey1110-dotcom/CLAUDE_API_SAVER
1•otto_api•1h ago•0 comments

AAD-50: multi-cycle NVMe sanitize with per-cycle hardware verification

https://github.com/yonasabeselom/aad50
1•yonasabeselom•1h ago•0 comments

UK announces $1.5B AI infrastructure plan

https://www.reuters.com/world/uk/uk-sets-out-15-billion-ai-hardware-plan-with-supercomputer-chip-...
3•Soumya_Max•1h ago•2 comments

What old technology do you still use regularly?

2•Soumya_Max•1h ago•5 comments