@gabrielsmartin/orbit-sdk 0.5.0 → 0.5.2
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 +27 -14
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @gabrielsmartin/orbit-sdk
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> The AI operating system layer. Route intelligently. Save up to 98%.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Every query has a fingerprint. Complexity, creativity, urgency, domain, emotional weight. Right now you're blasting every one of them at GPT-4o. ORBIT reads the fingerprint in milliseconds and picks the right model — automatically, invisibly, without you thinking about it.
|
|
6
6
|
|
|
7
|
-
**What it is:** ORBIT
|
|
7
|
+
**What it is:** ORBIT classifies queries across 8 axes and tells you which model to use. You make the API call. ORBIT picks the model. Zero proxy. Zero black box. Fully deterministic — you can read every routing rule in `fingerprint.js`.
|
|
8
8
|
|
|
9
|
-
**What it isn't:** a proxy,
|
|
9
|
+
**What it isn't:** a proxy, an API wrapper, or a neural network. It's fast, auditable rules — safety-critical routes (emotional content, crisis) always win, everything else is heuristic.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
npm install @gabrielsmartin/orbit-sdk
|
|
@@ -141,33 +141,44 @@ const stats = orbit.stats()
|
|
|
141
141
|
|
|
142
142
|
## Hosted API
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
Sign up at [orbitai.gtll.app](https://orbitai.gtll.app) to get your API key, then:
|
|
145
145
|
|
|
146
146
|
```bash
|
|
147
147
|
curl -X POST https://api.gtll.app/orbitRoute \
|
|
148
148
|
-H "Content-Type: application/json" \
|
|
149
|
-
-
|
|
149
|
+
-H "x-neural-secret: your-api-key" \
|
|
150
|
+
-d '{"complexity": 7, "domain": "code", "signal": "777", "api_key": "orbit_..."}'
|
|
150
151
|
```
|
|
151
152
|
|
|
152
153
|
**Pricing:**
|
|
153
154
|
|
|
154
155
|
| Tier | Price | Limit |
|
|
155
156
|
|------|-------|-------|
|
|
156
|
-
| Free | $0/mo |
|
|
157
|
-
| Pro | $19/mo | Unlimited
|
|
157
|
+
| Free | $0/mo | 1,000 queries/month |
|
|
158
|
+
| Pro | $19/mo | Unlimited · all models |
|
|
158
159
|
| Team | $99/mo | Unlimited · 5 seats |
|
|
159
160
|
|
|
160
|
-
→ [
|
|
161
|
+
→ **[Upgrade to Pro — $19/mo](https://buy.stripe.com/6oUcN4avM9Lw5M11Dwbwk02)** · [Get Team](https://buy.stripe.com/7sYeVc9rIg9U0rH5TMbwk03)
|
|
161
162
|
|
|
162
|
-
|
|
163
|
+
Dashboard + usage stats at [orbitai.gtll.app](https://orbitai.gtll.app)
|
|
163
164
|
|
|
164
165
|
---
|
|
165
166
|
|
|
167
|
+
## The Resonance Vision
|
|
168
|
+
|
|
169
|
+
ORBIT is the open-source core of **Resonance** — the AI operating system layer.
|
|
170
|
+
|
|
171
|
+
Every enterprise AI team is bleeding on token costs. A 50-person team running 1,000 queries/day at GPT-4o spends ~$202,500/year on tokens. With signal-aware routing, that drops to ~$57,700. Resonance captures 15% of savings — you keep the rest.
|
|
172
|
+
|
|
173
|
+
The signal layer is what makes this defensible. `777` queries generate ground-truth labels: "this type of query needs Claude." `333` labels: "this can run on Gemini Flash." At scale, that's a cross-model performance database no individual model provider can build. Only a model-agnostic layer builds this moat.
|
|
174
|
+
|
|
175
|
+
**ORBIT is the open-source foundation. The routing engine learns from every signal.**
|
|
176
|
+
|
|
166
177
|
## Research backing
|
|
167
178
|
|
|
168
179
|
- **RouteLLM (ICLR 2025, UC Berkeley):** intelligent routing achieves 85% cost reduction at 95% quality vs always-GPT-4o
|
|
169
|
-
- **OpenRouter** ($500M+ valuation) proves the market. ORBIT adds the classification layer.
|
|
170
|
-
- **Martian** (Accenture-backed) proves enterprises pay for routing. ORBIT is the open version.
|
|
180
|
+
- **OpenRouter** ($500M+ valuation) proves the market exists. ORBIT adds the classification layer OpenRouter doesn't have.
|
|
181
|
+
- **Martian** (Accenture-backed) proves enterprises pay for routing intelligence. ORBIT is the open, developer-first version.
|
|
171
182
|
|
|
172
183
|
---
|
|
173
184
|
|
|
@@ -175,8 +186,10 @@ curl -X POST https://api.gtll.app/orbitRoute \
|
|
|
175
186
|
|
|
176
187
|
- [x] v0.1.x — 8-axis classification, 6-model routing matrix
|
|
177
188
|
- [x] v0.3.x — Signal-aware routing (777/555/333), hosted gateway
|
|
178
|
-
- [
|
|
179
|
-
- [
|
|
189
|
+
- [x] v0.4.x — API key gated usage dashboard
|
|
190
|
+
- [x] v0.5.0 — Embedding-based fallback for ambiguous queries + Pro tier unlock
|
|
191
|
+
- [ ] v0.6.0 — Multi-provider streaming passthrough (OpenAI / Anthropic / Gemini)
|
|
192
|
+
- [ ] v0.7.0 — Team API keys + usage aggregation dashboard
|
|
180
193
|
- [ ] v1.0.0 — Enterprise API + savings-share pricing
|
|
181
194
|
|
|
182
195
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gabrielsmartin/orbit-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Rule-based LLM router. Classifies queries across 8 axes and picks the optimal model. Fast, deterministic, zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"anthropic",
|
|
29
29
|
"gemini",
|
|
30
30
|
"orbit",
|
|
31
|
+
"resonance",
|
|
31
32
|
"cost-optimization",
|
|
32
33
|
"model-routing",
|
|
33
34
|
"selective-model-matching",
|
|
@@ -35,7 +36,9 @@
|
|
|
35
36
|
"claude",
|
|
36
37
|
"gemini-flash",
|
|
37
38
|
"grok",
|
|
38
|
-
"ai-infrastructure"
|
|
39
|
+
"ai-infrastructure",
|
|
40
|
+
"token-optimization",
|
|
41
|
+
"llm-router"
|
|
39
42
|
],
|
|
40
43
|
"author": "Gabriel Martin <gabriel@gtll.app>",
|
|
41
44
|
"license": "MIT",
|