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•8mo ago

Comments

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

Show HN: TrackAll – Chrome extension to keep all tracking links in one place

https://chromewebstore.google.com/detail/trackall-packages-orders/ephpibhobjdieddmhhlfknedafjjfgbi
1•viikka•42s ago•0 comments

GeneploreAI/gibberifier: Stun LLMs with random Unicode characters

https://github.com/GeneploreAI/gibberifier
1•aiNohY6g•6m ago•0 comments

The Night They Tried to Kill the Sky

https://substack.com/inbox/post/184292744
1•mpweiher•8m ago•0 comments

JavaScript date + 1 month = 9 months previous

https://philna.sh/blog/2026/01/11/javascript-date-calculation/
1•philnash•9m ago•1 comments

The new biologists treating LLMs like aliens

https://www.technologyreview.com/2026/01/12/1129782/ai-large-language-models-biology-alien-autopsy/
1•fleahunter•11m ago•0 comments

How to Build Reactive Declarative UI in Vanilla JavaScript

https://jsdev.space/howto/reactive-vanilla-js/
2•javatuts•11m ago•0 comments

Belphegor's Prime

https://en.wikipedia.org/wiki/Belphegor%27s_prime
2•thunderbong•17m ago•0 comments

Virtual Gallery of Sodai – Lithuanian Straw Gardens

https://www.sodai.eu/en
1•stared•20m ago•0 comments

The Art of Digital Rendering (Loren Carpenter's Last Interview)

https://www.computer.org/csdl/magazine/cg/2025/06/11240575/2byRgWIT3YA
1•boulos•21m ago•0 comments

Show HN: Two-line change, 30% RAG boost

https://arxiv.org/abs/2503.06882
1•snasan•23m ago•0 comments

UK's Ofcom investigating X after outcry over sexualised AI images

https://www.theguardian.com/technology/2026/jan/12/ofcom-investigating-x-outcry-sexualised-ai-ima...
3•n1b0m•23m ago•0 comments

Measles continues raging in South Carolina; 99 new cases since Tuesday

https://arstechnica.com/health/2026/01/measles-continues-raging-in-south-carolina-99-new-cases-si...
2•rbanffy•24m ago•0 comments

IKEA for Software

https://tommaso-girotto.co/blog/an-ikea-for-software
1•tgirotto•25m ago•0 comments

Georeferencing Weather Radar Data in QGIS

https://rtnf.substack.com/p/georeferencing-weather-radar-data
1•altilunium•26m ago•0 comments

JZBuilder is a map editor for Doom, built for the web

https://jmickle66666666.github.io/jzbuilder/
1•klaussilveira•28m ago•0 comments

Show HN: stream-unzip – Python function to unZIP on the fly

https://github.com/uktrade/stream-unzip
1•michalc•29m ago•0 comments

Show HN: Skylet.ai – vibe-based search for hidden cafes and restaurants

https://www.skylet.ai/en
1•samieY•30m ago•0 comments

The J Incunabulum

https://tony-zorman.com/posts/j-incunabulum.html
2•a7b3fa•30m ago•0 comments

Apple: You (Still) Don't Understand the Vision Pro

https://stratechery.com/2026/apple-you-still-dont-understand-the-vision-pro/
2•soheilpro•31m ago•0 comments

Show HN: Notebooklm-Py – Unofficial Python API for Google NotebookLM

https://github.com/teng-lin/notebooklm-py
1•teng-lin•32m ago•0 comments

Comparison of incremental backup apps (Borg, Kopia, Restic,)

https://wiki.archlinux.org/title/Synchronization_and_backup_programs#Incremental_backups
1•tosh•32m ago•0 comments

Past the Event Horizon: Why "AI Replacing Developers" Is the Wrong Frame

https://fernandobevilacqua.com/blog/2025/01/past-the-event-horizon-why-ai-replacing-developers-is...
1•dovyski•33m ago•0 comments

No Starch Press – Deep Learning Crash Course

https://nostarch.com/deep-learning-crash-course
1•H_KM•34m ago•1 comments

U.S. Prosecutors Are Investigating Fed Chair Jerome Powell

https://www.wsj.com/economy/central-banking/federal-reserve-received-justice-department-subpoena-...
2•impish9208•34m ago•2 comments

RL Your Life

https://www.kush.pw/rl-your-life.html
2•kushbhuwalka•35m ago•0 comments

Events vs. Workflows: How to Think About Asynchronous Flow

https://tomasjurasek.substack.com/p/events-vs-workflows-how-to-think
1•silent715•36m ago•0 comments

Show HN: BunkerWeb – open-source and cloud-native WAF/WAAP

https://www.bunkerweb.io
3•bnkty•36m ago•0 comments

Design systems and shareable browser support

https://medium.com/flat-pack-tech/design-systems-and-shareable-browser-support-8b2783597fec
1•robin_reala•37m ago•0 comments

Show HN: AI and Tech Trends Dashboard

https://shir-man.com/homepage/
1•neuraldenis•38m ago•1 comments

Figma's $68B IPO: Why Millions Are Deleting Adobe [video]

https://www.youtube.com/watch?v=CgNLFAb6IlE
1•mgh2•38m ago•0 comments