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

A Socratic coach for competitive programming

https://chromewebstore.google.com/detail/socratic-algo-coach/inppdfdpenccjiggnlfaomfnckadoaoi
1•boriskurikhin•1m ago•1 comments

Looking back on Servo's first donation-funded role

https://servo.org/blog/2026/09/15/one-year-of-sponsorship/
1•luu•1m ago•0 comments

Show HN: Check an NPM package or MCP server for malicious code before install

https://bouncer.run/check
1•nader•2m ago•0 comments

The first ever API built for dictation;Today we're launching the Dictation API

https://www.assemblyai.com/dashboard/login
1•iharnoor•3m ago•1 comments

There are no optical corrections in the Parthenon

https://doi.org/10.1098/rsos.260999
1•yzydserd•3m ago•0 comments

I wrote a kill number before I wrote the landing page copy

https://deskthaw.com/blog/preorder-mechanics/
1•aaaan•5m ago•1 comments

A software thing I built: GPS on a 25MHz 486-SX

https://forum.vcfed.org/index.php?threads/a-software-thing-i-built-gps-on-a-25mhz-486-sx.1258966/
1•JPLeRouzic•8m ago•1 comments

I built dual cam app because I had credits left and didn't know what else to do

https://play.google.com/store/apps/details?id=app.heynomad.camera.dualshot.creator.ai&hl=en
1•yugendhar•9m ago•1 comments

Noise-Coded Illumination for Forensic and Photometric Video Analysis

https://arxiv.org/abs/2507.23002
1•1e1a•10m ago•0 comments

Show HN: HTMLCATS – Editor-First Learning for HTML, CSS, and JavaScript

https://htmlcats.com/
1•chriskkim•12m ago•0 comments

Fusion in Devin Desktop and CLI

https://cognition.com/blog/local-fusion
1•ludovicianul•13m ago•0 comments

Show HN: Makerpa.ge – project hub and syncing badge across your sites

https://makerpa.ge
1•leon2589•13m ago•0 comments

IOS27 removes feature to hide Safari what should we do?

1•robglick•13m ago•0 comments

Is Jev That Good?

https://twitter.com/completeskeptic/status/2099925682726002904
1•bchelli•14m ago•0 comments

Dan Selsam's Personal Statement on AI Risk

https://www.reddit.com/r/singularity/comments/1wgibs1/ai_2027_author_daniel_kokotajlo_tweets_mess...
1•dwaltrip•15m ago•0 comments

Where Prediction Markets Struggle

https://economist.com/graphic-detail/2026/09/10/where-prediction-markets-struggle
1•andsoitis•20m ago•0 comments

The AI Language We Can't Read: Neuralese [video]

https://www.youtube.com/watch?v=iuHddnIzKRA
1•__vivek•22m ago•0 comments

Tesla Full Self-Driving customers can now access lower insurance premiums

https://www.drive.com.au/news/tesla-full-self-driving-customers-can-now-access-lower-insurance-pr...
5•teleforce•32m ago•1 comments

Continual Learning Mechanisms Compose for Long-Horizon Memorization

https://arxiv.org/abs/2609.06986
2•donk8r•32m ago•0 comments

Are you committed to your company or your team?

https://www.economist.com/business/2026/09/10/are-you-committed-to-your-company-or-your-team
2•andsoitis•32m ago•0 comments

Sam Altman says world 'right to be afraid' but 'should trust' AI firms

https://www.bbc.com/news/articles/cqx2zpj4y525o
3•geox•33m ago•1 comments

Show HN: Glu – installing Homebrew packages 2x faster on macOS

https://glu.run/
2•henrikklee•37m ago•1 comments

China would face a "hellscape" in a war over Taiwan

https://www.economist.com/asia/2026/09/15/china-would-face-a-hellscape-in-a-war-over-taiwan
4•andsoitis•37m ago•1 comments

Ex-Google DeepMind researcher adds to warnings that AI could 'kill all humans'

https://www.reuters.com/technology/ex-google-deepmind-researcher-adds-warnings-that-ai-could-kill...
1•eth0up•37m ago•0 comments

Bashka – static analyzer for bash install scripts (for safety and convenience)

https://github.com/dmtrKovalenko/bashka
1•neogoose•40m ago•1 comments

Ridiculous deals as store leaves website open for the public to edit

https://www.stuff.co.nz/nz-news/361034088/chaos-after-auckland-store-leaves-website-open-public-edit
2•timack•41m ago•3 comments

Show HN: Open-source tab and bookmark organizer for Chrome and Edge

https://github.com/ringlochid/leotabs
2•ringlochid•41m ago•1 comments

PatchWing – verified, reproducible fixes for known CVEs (bring your own model)

https://github.com/jaymunshi/patchwing
3•jaymunshi•44m ago•2 comments

Massie launches effort to impeach Hegseth

https://thehill.com/homenews/house/6090661-thomas-massie-pete-hegseth-impeachment-iran/
5•eth0up•45m ago•0 comments

Show HN: ForcePush – Commits vs. Push-Ups

https://forcepush.fit/
3•thedevtimeline•52m ago•1 comments