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: Memtui – A terminal UI for browsing Memcached like a file tree

https://github.com/nnnkkk7/memtui
1•sr-white•39s ago•0 comments

Anthropic has made a large contribution to the Python Software Foundation

https://discuss.python.org/t/anthropic-has-made-a-large-contribution-to-the-python-software-found...
1•ayhanfuat•48s ago•0 comments

Show HN: Revise – a new canvas-based word processor

https://revise.io/features/word-processor
1•artursapek•2m ago•0 comments

Scaling the Fraud Economy: Pig Butchering as a Service

https://www.infoblox.com/blog/threat-intelligence/scaling-the-fraud-economy-pig-butchering-as-a-s...
1•9woc•3m ago•0 comments

I created a tool to roast your landing page

https://landkit.pro/audit
1•nikhonit•3m ago•0 comments

Show HN: A full-scale build simulator for Dreadmyst (Action RPG)

https://dreadmystbuildsimulator.com
1•18272837023•4m ago•0 comments

Lsferreira42/figlet-go: A figlet Golang rewrite

https://github.com/lsferreira42/figlet-go
1•lsferreira42•4m ago•0 comments

Chinese woman discovers her iPhone X can be unlocked by her friend's face (2017)

https://mothership.sg/2017/12/iphone-x-asians-look-the-same/
1•thunderbong•6m ago•0 comments

Fill in a lean canvas nicely in the browser and download it

https://cluelessuk.github.io/lean-canvas-ui/
1•h0h0h0h0111•6m ago•0 comments

Ask HN: How do you prevent AI agents from going rogue in production?

1•techbuilder4242•7m ago•0 comments

AI Analyzes Faces to Measure Pain Levels

https://spectrum.ieee.org/machine-learning-measure-pain-surgery
2•JeanKage•8m ago•0 comments

Show HN: FlexList – A global leaderboard where you pay to own your city

https://flexlist.app
2•frodothebrave•9m ago•1 comments

EmbodIOS - AI inference as the operating system (3.5s cold start)

https://github.com/dddimcha/embodiOS
2•dddimcha•15m ago•0 comments

Birth Lottery

https://www.givingwhatwecan.org/birth-lottery
1•gmays•15m ago•1 comments

InvokeAI Commercial Platform Shuts Down, Open-Source Project Continues

https://softuts.com/invokeai-commercial-platform-shuts-down-open-source-project-continues/
2•XCSme•15m ago•1 comments

Salesforce, SAP, or ServiceNow: Which Is Most Ripe for Disruption?

1•Saurabh_Kumar_•16m ago•0 comments

90% of Cheese Contains a Pfizer-Developed GMO Ingredient–Here's What That Means

https://drgator.substack.com/p/90-of-cheese-contains-a-pfizer-developed
2•nateb2022•17m ago•0 comments

Show HN: AionUi – Open-Source Cowork for Claude Code, Gemini CLI, Codex and More

https://github.com/iOfficeAI/AionUi
2•waili•17m ago•0 comments

Show HN: FastScheduler – Decorator-first Python task scheduler, async support

https://github.com/MichielMe/fastscheduler
1•michielme•19m ago•0 comments

Ask HN: Salesforce, SAP, or ServiceNow: Which Is Most Ripe for Disruption?

1•Saurabh_Kumar_•19m ago•1 comments

Git Subtree and Other Tips for Migrating a Repo

https://spin.atomicobject.com/git-subtree-migrating-repo/
2•philk10•20m ago•0 comments

Password Storage

https://ciamweekly.substack.com/p/password-storage
1•PretzelFisch•20m ago•0 comments

Citigroup set to cut about 1k jobs this week

https://www.reuters.com/sustainability/citigroup-is-set-cut-about-1000-jobs-bloomberg-news-report...
1•geox•21m ago•0 comments

Show HN: StatefulSet Backup Operator v0.0.3–Configurable snapshots, Redis tested

https://github.com/federicolepera/statefulset-backup-operator
1•lep_qq•21m ago•0 comments

Node.js Tuesday, January 13, 2026 Security Releases

https://nodejs.org/en/blog/vulnerability/december-2025-security-releases
2•syvanen•22m ago•0 comments

Show HN: DSAT – Data Subject Access Toolkit

https://codeberg.org/erkinalp/dsat
2•anticensor•22m ago•0 comments

Software Is Mostly All You Need

https://softwarefordays.com/post/software-is-mostly-all-you-need/
4•jbmilgrom•22m ago•0 comments

Pentagon is embracing Musk's Grok AI chatbot as it draws global outcry

https://www.cnbc.com/2026/01/13/pentagon-is-embracing-musks-grok-ai-chatbot-as-it-draws-global-ou...
1•teekert•23m ago•0 comments

The rise (and future fall) of Discord (2024)

https://slugcat.systems/post/24-12-12-the-rise-and-future-fall-of-discord/
1•birdculture•25m ago•0 comments

Apple and Google's AI partnership announcement spells AI wrong

2•pnrth•25m ago•0 comments