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

Atlas Mehs

https://darthcoder.github.io/2026/05/10/atlas-mehs/
1•basyt•6m ago•1 comments

The Title on Your Badge Is Becoming a Guess

https://priorcontext.substack.com/p/the-title-on-your-badge-is-becoming
1•contextwindow•9m ago•1 comments

Arrow Flight vs. JSON in Next.js: Benchmarking Python and Go

https://kayhan.dev/posts/012-arrow-flight-vs-json-nextjs-snowflake-benchmark/
1•keynha•14m ago•0 comments

The Hidden Reason Screwdriver Handles Look Like This [video]

https://www.youtube.com/watch?v=sGiRSA_GWK8
1•CharlesW•15m ago•0 comments

Global AI Diffusion Q1 2026 Trends and Insights

https://www.microsoft.com/en-us/corporate-responsibility/dmc/topics/ai-economy-institute/reports/...
1•igor_mart•21m ago•1 comments

Grinder12: 0.96-Bit Lossless Streaming KV-Cache (16.55x VRAM Savings

https://github.com/ggml-org/llama.cpp/discussions/22891
2•AMICLLC•28m ago•0 comments

Xs of Y – roguelike that names itself every run. Written in 4kLoC

https://github.com/nooga/xsofy
3•andsoitis•38m ago•0 comments

Gemini API File Search is now multimodal

https://blog.google/innovation-and-ai/technology/developers-tools/expanded-gemini-api-file-search...
9•gmays•48m ago•0 comments

Snyk and Claude Code: real-time security scanning of AI-generated code

https://codebrainery.com/articles/snyk-claude-code-real-time-security-scanning-for-ai-code
3•yogeshbansal•49m ago•0 comments

Dissolving atherosclerotic plaque without surgery

https://www.cureus.com/articles/488870-closed-loop-extracorporeal-vascular-cleaning-by-staged-che...
3•iliatoli•50m ago•0 comments

Show HN: Modafinil - Let agents continue running while MacBook lid is closed

https://github.com/narcotic-sh/modafinil
3•hamza_q_•53m ago•0 comments

"genesis mission (US Government)" (Angela Collier on AI and research) [video]

https://www.youtube.com/watch?v=p6Ejmhwb8Sc
2•eqvinox•54m ago•0 comments

MCP for sandboxed, reproducible envs for agentic-first coding workflows

https://github.com/aniongithub/devcontainer-mcp
3•anionyt•55m ago•0 comments

Flipping the bozo bit on flips the learning off

https://surfingcomplexity.blog/2026/05/09/flipping-the-bozo-bit-on-flips-the-learning-off/
3•eatonphil•56m ago•0 comments

Powering the Inference Era: Inside the DigitalOcean AI-Native Cloud

https://www.digitalocean.com/blog/powering-the-inference-era
2•gmays•56m ago•0 comments

The Laboratory and the Artist

https://clereviewofbooks.com/the-laboratory-and-the-artist/
3•skogstokig•58m ago•0 comments

Memory device breaks high-temperature performance record

https://physicsworld.com/a/memory-device-breaks-high-temperature-performance-record/
4•EA-3167•59m ago•1 comments

How Israel's creation mirrors Greek independence – and why it's overlooked

https://www.jpost.com/opinion/article-895285
5•dima1830•1h ago•2 comments

DOS, Floppies, NetBSD and Nostalgia

https://exquisite.tube/w/dkV6kWiT9sp2y6xVwkH1iF
3•jaypatelani•1h ago•0 comments

Show HN: A Satellite Visualizer

https://github.com/aabiji/kepler
2•aabiji•1h ago•0 comments

Pocket Raspberry Pi Computer for Hackers [Pre-Sale]

https://shop.m5stack.com/pages/m5-cardputerzero
3•daniel_iversen•1h ago•0 comments

Show HN: Fixing AI memory blind spot on connected facts with benchmark

https://yourmemoryai.xyz/
4•SachitRafa•1h ago•0 comments

Plant Seeds Do Something When the Sound of Rain Strikes

https://www.sciencealert.com/plants-can-sense-the-sound-of-rain
2•m463•1h ago•0 comments

Show HN: Building a web server in assembly to give my life (a lack of) meaning

https://github.com/imtomt/ymawky
69•imtomt•1h ago•18 comments

Anthropic weighs deal for near $1T valuation as revenue surges

https://www.ft.com/content/a40cafcc-0fa4-4e70-9e24-90d826aea56d
4•mfiguiere•1h ago•0 comments

Show HN: A Codex/Claude Code plugin for persistent product context thru sessions

https://github.com/idodekerobo/draft-cli-plugin
3•idodekerobo•1h ago•0 comments

Godot Usage and Engine Growth

https://godotengine.org/article/godot-growth-stats-2026/
3•JSLegendDev•1h ago•0 comments

Ask HN: Can a tinnitus be triggered by high frequency noises?

3•tinnitus_crazy•1h ago•5 comments

Situational Awareness Kindle eBook ePub

https://blog.cahillanelabs.com/kindle/epub/llm/2026/05/10/situational-awareness-ebook
2•linuxfan2718•1h ago•0 comments

The Case of the Kung Fu 'Phreak'

https://www.zdnet.com/article/the-case-of-the-kung-fu-phreak/
3•mindcrime•1h ago•1 comments