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

How to Build an Agent – Amp (2025)

https://ampcode.com/notes/how-to-build-an-agent
1•Daviey•43s ago•0 comments

Show HN: Dullnote – Markdown Storage for Claude MCP

https://dullnote.com
1•thedizzyhub•59s ago•0 comments

Inline package – golang.org/x/tools/go/analysis/passes/inline – Go Packages

https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/inline
1•emreb•1m ago•0 comments

Free Users, Paid Costs: Comparing Monetization Models for AI Chat Apps in 2026

https://vexrail.com/resources/blog/free-users-paid-costs-monetization-models-ai-chat-apps-2026
1•axrisi•3m ago•0 comments

Show HN: Sigilla – Spaced repetition for browser tabs (stop hoarding)

1•northerndev•6m ago•1 comments

Big Tech Companies Prepare to Skirt Trump's $100k H-1B Fee

https://www.wsj.com/business/big-tech-companies-prepare-to-skirt-trumps-100-000-h-1b-fee-7cbf1ebe
2•johntfella•9m ago•0 comments

Show HN: Windy – Place wind turbines on a map, see residential impact

https://windy-pi.vercel.app/
1•baqiwaqi•10m ago•0 comments

Show HN: Web Scraping Sandbox Website

https://scrapingsandbox.com/
1•vrathee•12m ago•0 comments

My OpenClaw Desperately Needs a DevOps Agent

https://reorx.com/blog/devops-agent-is-the-next-openclaw-moment/
1•novoreorx•15m ago•0 comments

Streeting/Mandelson WhatsApp

https://shetlandj.github.io/w_text/
1•djgrant•15m ago•0 comments

DeepComputing Announced Early Access for the DC-ROMA RISC-V Mainboard III

https://store.deepcomputing.io/products/dc-roma-risc-v-mainboard-iii-for-framework-laptop-13-earl...
1•YesterdayOK94•17m ago•0 comments

Programmers should hedge against AI

https://amaca.substack.com/p/programmers-should-hedge-against
1•amacasubstack•18m ago•0 comments

Cursor-agent-team: Single-conversation, multi-role AI collaboration framework

https://github.com/thiswind/cursor-agent-team
1•thiswind•21m ago•1 comments

I Built Free Legal Skills for AI Agents

https://www.skala.io/legal-skills
1•dariagurevich•21m ago•1 comments

Show HN: The Hidden Bit - A Game Based proof architecture for P vs. NP

https://vakofmaya.github.io/pnp.html
1•TheAuditor•23m ago•0 comments

LLVM: Concerns about low-quality PRs being merged into main

https://discourse.llvm.org/t/concerns-about-low-quality-prs-being-merged-into-main/89748
2•latexr•23m ago•0 comments

GroMach

https://gromach.com/
1•hushuting•28m ago•0 comments

Show HN: AI-Templates for Obsidian Templater

https://github.com/ady1981/obsidian-templater-core-kbt
1•ady1981•29m ago•0 comments

Why Jony Ive put buttons in the electric Ferrari

https://www.youtube.com/watch?v=6Wv1btxCjVE
1•enaaem•30m ago•0 comments

Show HN: Tigement – private timeline planner that recalculates when tasks change

https://tigement.com
1•sodomak•30m ago•0 comments

Allumeria receives false DMCA from Microsoft over infringement of Minecraft IP

https://old.reddit.com/r/PhoenixSC/comments/1r0utq6/allumeria_receives_false_dmca_from_microsoft_...
1•joelkoen•34m ago•0 comments

Ask HN: How do you trace your own mental loops?

1•schneak•35m ago•0 comments

Show HN: We let GPT OSS 120B write and run Python and ARC AGI 2 jumped 4x

https://github.com/gutfeeling/arc-agi-2-submission
1•steinsgate•35m ago•0 comments

Show HN: IntentCode

https://intentcode.dev
1•jasfi•36m ago•1 comments

Deferred Member Initialization in C++

https://www.sandordargo.com/blog/2026/02/11/deferred-map-initialization
1•jandeboevrie•37m ago•0 comments

New open source model achieves same score as GPT 5.2 High on AIME2026 I

https://matharena.ai/?view=problem&comp=aime--aime_2026
2•mh3467•45m ago•2 comments

US Gov borrowed $43.5B per week in Q1 2026

https://fortune.com/2026/02/10/government-borrowing-cbo-report-deicit-lending-interest/
1•chirau•46m ago•0 comments

FAA Halts All Flights at El Paso Airport for 10 Days

https://www.nytimes.com/2026/02/11/us/faa-el-paso-flight-restrictions.html
30•edward•47m ago•11 comments

How to Be Less Wrong in a Polycrisis

https://blog.dougbelshaw.com/polycrisis-ebook/
1•dajbelshaw•48m ago•1 comments

Web Tiles: composable docs and apps safe in any context

https://webtil.es/
1•cernocky•52m ago•0 comments