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

Isomorphic Collapse of Primorial Modulus- Bypassing Arithmetic in Cryptanalysis

https://zenodo.org/records/22840364
1•GeometryKernel•4m ago•0 comments

Dashes suggest which model you're copy-pasting from

https://will-keleher.com/posts/your-dashes-suggest-which-model-youre-copy-pasting-from/
1•vismit2000•4m ago•0 comments

USB 3 Speeds Come to a Non-Pro iPhone

https://pxlnv.com/blog/usb-3-speeds-finally-come-to-a-non-pro-iphone/
1•robbiet480•6m ago•0 comments

Reality Is the Final Verifier: On Two Key Gaps in Agentic Software Engineering

https://arxiv.org/abs/2609.12039
1•matt_d•7m ago•0 comments

The Destruction of the Scottish Canon

https://asteriskmag.com/issues/15/the-destruction-of-the-scottish-canon
1•barry-cotter•10m ago•1 comments

OpenAI expects to burn $280B by 2030

https://www.ft.com/content/6011d061-eee3-4193-b3b7-8ee4155f538c
2•JumpCrisscross•11m ago•0 comments

Left Brain, Right Brain: Facts and Fantasies

https://pmc.ncbi.nlm.nih.gov/articles/PMC3897366/
1•diwank•14m ago•0 comments

Static site generator for Ghost CMS

https://github.com/SimonMo88/ghost-static-site-generator
1•Curiositry•19m ago•0 comments

Teaching Fractions According to the Common Core Standards(2011) [pdf]

https://math.berkeley.edu/~wu/CCSS-Fractions_1.pdf
1•o4c•24m ago•0 comments

Why You Can't Overcook Mushrooms and the Science Behind Them [video]

https://www.youtube.com/watch?v=XLPLCmwBLBY
2•thunderbong•24m ago•0 comments

Bringing Back Caesar IV Online

https://xetera.dev/article/bringing-back-caesar-iv-online
1•xetera•26m ago•0 comments

Inventor of ChatGPT and RLHF Launches Typesafe.ai

https://techcrunch.com/2026/09/18/a-new-kind-of-ai-model-from-a-chatgpt-inventor-is-thrilling-dev...
2•ryan_j_naughton•28m ago•0 comments

NASA's Moon Orbiter Spots New, 'Once-in-Century' Moon Crater

https://science.nasa.gov/solar-system/moon/nasas-moon-orbiter-spots-new-once-in-century-moon-crater/
2•wglb•37m ago•0 comments

Executive order on H-1B nonimmigrant visa administration

https://www.whitehouse.gov/presidential-actions/2026/09/enhancing-program-integrity-and-integrity...
6•anigbrowl•43m ago•7 comments

A more sober look at the HuggingFace incident

https://www.wsj.com/opinion/the-hugging-face-hack-wasnt-what-it-was-cracked-up-to-be-e00cf3fa
2•paulpauper•43m ago•0 comments

AI Regulation and the China Question

https://casssunstein.substack.com/p/ai-regulation-and-the-china-question
3•paulpauper•44m ago•1 comments

ASI risk debate with Nate Soares [video]

https://www.youtube.com/watch?v=OhOmLqR5nN4
2•paulpauper•46m ago•0 comments

Show HN: GGG – A local-first, zero-telemetry sovereign proxy daemon for AI tools

https://github.com/JOxKxER/garza-global-graviton
2•joxkxer•50m ago•0 comments

Curves on Potatoes

https://mathoverflow.net/questions/363950/curves-on-potatoes
1•maxall4•56m ago•0 comments

Is Dan Ariely Telling the Truth?

https://chronicleofhighereducation.substack.com/p/is-dan-ariely-telling-the-truth
1•mhb•59m ago•0 comments

Flock Offers Employees Buyouts as Customers Flee

https://www.wired.com/story/flock-is-offering-voluntary-buyouts-to-employees/
7•ent101•1h ago•0 comments

Why People Are Sabotaging Flock Surveillance Cameras

https://www.nytimes.com/2026/09/18/opinion/flock-cameras-ai-privacy.html
1•trinsic2•1h ago•3 comments

I accidentally created a mini-Jev and you can too

https://medium.com/@gouravd_61431/i-accidentally-created-a-mini-jev-for-splitting-expenses-and-yo...
1•das_vicky•1h ago•0 comments

Fly-paradise: Fruit flies on your Windows desktop

https://github.com/pyd021226/fly-paradise
1•csmantle•1h ago•0 comments

SDCC – Small Device C Compiler

https://sdcc.sourceforge.net/
19•lioeters•1h ago•2 comments

Swarm_ethics.txt

https://www.guidavid.com/writing/autopoietic-ethics-constitution.txt
1•gdss•1h ago•0 comments

Managers Are Catalysts

https://laughingmeme.org/2026/09/14/managers-are-catalysts.html
1•mavelikara•1h ago•0 comments

Opus 5 has a Noun Problem

https://www.reddit.com/r/ClaudeCode/comments/1wk0s2i/opus_5_has_a_noun_problem/
3•nonethewiser•1h ago•1 comments

Science Is Open Software

https://jepedersen.dk/blog/202505_research/
28•jegp•1h ago•13 comments

Show HN: LaTeX to Image Converter – Free PNG, SVG and JPG

https://latextoimg.com
1•light001•1h ago•0 comments