frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•7mo ago

Comments

trbndev•7mo 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•7mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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

SQL IDE that converts data views into MCP tools

https://docs.pylar.ai/introduction/what-is-pylar
1•Hoshang07•4m ago•0 comments

Adobe Brings Photoshop, Express and Acrobat Features to ChatGPT

https://techcrunch.com/2025/12/10/adobe-brings-photoshop-express-and-acrobat-features-to-chatgpt/
1•kachinga123•4m ago•0 comments

GCHQ Christmas card 2025 sets annual festive challenge

https://www.bbc.co.uk/news/articles/c04vgn6xlzno
1•ColinWright•5m ago•0 comments

Show HN: Rifler – A file search extension that brings JetBrains search to VSCode

https://marketplace.visualstudio.com/items?itemName=Ori-Roza.rifler
1•ori75660•6m ago•0 comments

Taxing Growth

https://www.equitileconversations.com/2459100/episodes/18312924-taxing-growth
3•Incerto•6m ago•0 comments

Replacing Next.js ISR with a custom Cloudflare cache layer

https://www.mintlify.com/blog/page-speed-improvements
1•gk1•7m ago•0 comments

Simple supplement mix shows remarkable results in brain cancer

https://www.sciencedaily.com/releases/2025/12/251209043050.htm
1•OutOfHere•7m ago•0 comments

Climate Nobel Prize – A Nobel Prize for Climate and Planetary Health

https://climatenobelprize.org/
1•N19PEDL2•8m ago•0 comments

Hamas hid tons of baby formula to damage Israel with starvation claims

https://nypost.com/2025/12/09/world-news/hamas-hid-tons-of-baby-formula-to-damage-israel-with-sta...
6•mhb•11m ago•1 comments

My First Language Front End with LLVM Tutorial

https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html
1•hybridtupel•11m ago•0 comments

Aphantasia Is Not an Advantage in Long-Term Abuse

https://zenodo.org/records/17692334
1•MyResearch•12m ago•1 comments

A beginners' guide away from scanf()

https://sekrit.de/webdocs/c/beginners-guide-away-from-scanf.html
1•pykello•12m ago•0 comments

CUDA to cuTile transpiler for Nvidia's CUDA 13.1

https://github.com/RightNow-AI/RightNow-Tile
1•rncode•14m ago•1 comments

How do you get more exposure for your open-source project?

https://github.com/Chrilleweb/dotenv-diff
3•chrilleweb•17m ago•2 comments

Ask HN: When is the last time you wished the docs were in a single file?

1•tonyaldon•18m ago•0 comments

1…765432100 – Unix Time Sequence Holiday on December 11

1•sampaio96•18m ago•0 comments

ReScript 12

https://rescript-lang.org/blog/release-12-0-0/
1•ocamoss•19m ago•0 comments

Show HN: Gedcom-SVG-tree – client-side GEDCOM → SVG genealogy tree visualizer

https://github.com/ameros/gedcom-svg-tree
1•ameros•19m ago•0 comments

Brett Cooper values independent thought on Trump and more

https://figyj.blogspot.com/2025/12/brett-cooper-values-independent-thought.html
1•FIGYJ•20m ago•0 comments

On the Six-Cornered Snowflake

https://www.keplersdiscovery.com/snowflake.html
1•geox•21m ago•0 comments

Discrete Bayesian Sample Inference for Graph Generation

https://arxiv.org/abs/2511.03015
2•PaulHoule•24m ago•0 comments

I Tried the New Android XR Smart Glasses from Google and XReal

https://www.pcmag.com/news/i-tried-the-new-android-xr-smart-glasses-from-google-they-impressed-me
2•fcpguru•26m ago•0 comments

Toggle the "Light" Switch

https://www.incommonwith.com/collections/all-lighting
2•FelipeCortez•26m ago•0 comments

New benchmark shows top LLMs struggle in real mental health care

https://swordhealth.com/newsroom/sword-introduces-mindeval
3•RicardoRei•28m ago•1 comments

Apple Faces Scrutiny as Sanctioned Entities Slip Through App Store Controls

https://www.washingtonpost.com/technology/2025/12/10/us-sanctions-apple-google/
6•7777777phil•31m ago•1 comments

2025 Cacowards

https://www.doomworld.com/cacowards/2025/index/
1•klaussilveira•31m ago•0 comments

EU welcomes seamless data transfer between iPhone and Android

https://www.heise.de/en/news/EU-welcomes-seamless-data-transfer-between-iPhone-and-Android-111106...
2•doener•33m ago•0 comments

If Dr. Seuss Danced with Nietzche – The Sneetches on the Nietzches

https://philshapirochatgptexplorations.blogspot.com/2025/12/the-sneetches-on-nietzsches.html
1•pshapiro99•34m ago•0 comments

The boundary of copyrightability in AI-generated code under Japan and US Law

https://shujisado.org/2025/12/10/the-boundary-of-copyrightability-in-ai-generated-code/
1•jonymo•34m ago•0 comments

I Wish People Were More Public

https://borretti.me/article/i-wish-people-were-more-public
1•swah•34m ago•0 comments