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

Comments

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

A Debug Mode Claude Code Skill

https://github.com/franzenzenhofer/debug-mode-skill
1•franze•20s ago•0 comments

bastille

https://github.com/BastilleBSD/bastille
1•tosh•1m ago•0 comments

Show HN: Standard Cucumber Steps

https://github.com/robmoffat/standard-cucumber-steps
1•bobm_kite9•1m ago•0 comments

Cloudflare Principal Systems Engineer starts his own TypeScript compiler project

https://twitter.com/chatsidhartha/status/2025694831717085248
1•0xCAP•3m ago•0 comments

Fal-AI-skill: Claude Code plugin for working with fal AI

https://github.com/analyticalmonk/fal-ai-skill
1•akashtndn•4m ago•0 comments

Fix: HookWebpackError cssnano-simple crashing Next.js builds (with root cause)

https://www.devutilityhub.me/fix/nextjs-hookwebpackerror-cssnano-simple/
1•badboyshah•5m ago•0 comments

VZLinuxBootLoader

https://developer.apple.com/documentation/virtualization/vzlinuxbootloader
1•tosh•6m ago•0 comments

Thinking of Building a Harness for Trading

1•raunaqvaisoha•9m ago•0 comments

The Billionaires' Eugenics Project

https://www.thenerve.news/p/epstein-billionaires-eugenics-project-harvard-academia-john-brockman
6•bryanrasmussen•19m ago•1 comments

Show HN: AI-BOM – Open-source scanner that discovers shadow AI components

https://github.com/Trusera/ai-bom
1•trusera•20m ago•0 comments

I'm new to the USA and trying to choose a telecom plan

1•joe_goldberg•23m ago•0 comments

Depth Effect Wallpapers

https://fayziev.com/blog/depth-effect-wallpapers
2•nfspace•23m ago•0 comments

You Don't Need an iPhone

https://hayzam.com/blog/01-you-dont-need-an-iphone/
2•tosh•26m ago•0 comments

Tuberizer

https://tuberizer.com
1•bellamoon544•29m ago•1 comments

Crime Pays: A Paper Mill Offered Me $250k per Year

https://richardtol.substack.com/p/crime-pays
2•jruohonen•30m ago•1 comments

Technical Breakdown: How AI Agents Ignore 40 Years of Security Progress [video]

https://www.youtube.com/watch?v=_3okhTwa7w4
1•qbane•31m ago•0 comments

Created a tool that helps create short form content with subtitles

1•darkeve•31m ago•0 comments

The Supply Chain in Your AI Agent: Why SBOMs for MCP Servers Matter Now

https://www.incredibuild.com/blog/the-hidden-supply-chain-in-your-ai-agent-why-sboms-for-mcp-serv...
1•zozo123-IB•33m ago•0 comments

The Language Game: AI agents fail because of Wittgenstein, not capability

https://medium.com/@ledeluge/the-language-game-b29d73f890fd
1•apresmoi•34m ago•0 comments

Show HN: Runner-agnostic typed test fixtures inspired by Playwright

https://www.npmjs.com/package/fixtures-ts
1•mrded•38m ago•0 comments

The Prince and the Widow and the Stone Soup

https://medium.com/luminasticity/the-prince-and-the-widow-and-the-stone-soup-ce592053d88d
1•bryanrasmussen•39m ago•0 comments

Something Bigger Than AI Is Happening – By Shae O

https://shaeomonijo.substack.com/p/something-bigger-than-ai-is-happening
1•rbanffy•42m ago•0 comments

Show HN: Sourced – Grep any PyPI/NPM package's source code via MCP

https://github.com/RyanCodrai/sourced
1•justsomeguy1996•45m ago•1 comments

Ask HN: Algorithmic parallels between WFH automation and media synthesis?

1•aegis-bot•46m ago•0 comments

Seagull: Real-time translated subtitles for all computer audio

https://getseagull.com
1•saintcya•47m ago•0 comments

Show HN: AI video is having its "ChatGPT moment" – I built Veemo.ai

https://veemo.ai
1•kelly99•48m ago•2 comments

Show HN: Slate Notes and Todos

https://slate.andrewmitchell.com.au/
1•andrewmi•50m ago•1 comments

Show HN: PageBolt – Screenshot, PDF, narrated video recording API with MCP

https://pagebolt.dev
1•fbrooksssss•53m ago•0 comments

Show HN: Bt – Plan-first AI coding commands for OpenCode

2•ekadet•55m ago•1 comments

SETI@home: Data Acquisition and Front-End Processing (2025)

https://iopscience.iop.org/article/10.3847/1538-3881/ade5a7
7•tosh•58m ago•0 comments