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

Beta Feedback – live video app where everyone watches one person at a time

1•Tutati_app•1m ago•0 comments

Google Photos Bulk Editing (Chrome Extension)

https://batchphotoedit.com/
1•levinyair•2m ago•0 comments

Facebook is paying people overseas promoting Alberta separatism

https://www.cbc.ca/news/canada/facebook-overseas-alberta-separtism-9.7223966
1•robtherobber•3m ago•1 comments

Show HN: GitHub Copilot port of Anthropic's AI vulnerability discovery harness

https://github.com/davidreis97/defending-code-reference-harness-copilot
1•dreis_sw•3m ago•0 comments

Show HN: Performative-UI – a react component library of design tropes

https://vorpus.github.io/performativeUI/
1•lizhang•4m ago•0 comments

Letting OpenClaw run wild in Simulation

https://veris.ai/blog/let-openclaw-run-wild-in-simulation
4•jrm-veris•4m ago•0 comments

SWE Marathon

https://www.swe-marathon.org/
1•AlexClickHouse•5m ago•0 comments

Lawmakers Abandon Trump on Warrantless Wiretapping

https://www.wsj.com/politics/policy/trump-faces-bipartisan-backlash-over-spy-bill-as-deadline-loo...
1•LostMyLogin•6m ago•0 comments

404NOT403 – HTTP forensic scanner and URL change monitor

https://404NOT403.com
1•psiloconvalley•6m ago•0 comments

Show HN: I built a Fujifilm X-mount lens database across 10 brands

https://atlens.app/en/lenses/x/browse
1•sentacraft•8m ago•0 comments

How many consecutive hyphens can you have in a domain name?

https://shkspr.mobi/blog/2026/06/how-many-consecutive-hyphens-can-you-have-in-a-domain-name/
1•Brajeshwar•8m ago•0 comments

SoulsOnly.tff – A font for humans not AI and keyboard firmware to type in it

https://github.com/convictional/souls-only
2•billtarbell•9m ago•1 comments

Show HN: Guestlist – know which sites will let your agent in

https://guestlist.tools
1•felix_myuk•10m ago•0 comments

DStudio – local DeepSeek V4 with a design studio, reachable from your phone

https://github.com/sk8erboi17/DStudio
1•peppve•12m ago•0 comments

Poor Man's Time Machine: Lazy Evaluation in JavaScript and Haskell

https://irfanali.org/blog/repmin
1•sayyadirfanali•12m ago•0 comments

Terrorpop, a Manifesto

https://maddisonstoff.neocities.org/terrorpop
1•speckx•13m ago•1 comments

Show HN: Kronotop – A distributed multi-model database built on FoundationDB

https://github.com/kronotop/kronotop
1•mastabadtomm•15m ago•0 comments

Show HN: A better event emitter that works in browser and server

https://github.com/Lucas127128/better-event
1•lucas127128•18m ago•0 comments

Toxic Ground: Inside Oklahoma's Oil Field Wastewater Crisis

https://www.propublica.org/article/toxic-ground-how-oil-field-pollution-is-threatening-oklahoma
1•speckx•22m ago•0 comments

Multica: Orchestrating business agents like a real leadership team

https://multica.ai/
1•wagnermb•28m ago•0 comments

Demographic and Job Characteristics of the California Security Guard Workforce

https://laborcenter.berkeley.edu/demographic-and-job-characteristics-of-the-security-guard-workfo...
1•PaulHoule•29m ago•0 comments

Custom Allocators in Rust

https://nical.github.io/posts/rust-custom-allocators.html
1•tcfhgj•30m ago•0 comments

Pay the Subscription Fee (2026)

https://mikkolaksola.com/pay-the-subscription-fee/
1•fs0c13ty00•31m ago•1 comments

AgentTrust ID – Runtime authorization for AI agents (open-source SDKs)

https://agenttrust.id/blog/agenttrust-id-is-live
1•yaimavaldivia•32m ago•0 comments

EVs are getting more affordable worldwide – except in the U.S.

https://restofworld.org/2026/iea-global-ev-outlook-us-sales-drop/
2•speckx•33m ago•0 comments

Show HN: Background Be Gone – Free App and CLI for Bg Removal on Mac

https://bgbgone.franzai.com
2•franze•33m ago•3 comments

Launch HN: Intuned (YC S22) – Build and run reliable browser automations as code

https://intunedhq.com
30•fkilaiwi•34m ago•6 comments

I wish Deno would keep doing what it does best

https://hackers.pub/@hongminhee/2026/i-wish-deno-would-keep-doing-what-it-does-best
4•dahlia•35m ago•1 comments

Ntfy.sh – Send push notifications to your phone via PUT/POST

https://ntfy.sh/
1•janandonly•35m ago•1 comments

Boy's brain tumor tied to gene therapy

https://www.science.org/content/article/boy-s-brain-tumor-tied-gene-therapy
2•Ralfp•35m ago•0 comments