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

Comments

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

Ask HN: Free Collaboration Tools for Non Profits?

1•bjourne•1m ago•0 comments

Static taint analysis for LLM agents

https://deepclause.substack.com/p/static-taint-analysis-for-llm-agents
1•schmuhblaster•3m ago•0 comments

Show HN: HN Bot Detector - Detects LLM-Generated Comments on Hacker News

https://github.com/umairnadeem/hn-bot-detector
1•umairnadeem123•4m ago•0 comments

What does everyone think of this "anti-social" network?

https://char.social/
1•poorIy•4m ago•0 comments

He lived on the street. Now turns raw dryland into frugal homestead [video]

https://www.youtube.com/watch?v=xa63fqDHmTQ
1•fallinditch•6m ago•0 comments

How I used Cursor to Migrate Frameworks

https://kentcdodds.com/blog/how-i-used-cursor-to-migrate-frameworks
1•abraham•7m ago•0 comments

How are engineering teams handling AI compliance?

1•partycat•7m ago•0 comments

A Program Binary Becomes a Running Process

https://buildsoftwaresystems.com/post/program-binary-to-running-process/
1•ThierryBuilds•8m ago•1 comments

Show HN: Cosmic horror newspaper engine for an Amsterdam art collective

https://unsafejournal.com/
1•webhouwer•10m ago•0 comments

DVC: Data Version Control

https://dvc.org/
1•Olshansky•13m ago•0 comments

Show HN: AluminatiAi – Per-job GPU energy cost tracking (open source)

1•AluminatiAi•13m ago•0 comments

Did the president need Congress to attack Iran?

https://docs.google.com/document/d/1KONKQuQkkU3lbWalkkvAdpJFk6xEPulCKmDPHHz-dLw/edit?usp=sharing
1•mrjoshuacraigt•17m ago•1 comments

Show HN: AI agent that works autonomously while I'm offline

https://hire-your-ai-guide.vercel.app
1•ZeroDayCyber•18m ago•0 comments

Show HN: Minecraft music player, with random intervals like in the game

https://paul-andre.github.io/minecraft-music-simulator/
1•bogdanoff_2•20m ago•0 comments

Show HN: Laid – Chrome extension that detects AI-generated LinkedIn posts

https://github.com/oldeucryptoboi/linkedin-ai-detector
1•oldeucryptoguy•22m ago•2 comments

Show HN: Tiny Toasts – Collect video toasts using a QR code (no app required)

https://tinytoasts.co
1•jtowers2010•25m ago•0 comments

Show HN: Cc-reaper – Three-layer cleanup for orphan Claude Code processes

https://github.com/theQuert/cc-reaper
1•thequert•29m ago•0 comments

Cab-Rank Rule

https://en.wikipedia.org/wiki/Cab-rank_rule
1•valzevul•29m ago•0 comments

The Whispering Earring

https://gwern.net/doc/fiction/science-fiction/2012-10-03-yvain-thewhisperingearring.html
3•iamsam123•30m ago•1 comments

Software Engineering in the Agentic Era

https://sidv.dev/blog/software-engineering-agentic-era/
1•fangpenlin•32m ago•0 comments

Show HN: Ralphex – autonomous GPT Codex agent loop for ChatGPT Pro users

https://github.com/SmolNero/ralphex
1•edgar_ortega•34m ago•0 comments

Xuv: X11 user daemon to automatically run commands triggered by user specified

https://codeberg.org/NRK/xuv
2•todsacerdoti•35m ago•0 comments

SaaS-pocalypse chatter is doomster pr0n

https://www.theregister.com/2026/03/01/saaspocalypse_opinion/
1•Bender•37m ago•1 comments

Lenovo shows off snap-together laptop with removable keyboard, screen, and ports

https://www.theregister.com/2026/03/01/lenovo_shows_off_modular_laptop/
1•Bender•38m ago•0 comments

South Korea's tax office apologizes for leaking seed phrase to seized crypto

https://www.theregister.com/2026/03/02/south_korea_tax_office_cryptocurrency_leak/
1•Bender•38m ago•0 comments

Ultrafast neural sampling with spiking nanolasers

https://www.nature.com/articles/s41467-025-66818-1
1•PaulHoule•43m ago•0 comments

Show HN: Port Forwarding Wrapper for Mosh

https://github.com/liyu1981/moshpf
1•liyu1981au•44m ago•0 comments

GPL as the Best Licence – Governance and Philosophy

https://blog.hansenpartnership.com/gpl-as-the-best-licence-governance-and-philosophy/
2•pabs3•45m ago•0 comments

The Mystery of Asjo.org

https://acid.vegas/blog/the-mystery-of-asjo-org/
1•reubn•46m ago•0 comments

If Trump attacks Iran, western media will be cheering him on

https://www.middleeasteye.net/opinion/if-trump-attacks-iran-western-media-will-be-cheering-him
2•lyu07282•50m ago•0 comments