Skip to content

Commit 694fe3d

Browse files
Enhance README with real product content
RoadChain-SHA2048: ade6c750a49bf038 RoadChain-Identity: alexa@sovereign RoadChain-Full: ade6c750a49bf0381264ddd634a52bc2faf9b464733114884edcef683a389381b9add3cfc6b0582047d34ca680edca7e85f16e82073787cf58185db81710446d2a0f3499f28dcc385008d522c08ccfea72e56f69c77cd3f2ecc0c38d2821b9f06c6fb3187469c46f79e56409d7cad46ce155d17ac66636bb9af1baab4980197ad02fe7c36b802e183730ed4295ed9b2161bbb11afe0f572261b880b239795822d796f35dc75178d3588bbb0aa710ae8e58f92d6599d1c1a7ed751a5ba35b97767730df5fa0763645c0ea7e59dad28ce15a6c37cb43efbeeae23d9d36c5989c6f683881046bb867349c1a3928bfc1c22772acc42cb4add5a133be3346560663e8
1 parent 7dcde5f commit 694fe3d

1 file changed

Lines changed: 46 additions & 50 deletions

File tree

README.md

Lines changed: 46 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,69 @@
1-
<div align="center">
2-
<img src="https://images.blackroad.io/pixel-art/road-logo.png" alt="BlackRoad OS" width="80" />
3-
41
# RoadPay
52

6-
**Own your billing. D1 subscriptions, plans, invoices. Stripe is the card charger — you are the bank.**
7-
8-
[![BlackRoad OS](https://img.shields.io/badge/BlackRoad_OS-Pave_Tomorrow-FF2255?style=for-the-badge&labelColor=000000)](https://blackroad.io)
9-
[![License](https://img.shields.io/badge/License-Proprietary-FF6B2B?style=for-the-badge&labelColor=000000)](./LICENSE)
10-
</div>
3+
Billing and subscription management. Stripe handles the cards. Your data stays in your database.
114

12-
---
5+
**Live at [pay.blackroad.io](https://pay.blackroad.io)**
136

14-
## Architecture
15-
16-
```
17-
User → RoadPay (D1) → Stripe (card processing only)
18-
19-
Plans, Invoices, Subscriptions
20-
stored in YOUR database
21-
```
7+
## What It Does
228

23-
RoadPay is BlackRoad's own billing system. Stripe handles card charging — nothing else. All subscription logic, plan management, invoicing, and metering lives in D1 (Cloudflare's serverless SQL).
9+
RoadPay manages plans, subscriptions, invoices, and customer records. Stripe is used only for card processing. All billing logic and data live in D1.
2410

2511
## Plans
2612

27-
| Plan | Price | Agents | Requests/Day | Support |
28-
|------|-------|--------|-------------|---------|
29-
| Starter | Free | 1 | 100 | Community |
30-
| Pro | $29/mo | 5 | 10K | Priority |
31-
| Team | $99/mo | 25 | 100K | Dedicated |
32-
| Enterprise | Custom | Unlimited | Unlimited | SLA |
33-
34-
## Add-ons
35-
36-
| Add-on | Price | Description |
37-
|--------|-------|-------------|
38-
| Extra TOPS | $19/mo | Additional AI compute |
39-
| Custom Models | $49/mo | Fine-tune your own |
40-
| Priority Inference | $9/mo | Skip the queue |
41-
| Dedicated Node | $149/mo | Your own Pi 5 |
13+
| Plan | Price | For |
14+
|------|-------|-----|
15+
| **Starter** | Free | Getting started, 1 agent, 100 req/day |
16+
| **Pro** | $29/mo | Individuals, 5 agents, 10K req/day |
17+
| **Team** | $99/mo | Small teams, 25 agents, 100K req/day |
18+
| **Enterprise** | Custom | Unlimited agents and requests, SLA |
4219

4320
## API
4421

45-
```bash
46-
# Create checkout session
47-
curl -X POST https://roadpay.blackroad.io/api/checkout \
48-
-H "Content-Type: application/json" \
49-
-d '{"plan": "pro", "billing_cycle": "monthly"}'
50-
51-
# Check subscription
52-
curl https://roadpay.blackroad.io/api/subscription \
53-
-H "Authorization: Bearer $TOKEN"
54-
```
22+
| Endpoint | Method | Description |
23+
|----------|--------|-------------|
24+
| `/api/checkout` | POST | Create a checkout session for a plan |
25+
| `/api/subscription` | GET | Check current subscription status |
26+
| `/plans` | GET | List available plans and pricing |
27+
| `/customers` | GET/POST | Manage customer records |
28+
| `/invoices` | GET | View invoice history |
29+
| `/webhook` | POST | Stripe event receiver |
5530

5631
## Stack
5732

58-
- **Runtime**: Cloudflare Workers
59-
- **Database**: D1 (SQLite at the edge)
33+
- **Runtime**: Cloudflare Worker
34+
- **Database**: D1 (customers, invoices, subscriptions)
6035
- **Payments**: Stripe (card processing only)
61-
- **Auth**: JWT via blackroad-auth
36+
- **Auth**: JWT tokens
6237

63-
## Development
38+
## Deploy
6439

6540
```bash
6641
npm install
67-
npm run dev # Wrangler dev server
68-
npm run deploy # Deploy to Cloudflare
42+
npm run dev # Local dev server
43+
npm run deploy # Deploy to production
6944
```
7045

46+
Set Stripe keys:
47+
48+
```bash
49+
wrangler secret put STRIPE_SECRET_KEY
50+
wrangler secret put STRIPE_WEBHOOK_SECRET
51+
```
52+
53+
## How It Works
54+
55+
1. Customer picks a plan and checks out
56+
2. RoadPay creates the Stripe subscription
57+
3. Invoice and subscription state is stored locally in D1
58+
4. Webhooks keep D1 in sync with Stripe events
59+
5. All queries (plan changes, invoices, status) hit your database, not Stripe
60+
61+
Your customer records. Your invoice history. Your database. Stripe only touches the card.
62+
63+
## License
64+
65+
Proprietary. Copyright (c) 2024-2026 BlackRoad OS, Inc. All rights reserved.
66+
7167
---
7268

73-
*Copyright (c) 2024-2026 BlackRoad OS, Inc. All rights reserved.*
69+
*Remember the Road. Pave Tomorrow.*

0 commit comments

Comments
 (0)