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

MailBoy Send API Requests

https://github.com/alainnothere/mailBoy
1•xlayn•31s ago•1 comments

Gnutonium – Modern Terminal Gnutella Client (2026)

https://github.com/gnutonium/gnutonium
1•rickcarlino•1m ago•0 comments

Show HN: Modelpeers – a changelog for the AI models and agents you use

https://modelpeers.com
2•liorgrossman•1m ago•0 comments

Trump Accounts to Get SpaceX Shares from Shotwell in December

https://www.cnbc.com/2026/11/02/trump-accounts-spacex-shares-shotwell.html
1•bilsbie•4m ago•0 comments

What readers are reading: the 2026 US midterms

https://www.parse.ly/midterms-2026/
1•alexose•5m ago•1 comments

Physicists step closer to the 'Zeptoverse' after 42-year particle search

https://www.manchester.ac.uk/about/news/manchester-physicists-step-closer-to-the-zeptoverse-after...
1•geox•5m ago•0 comments

Show HN: RotateAd – A permanent web directory and banner exchange

https://rotate.ad/
1•irfanhasnani•7m ago•0 comments

Canva CEO's letter to staff: Major restructuring affecting 22% of employees

https://www.canva.com/newsroom/news/canva-team-update/
1•thedreammachine•7m ago•0 comments

Things I believed about coding agents

https://alonbochman.substack.com/p/seven-things-i-believed-about-coding
1•mooreds•8m ago•1 comments

Craft CMS 5.12.0: Added an authenticated HTTP MCP server

https://github.com/craftcms/cms/releases/tag/5.12.0
2•ashenke•8m ago•0 comments

Canva is announcing changes and layoffs affecting 22 percent of its staff

https://www.theverge.com/tech/1025971/canva-changes-layoffs
2•gbourne•9m ago•0 comments

The Netflix Crisis Isn't What It Seems [video]

https://www.theringer.com/podcasts/plain-english-with-derek-thompson/2026/10/30/the-netflix-crisi...
1•mooreds•10m ago•0 comments

Kitty 0.50.0

https://sw.kovidgoyal.net/kitty/changelog/#id1
2•birdculture•11m ago•0 comments

What a Compromised VS Code Extension Could Do Before You Write a Line of Code

https://octri.dev/blog/compromised-vs-code-extension
1•khalidkhair•11m ago•0 comments

EPSS versus CISA KEV on 204 exploited CVEs. And why CISA unusually won

https://www.handsomeboyscomputer.club/log/rappaport-2/
2•kravmaga999•12m ago•0 comments

Show HN: Export your Character.AI chats in minutes – open-source, runs locally

https://github.com/anima-universe/character-ai-chat-exporter
1•Amavie•13m ago•0 comments

Adamanteum: A local, MIT knowledge atlas your notes and any AI can both read

https://github.com/ohhbeehave35-commits/adamanteum-community
1•stingerindustri•13m ago•0 comments

Rotary Position Encodings for Graphs

https://idlemachines.co.uk/essays/rope-for-graphs
2•smaddrellmander•13m ago•0 comments

TLAPS-Bench: Formally Proving Correctness with TLA+ Proof System

https://arxiv.org/abs/2611.02849
1•matt_d•15m ago•0 comments

Linux Kernel Internals

https://kernel-internals.org/
1•mfiguiere•16m ago•0 comments

Harneo – a library for Claude Code skills, installed into any repo

https://github.com/ibrahimkobeissy/harneo
2•koubeissy_i•17m ago•0 comments

I'm 16 and built a tool for companies. What would make you trust it?

https://dermiozai.com/en
1•amir-dermioz•18m ago•1 comments

Free AI for Everyone

https://cloudy.chat
1•Armsn•20m ago•0 comments

Rowan Atkinson – Mr Bean – Electrical Engineer

https://en.wikipedia.org/wiki/Rowan_Atkinson
1•aanet•21m ago•1 comments

AI Replaces Tools,Not Worldviews:Why True Artistic Expression Won't Be Displaced

https://medium.com/@saitoken330/my-personal-views-on-ai-as-an-illustrator-661642e4ddc5
2•7kago_yomi•23m ago•1 comments

Trajectory on the Future of Coding

https://sirro.dev/trajectory
1•D3v-•25m ago•0 comments

Review anything that has a Wikipedia article

https://compend.org/
1•candylights•25m ago•1 comments

FlashProve: Zero-knowledge proofs of AI inference

https://github.com/anthropics/FlashProve
1•Lwrless•30m ago•0 comments

Nvidia is happy to take your money whether you're using open or closed models

https://www.theregister.com/ai-and-ml/2026/11/03/nvidia-is-happy-to-take-your-money-whether-youre...
4•jonbaer•32m ago•0 comments

DeepSeek Flash v4.1 Explained Through Harry Potter

https://statsig.substack.com/p/deepseek-flash-v41-explained-through
2•jonbaer•32m ago•0 comments