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

Explore decision models in one place with Decisions API

https://decisions-api.dev
2•QingWu•6m ago•1 comments

AI training of copyrighted material not fair use: Third Circuit

https://www.courthousenews.com/ai-training-of-copyrighted-material-not-fair-use-third-circuit/
2•reasonableklout•8m ago•0 comments

My website runs a curated RSS feed of critical film finance news

https://home.danieldeboulay.com/#essays
1•freedmans•8m ago•1 comments

OpenAI cuts ties with 3 safety researchers

https://techcrunch.com/2026/10/01/openai-cuts-ties-with-three-safety-researchers-wsj-reports/
2•KingOfCoders•10m ago•0 comments

List your SaaS in this free directories and get more visibility

https://goodsaas.xyz/blog/top-free-saas-directories-2026
1•agnes_realm•17m ago•0 comments

Designing Neki for Performance

https://planetscale.com/blog/designing-neki-for-performance
1•hisamafahri•17m ago•0 comments

Removing Timing Shortcuts Improves Non-Invasive Brain-to-Text

https://arxiv.org/abs/2609.40359
2•sbulaev•19m ago•0 comments

ImageGen: Local AI image generation for Mac with Qwen-Image 2.1

https://github.com/ph1lb4/imagegen-mac
1•tosh•20m ago•0 comments

Write_On by Jason Fried

https://twitter.com/jasonfried/status/2105403067793584590
1•gholap•23m ago•0 comments

NetBSD on My Netbook

https://movq.de/blog/postings/2026-09-18/0/POSTING-en.html
1•networked•23m ago•0 comments

WSLC Architecture Deep Dive

https://devblogs.microsoft.com/commandline/wslc-architecture-deep-dive/
1•taubek•23m ago•0 comments

AI upscaling is coming to PS5

https://blog.playstation.com/2026/10/01/ai-upscaling-is-coming-to-ps5/
3•thibautg•26m ago•0 comments

Bryan Cantrill: Keynote (RustConf2026): Rust, in Sickness and in Health [video]

https://www.youtube.com/watch?v=3kbPyuAtk7g
1•mfrw•27m ago•0 comments

A lack of rockets is creating a crisis for space technology companies

https://www.newscientist.com/article/2591502-a-lack-of-rockets-is-creating-a-crisis-for-space-tec...
1•ryzvonusef•29m ago•1 comments

Show HN: Mixdog – open-source coding agent for Windows desktop

https://github.com/tribgames/mixdog
2•tempest1033•29m ago•0 comments

Decode what's behind a QR code, useful for retrieving wi-fi passwords

https://www.qrexpress.org/decoder/
1•levario•29m ago•0 comments

Sukumar Sen and India's First Election

https://www.rabbitholes.garden/posts/2026-10-02-sukumar-sen-and-indias-first-election/
1•rrampage•29m ago•0 comments

Show HN: Fantasy Walk – A cozy walking RPG for Android

https://fantasy-walk.app/
1•stormqueen•30m ago•3 comments

I Don't Remember the Last Time I Checked Mastodon

https://kevquirk.com/i-dont-remember-the-last-time-i-checked-mastodon
2•mindracer•30m ago•0 comments

The hard part of an editable table is knowing what changed

https://kanunilabs.com/blog/editable-table-knowing-what-changed
2•hizlikovboy27•33m ago•0 comments

Griffin, the first model to pass the video Turing test

https://twitter.com/tavus/status/2105704169009246248
1•taubek•33m ago•0 comments

Dotfiles – Mise-En-Place

https://mise.jdx.dev/dotfiles.html
2•kstrauser•37m ago•1 comments

OpenDots

https://github.com/CopilotKit/OpenDots
2•soltanov•39m ago•0 comments

Stages of grief about the effect of AI on open source

https://twitter.com/awesomekling/status/2105814628785934386
3•tosh•40m ago•2 comments

Rust in the kernel? What about Rust without the kernel

https://kerkour.com/rust-kernel
1•olalonde•43m ago•0 comments

Show HN: AviGPT-250M – Edge SLM with NVMe memory bus (488MB, runs offline)

https://github.com/Avinashricky211/AviGPT-250M
1•AvinashRicky•44m ago•0 comments

Metadata Reactor – image metadata for 11 platforms

https://metadatareactor.com/
1•nationalsun•46m ago•0 comments

Thoughts on Languages from 2000's

http://blog.gmarceau.qc.ca/2009/05/speed-size-and-dependability-of.html
1•mahirsaid•46m ago•0 comments

Show HN: Run Google DataProc cluster on your local

https://local.cloud/blog/run-dataproc-locally-docker/
1•jaysen_apache•48m ago•0 comments

The Empire State Building's Mooring Mast

https://www.onverticality.com/blog/empire-state-mooring-mast
3•thunderbong•48m ago•0 comments