frontpage.
newsnewestaskshowjobs

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

I migrated this blog from Zola to WordPress

https://blogoboros.fly.dev
1•ngalaiko•1m ago•0 comments

Show HN: Treeline – beautiful, powerful wilderness topo maps for iOS

https://apps.apple.com/us/app/treeline-maps-topo-trails/id6761303613
1•rafram•2m ago•0 comments

Hi HN – U_DAW here, one of the creators

https://github.com/ceh13-community/rozoom/releases/tag/app-v0.22.2
1•udawpk•2m ago•0 comments

SEC Seeks to Scrap Best-Price Rule

https://www.morningstar.com/news/dow-jones/202606116645/sec-seeks-to-scrap-best-price-rule
1•littlexsparkee•2m ago•0 comments

Academic's warning about using AI was written using AI

https://www.thetimes.com/world/australasia/article/academic-used-ai-to-write-warning-not-to-cut-c...
3•Anon84•7m ago•0 comments

The Broken Plate 2026: health of the UK food system

https://foodfoundation.org.uk/publication/broken-plate-2026
1•helsinkiandrew•8m ago•1 comments

Show HN: Zamp – AI employee you delegate real enterprise jobs to

https://www.zamp.ai
1•metashwat•8m ago•0 comments

Show HN: GeoSolver MCP – reverse image geolocation for AI agents

https://reverseimagelocation.com/settings/mcp
1•elegate1984•10m ago•0 comments

Demystifying Hidden-State Recurrence

https://arxiv.org/abs/2606.13106
2•ilreb•10m ago•0 comments

Please Switch to Python. Or R. Or Anything. Just Not Stata, SAS, SPSS, or Matlab

https://presentofcoding.substack.com/p/please-switch-to-python
2•heterodoxjedi•11m ago•0 comments

Urban wrens are singing at 1am: Six months of birdsong data from BirdNET-go

https://beaktech.org/blog/urban-vs-rural-bird-activity
2•deepvibrations•11m ago•0 comments

Maxproof

https://arxiv.org/abs/2606.13473
5•ilreb•12m ago•0 comments

Python 3.14 garbage collection rigamarole

https://theconsensus.dev/p/2026/06/06/python-3-14-garbage-collection-rigamarole.html
2•eatonphil•12m ago•1 comments

From US Military job code to civilian career

https://vetswhocode.io/career-guides
2•mooreds•12m ago•0 comments

Show HN: On-device pose estimation in React Native ExecuTorch

https://twitter.com/_jakubchmura/status/2065401634075636064
2•chmjkb•13m ago•0 comments

A BIOS update won't fix a board-specific ROCm bug on Strix Halo

https://thefrontierlab.ai/bios-update-wont-fix-6182/
2•thefrontierlab•13m ago•0 comments

'How ASML is applying AI-native engineering for the next technology era'

https://www.asml.com/en/news/stories/2026/machines-behind-machines
1•felipevb•16m ago•0 comments

Vendor data feed is wrong

https://coloneltoad.substack.com/p/why-i-built-my-own-data-pipeline
1•tolugenius•20m ago•0 comments

How Does the Video Codec Influence the Prediction Scores of an AI Model?

https://www.fourthline.com/newsroom/supervised-vs-contrastive-classification
2•Doch88•26m ago•0 comments

Build a Web App for Your Machine Learning Model

https://mljar.com/blog/web-app-machine-learning/
2•pplonski86•28m ago•0 comments

AWS Tunes Up Graviton5 for Agentic AI, Boosts Bang for the Buck Bigtime

https://www.nextplatform.com/compute/2026/06/11/aws-tunes-up-graviton5-for-agentic-ai-boosts-bang...
2•rbanffy•28m ago•0 comments

Facing US chip curbs, China launches photonics lab to power AI with light

https://www.scmp.com/tech/tech-war/article/3356901/facing-us-chip-curbs-china-launches-photonics-...
5•outrunner•28m ago•0 comments

"This cannot continue": Xbox leaders lay out "hard truths" behind sagging brand

https://arstechnica.com/gaming/2026/06/this-cannot-continue-xbox-leaders-lay-out-hard-truths-behi...
4•rbanffy•29m ago•0 comments

China's chip design software firms catch US rivals?

https://www.scmp.com/tech/big-tech/article/3356853/chinas-chip-software-firms-back-huaweis-new-sc...
2•merlioncity•29m ago•0 comments

Alaskans will be flying blind after NSF decommissions ocean monitoring network

https://insideclimatenews.org/news/09062026/alaska-ocean-monitoring-instruments-nsf-cuts/
2•rbanffy•31m ago•0 comments

Show HN: Grops – Stop the Information Overload

https://grops.biz
1•filippo_ciprian•35m ago•0 comments

Ask HN: Is Claude Fable 5 built from scratch or just better data?

1•throwaw12•36m ago•0 comments

The Aesthetics of Multicoding Esolangs (2020) [pdf]

https://danieltemkin.com/Content/Esolangs/multicoding_esolangs.pdf
1•thalium•36m ago•0 comments

Finding code duplicated by AI without AI

https://github.com/Rafaelpta/dupehound
4•rafaepta•37m ago•2 comments

Show HN: Passwd.page – give agents secrets without pasting them into prompts

https://passwd.page/
1•davidfeldi•39m ago•0 comments