robot-resources 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -48
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,73 +1,105 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Robot Resources
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Tools for AI agents. Humans have HR. Agents have RR.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Robot Resources builds tools for AI agents and any software that makes LLM API calls — chatbots, RAG pipelines, AI-powered apps, internal tools. Two products today: **Router** (intelligent model routing, 60-90% cost savings) and **Scraper** (token compression for web content, median 91% token reduction). Both run locally, both free.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
6
10
|
npx robot-resources
|
|
7
11
|
```
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
1. **GitHub OAuth** — authenticates via PKCE, saves API key to `~/.robot-resources/config.json`
|
|
12
|
-
2. **Router install** — detects Python 3.10+, creates venv, pip installs `robot-resources-router`
|
|
13
|
-
3. **Service registration** — registers router as launchd (macOS) or systemd (Linux) service
|
|
14
|
-
4. **Scraper** — installs @robot-resources/scraper for token-efficient web compression
|
|
13
|
+
One command: authenticates via GitHub OAuth, installs Router as an always-on service, registers Scraper as the default web compression tool, and configures your agent automatically.
|
|
15
14
|
|
|
16
|
-
##
|
|
15
|
+
## Products
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
### Router
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Intelligent LLM routing proxy. Classifies each prompt by task type, filters by model capability, routes to the cheapest model that qualifies.
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
- Hybrid classification: keyword detection (~5ms) + LLM fallback for ambiguous prompts (~200ms)
|
|
22
|
+
- Dynamic thresholds: simple tasks open cheap models (0.60), complex tasks require top models (0.85)
|
|
23
|
+
- 11 models across OpenAI, Anthropic, and Google — routes within your available providers
|
|
24
|
+
- 60-90% cost savings with zero quality loss
|
|
25
|
+
- OpenAI-compatible API on localhost:3838 — change your base_url and you're done
|
|
26
|
+
- OpenClaw compatible — plugin auto-installs, works with API keys and subscriptions
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
-
|
|
28
|
+
```bash
|
|
29
|
+
npx @robot-resources/router
|
|
30
|
+
```
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
- Check `~/.robot-resources/config.json` — offer login if missing
|
|
29
|
-
- Install the tool
|
|
30
|
-
- Configure MCP if applicable
|
|
31
|
-
- Print usage instructions
|
|
32
|
+
### Scraper
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
Token compression for web content. Fetches any URL, strips noise, returns clean markdown with token count.
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
- Mozilla Readability extraction (0.97 F1 accuracy)
|
|
37
|
+
- Content-aware token estimation (±15% of actual BPE)
|
|
38
|
+
- 3-tier fetch: fast, stealth (TLS fingerprint), render (headless browser)
|
|
39
|
+
- Multi-page BFS crawl with robots.txt compliance
|
|
40
|
+
- Median 91% token reduction per page
|
|
36
41
|
|
|
37
|
-
|
|
42
|
+
Installed automatically via `npx robot-resources`. Available as MCP tool `scraper_compress_url(url)` in your agent.
|
|
38
43
|
|
|
39
|
-
|
|
40
|
-
|------|---------------|
|
|
41
|
-
| `web/src/pages/Landing/types.ts` | Add install subsection if new section |
|
|
42
|
-
| `web/src/pages/Landing/components/ContentPanel/animatedContentScreens.ts` | Add install screen (desktop + mobile) |
|
|
43
|
-
| `web/src/pages/Landing/components/TerminalPanel/terminalCommands.ts` | Add install subcommand output |
|
|
44
|
+
### Dashboard
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
Usage dashboard with real-time telemetry. Auth via GitHub OAuth, KPI panels, routing stats, cost savings tracking. Mobile-responsive.
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|------|---------------|
|
|
49
|
-
| `web/public/llms.txt` | Add tool with `npx @robot-resources/<tool>` |
|
|
50
|
-
| `web/public/llms-full.txt` | Add detailed section with npx install |
|
|
51
|
-
| `web/public/.well-known/ai-resources.json` | Add SoftwareApplication entry with InstallAction |
|
|
48
|
+
### MCP Servers
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
Both products include MCP servers for AI agent integration:
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
```bash
|
|
53
|
+
npx -y @robot-resources/router-mcp # Router stats + config
|
|
54
|
+
npx -y @robot-resources/scraper-mcp # Scraper compression
|
|
55
|
+
```
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
## Pricing
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Free. Unlimited. No tiers. Both tools run locally — you pay your AI providers directly. No markup, no rate limits, no quotas. Your API keys never leave your machine.
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## Monorepo Structure
|
|
62
62
|
|
|
63
63
|
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
robot-resources/
|
|
65
|
+
├── router/ # LLM routing proxy (Python + TypeScript MCP)
|
|
66
|
+
├── scraper/ # Token compression (TypeScript)
|
|
67
|
+
├── web/ # Landing page + dashboard (React/Vite)
|
|
68
|
+
├── platform/ # Backend API — auth, telemetry (Hono/Cloudflare Workers)
|
|
69
|
+
├── packages/ # Unified CLI installer (npx robot-resources)
|
|
70
|
+
├── skills/ # Agent skills (ClawHub)
|
|
71
|
+
├── _orchestrator/ # Business coordination
|
|
72
|
+
└── _brand/ # Brand assets and design system
|
|
73
73
|
```
|
|
74
|
+
|
|
75
|
+
## Development
|
|
76
|
+
|
|
77
|
+
Each product has its own setup:
|
|
78
|
+
|
|
79
|
+
- [Router](./router/README.md)
|
|
80
|
+
- [Scraper](./scraper/packages/scraper/README.md)
|
|
81
|
+
- [Platform](./platform/README.md)
|
|
82
|
+
- [CLI](./packages/cli/README.md)
|
|
83
|
+
|
|
84
|
+
## CI/CD
|
|
85
|
+
|
|
86
|
+
Unified pipeline on push/PR to main:
|
|
87
|
+
|
|
88
|
+
- **Router**: ruff, mypy, pytest
|
|
89
|
+
- **Scraper**: tsc, vitest
|
|
90
|
+
- **Web**: tsc, eslint
|
|
91
|
+
- **Publish**: 7 npm packages via OIDC (`router`, `router-mcp`, `scraper`, `scraper-mcp`, `scraper-tracking`, `cli-core`, `cli`)
|
|
92
|
+
|
|
93
|
+
## Links
|
|
94
|
+
|
|
95
|
+
- Website: https://robotresources.ai
|
|
96
|
+
- GitHub: https://github.com/robot-resources
|
|
97
|
+
- npm: `npx robot-resources`
|
|
98
|
+
- Twitter/X: https://x.com/robotresources
|
|
99
|
+
- Discord: https://robotresources.ai/discord
|
|
100
|
+
- Contact: agent@robotresources.ai
|
|
101
|
+
- Agent docs: https://robotresources.ai/llms.txt
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
MIT
|