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•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

Anthropic and FIS Are Building an AI Agent to Help Banks Police Financial Crimes

https://www.wsj.com/tech/ai/anthropic-and-fis-are-building-an-ai-agent-to-help-banks-police-finan...
1•Cider9986•10s ago•0 comments

Show HN: Kanban-CLI – a web UI for local Markdown todo lists

https://github.com/Vochsel/kanban-cli
1•vochsel•49s ago•0 comments

Hunters who believe shooting big game can save Africa's wildlife

https://www.theguardian.com/environment/2026/apr/21/hunters-who-believe-shooting-big-game-can-sav...
1•gmays•1m ago•0 comments

AgentShield – spending firewall for AI agents

https://github.com/lucarizzo03/AgentShieldv2
1•lucarizzo1010•2m ago•0 comments

Programmers Sell Ox, Not UX

https://www.makonea.com/en-US/casual/programmers-sell-ox-not-ux
1•jdw64•4m ago•0 comments

Probability Distributions: An Intuitive Guide

https://tawsifk.substack.com/p/probability-distributions-an-intuitive
1•t35khan•7m ago•0 comments

Stripped an AI agent down to a bash loop – No Framework

https://github.com/seedpi867-cmd/seed
1•seed867•8m ago•0 comments

Marc Andreessen, A16Z and Netscape

https://www.davidsenra.com/episode/marc-andreessen
1•gnabgib•9m ago•0 comments

The Dragon Won Because Nobody Fought It (2014) [video]

https://www.youtube.com/watch?v=cZYNADOHhVY
1•warbaker•15m ago•1 comments

Why AI rarely says "I don't know"

https://medium.com/@blueshirts23/i-got-chatgpt-to-confess-its-own-design-logic-heres-exactly-what...
1•BoundaryTester•17m ago•0 comments

8Veda – AI-powered news intelligence. Bias-indexed. Neutral

https://8veda.com/
1•anthonymooz•18m ago•0 comments

Peter Thiel backs $1B ocean data centre startup powered by waves

https://www.ft.com/content/711ce313-16fb-4a12-b6be-fbed547c8a39
1•voxadam•19m ago•1 comments

Y Combinator's Stake in OpenAI (0.6%)

https://daringfireball.net/2026/05/y_combinators_stake_in_openai
3•gyomu•19m ago•0 comments

Show HN: I built a native macOS audio player and it changed my life

https://github.com/chrisallick/light-crime-audio-player
1•chrisallick•22m ago•1 comments

Ribbon – A Linkding Client

https://www.coryd.dev/posts/2026/ribbon-a-linkding-client
1•cdrnsf•23m ago•0 comments

Show HN: Agent Historic Philosophical Persona Routing and Prompts

https://github.com/barretts/AgentHistoric
2•sosuke•26m ago•1 comments

I Bought a TV with No 'Smart' Features [video]

https://www.youtube.com/watch?v=LJh72_O4pXE
1•absqueued•28m ago•0 comments

Using agroforestry to buffer noise [pdf]

https://www.fs.usda.gov/nac/assets/documents/agroforestrynotes/an42w05.pdf
1•koolba•28m ago•0 comments

An Introduction to LangChain's Deep Agents

https://medium.com/@ngpeijiun/an-introduction-to-langchains-deep-agents-ad14b511f3dc
2•eugenis•30m ago•0 comments

Kredd – open-source SaaS application for ranking cold inbound emails

https://github.com/DomHudson/kredd
1•domhudson•33m ago•0 comments

Open-source diagnostic for Al misalignment. Model agnostic, industry agnostic

https://github.com/ifixai-ai/diagnostic
1•dimneo24•34m ago•1 comments

Highlander returns to theaters in glorious 4K, for 40th anniversary.

https://www.polygon.com/highlander-returns-to-theaters-in-glorious-4k/
2•nephihaha•34m ago•2 comments

The actual strategy plan Walt Disney gave investors

https://hbr.org/resources/images/article_assets/2013/05/disney-2.jpeg
1•megamike•39m ago•1 comments

Austria expels three Russian embassy staff after 'forest of antennae' discovered

https://www.theguardian.com/world/2026/may/04/austria-expels-three-russian-embassy-staff-vienna-s...
4•CqtGLRGcukpy•39m ago•0 comments

Show HN: Yames – A distraction-free desktop metronome built with Rust and Tauri

https://turutupa.github.io/yames/
2•turutupa•39m ago•0 comments

May the 4th be with the ballpark: Inside MLB's Star Wars obsession

https://www.espn.com/mlb/story/_/id/48652519/mlb-star-wars-promotions-traditions-4th
2•1659447091•39m ago•0 comments

Running a Company with Agents

https://cofounder.co
1•yuedongze•39m ago•0 comments

AOL killed the early internet on a single day in September 1993

https://twitter.com/GeniusGTX/status/2051316737749217627
3•bilsbie•40m ago•1 comments

Suspected YouTube bug spikes RAM over 7gbs users report lag and frozen tabs

https://www.tomshardware.com/software/a-suspected-youtube-interface-bug-spikes-ram-usage-above-7-...
8•Zeidd•41m ago•1 comments

I left academia to sell Elephant Garlic online

https://demeterfamilyfarm.com/
1•WWIII_Historian•44m ago•1 comments