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

C++26: String and String_view Improvements

https://www.sandordargo.com/blog/2026/04/29/cpp26-string-string_view-improvements
1•PaulHoule•3m ago•0 comments

Trump Backs Tobacco Firms in Vape Dispute, Prompting FDA Chief's Resignation

https://las-vegas-news.com/trump-backs-tobacco-firms-in-vape-dispute-prompting-fda-chiefs-resigna...
1•petethomas•4m ago•0 comments

Apple Developer Community Recognition

https://developer.apple.com/community/recognition/
1•robert-boehnke•7m ago•0 comments

Show HN: From 30 Photos to an FPS

https://free-visit.net/
1•tmilard•11m ago•0 comments

Nvidia/Numba-CUDA-mlir: CUDA C++-style Python GPU compiler built on MLIR

https://github.com/NVIDIA/numba-cuda-mlir
1•nickwanninger•12m ago•0 comments

Tell HN: Dont use Claude Design, lost access to my projects after unsubscribing

2•pycassa•12m ago•0 comments

Run Claude Code/Codex Sessions on GitHub and Linear Issues

https://lanes.sh/blog/integrations-have-arrived
5•s-xyz•13m ago•0 comments

Behind the scenes of OpenAI's open-source Windows sandbox

https://openai.com/index/building-codex-windows-sandbox/
1•dkundel•18m ago•0 comments

Microsoft researchers find AI models and agents can't handle long-running tasks

https://www.theregister.com/ai-ml/2026/05/11/microsoft-researchers-find-ai-models-and-agents-cant...
2•rbanffy•18m ago•0 comments

Numworks Graphing Calculator

https://www.numworks.com/buy/
2•kaladin-jasnah•18m ago•0 comments

Innovative startup pioneers 3D printing with recycled glass

https://www.tomshardware.com/3d-printing/innovative-startup-pioneers-3d-printing-with-recycled-gl...
1•rbanffy•18m ago•0 comments

Show HN: Like Reddit but for Interactive Simulations

https://www.simloops.com/
3•nerdlogic•19m ago•0 comments

Hello Robot's Wheeled Home Robot Ditches Humanoid Hype

https://spectrum.ieee.org/stretch-4-home-robot
1•rbanffy•21m ago•0 comments

FAA adding transponders to all its airport vehicles after LaGuardia runway crash

https://www.cbc.ca/news/world/transponders-airport-vehicles-air-canada-laguardia-crash-9.7198540
1•cf100clunk•22m ago•0 comments

A desire for a loud car correlates with higher scores on psychopathy and sadism

https://cipp.ug.edu.pl/A-desire-for-a-loud-car-with-a-modified-muffler-is-predicted-by-being-a-ma...
2•doener•22m ago•3 comments

Show HN: This Show HN is NotGen.AI

https://notgen.ai/
1•foote•22m ago•0 comments

Spire: Structure-Preserving Interpretable Retrieval of Evidence

https://arxiv.org/abs/2604.20849
1•PaulHoule•26m ago•0 comments

I took a physics class as a software engineer

https://frigade.com/blog/why-i-took-a-physics-class-as-a-software-engineer
2•pancomplex•26m ago•0 comments

Munich's IT transition: open-source is the default for the new coalition

https://www.heise.de/en/news/Munich-s-IT-transition-Open-Source-is-the-default-for-the-new-coalit...
1•doener•26m ago•0 comments

Great Essays About Biology

https://nikomc.com/essays/30-great-essays.html
2•sebg•26m ago•0 comments

Viral Marketing

1•FDX2018•27m ago•1 comments

Medicare's new payment model is built for AI. Most of the tech world has no idea

https://techcrunch.com/2026/05/12/medicares-new-payment-model-is-built-for-ai-and-most-of-the-tec...
2•brandonb•28m ago•0 comments

More concentrated precipitation decreases terrestrial water storage

https://www.nature.com/articles/s41586-026-10487-7
1•littlexsparkee•28m ago•0 comments

Lobotomized Claude Code: system-prompt overrides for Opus 4.7

https://github.com/skrabe/lobotomized-claude-code
1•opwizardx•29m ago•0 comments

Hondurasgate.ch Portal Under Attack

https://hondurasgate.ch/investigaciones/hondurasgate-under-attack-us-israel-digital-siege
1•lbrito•29m ago•0 comments

Token Dashboard – local desktop app to see where your Claude Code tokens go

https://github.com/Arylmera/Token-Dashboard
1•Arylmera•31m ago•0 comments

Show HN: Building effective Human-AI hybrid decision-making ecosystem

https://galdren.com/lgd/
1•stAInley•32m ago•0 comments

Windows 11 PCs Compared to MacBook Neo

https://signal65.com/research/windows-11-pcs-compared-to-macbook-neo/
2•ndr42•34m ago•1 comments

An 'Impossible' Idea Led to a Pancreatic Cancer Breakthrough

https://www.nytimes.com/2026/05/12/health/pancreatic-cancer-daraxonrasib-kras.html
1•bookofjoe•34m ago•1 comments

San Fransokyo: imagining a denser San Francisco

https://chinoiserie.media/posts/san-fransokyo/
1•stevenzzzzzzz•35m ago•0 comments