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

TOML Schema

https://toml-schema.org/
1•pramodbiligiri•5m ago•0 comments

Show HN: Make every bug perfectly reproducible

https://workers.io/
2•chaitanyya•6m ago•0 comments

Coding a Brick Tower

https://www.youtube.com/watch?v=DAMiS2PGTEE
1•dvrp•12m ago•0 comments

Show HN: Self-hostable academic paper manager (linxiv)

https://github.com/linxiv-dev/linXiv
2•jeuribe•12m ago•0 comments

Brain-computer interface trials are taking off

https://www.technologyreview.com/2026/06/19/1139270/brain-computer-interface-trials-are-taking-off/
1•joozio•19m ago•0 comments

Ask HN: Will we start seeing tools for LLM use?

1•bonigv•23m ago•1 comments

Federal regulators order grid operators speed power2energy-hungry AI datacenters

https://apnews.com/article/power-electricity-ai-plants-data-centers-grid-506e3d206871111f15c3c62f...
1•latentframe•29m ago•0 comments

Show HN: A Context Brain for You (and Your AI Agent)

https://gcontext.ai
1•bsampera•35m ago•0 comments

GitHub Copilot and Dev Productivity: An Observational Dose-Response Analysis

https://arxiv.org/abs/2606.00438
1•theanonymousone•36m ago•0 comments

Britain Learned and Unlearned Nuclear

https://worksinprogress.co/issue/how-the-uk-learned-and-unlearned-nuclear/
2•leonidasrup•39m ago•0 comments

Möbius Chess

https://mchess.io/v/m%C3%B6bius/
1•modinfo•40m ago•0 comments

Show HN: Passport Stamp Archive, browse real border stamps from around the world

https://ajin.im/is/building/stamps/
4•poppypetalmask•42m ago•0 comments

Doom Composer Bobby Prince Has Died

https://www.engadget.com/2198098/doom-composer-bobby-prince-has-died/
2•naves•46m ago•0 comments

Open source alternative to brain by perplexity

https://github.com/raphaelwkago-sketch/rudi
1•w4mwati•48m ago•0 comments

Show HN: Autonomy – Self-Harness/Self-Directed AI Agent Core Under Development

https://autonomy-landing-page.vercel.app/
2•agentic_vector•49m ago•0 comments

How R&D Affects Absorptive Capacity

https://camerongordon0.substack.com/p/how-r-and-d-affects-absorptive-capacity
1•iciac•54m ago•0 comments

How Does Bluetooth Work?

https://www.bbc.co.uk/programmes/w3ct8k71
3•vismit2000•1h ago•0 comments

Show HN: Pytest-tia – run only the tests your Git diff affects, with receipts

https://github.com/breadMSA/pytest-tia
2•BreadWasEaten•1h ago•0 comments

I created an open source app to check if a photo is from an AI or a Camera

https://github.com/Wavesonics/C2PAVerify
2•Wavesonics•1h ago•1 comments

Is It Possible to Block Childrens' Access to Social Media? [video]

https://www.youtube.com/watch?v=2jJeSgO_MGo
2•dev_hugepages•1h ago•0 comments

How Russian President Vladimir Putin plans to live forever

https://www.vox.com/podcasts/491360/vladimir-putin-live-forever-26-billion-cryo-pigs-longevity-guru
6•thunderbong•1h ago•1 comments

Ask HN: Using OPA/Rego to secure MCP tool execution. Does it make sense?

4•wmolino•1h ago•0 comments

Show HN: AI Voice Generator for Creators

https://speakora.io/
2•laimingj•1h ago•0 comments

I made SHORT SQUEEZE, a finance movie trailer created with AI

https://www.instagram.com/reel/DZy5nOKN7Pz/
2•pyipeng•1h ago•0 comments

Mastodon 4.6 Released

https://lwn.net/Articles/1078466/
4•daesorin•1h ago•0 comments

Voxtral Realtime WebGPU – A Hugging Face Space by Mistralai

https://huggingface.co/spaces/mistralai/Voxtral-Realtime-WebGPU
2•fagnerbrack•1h ago•0 comments

Release 4.0.0 · HuggingFace/Transformers.js

https://github.com/huggingface/transformers.js/releases/tag/4.0.0
2•fagnerbrack•1h ago•0 comments

Big tech engineers need big egos

https://www.seangoedecke.com/big-tech-needs-big-egos/
4•fagnerbrack•1h ago•0 comments

Lisp in the Rust Type System

https://github.com/playX18/lisp-in-types/
4•quasigloam•1h ago•0 comments

Bevy 0.19

https://bevy.org/news/bevy-0-19/
4•paavohtl•1h ago•0 comments