Skip to content

Commit 13136f1

Browse files
committed
Initial commit
0 parents  commit 13136f1

31 files changed

Lines changed: 2102 additions & 0 deletions

.github/workflows/publish-cli.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish CLI
2+
3+
on:
4+
push:
5+
tags:
6+
- "cli-v*"
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
18+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
19+
with:
20+
bun-version: latest
21+
22+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
23+
with:
24+
node-version: "22"
25+
registry-url: "https://registry.npmjs.org"
26+
27+
- name: Upgrade npm for trusted publishing
28+
run: npm install -g npm@latest
29+
30+
- name: Install dependencies
31+
run: bun install --frozen-lockfile
32+
33+
- name: Type check
34+
run: bun run typecheck
35+
36+
- name: Lint
37+
run: bun run lint
38+
39+
- name: Run tests
40+
run: bun test
41+
42+
- name: Build
43+
run: bun run build
44+
45+
- name: Publish to npm
46+
run: npm publish --access public
47+
48+
- name: Create GitHub Release
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
run: |
52+
VERSION="${GITHUB_REF_NAME#cli-v}"
53+
gh release create "$GITHUB_REF_NAME" \
54+
--title "create-red-app v${VERSION}" \
55+
--generate-notes

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
dist/
3+
.DS_Store
4+
Thumbs.db
5+
.env
6+
.env.local
7+
coverage/
8+
*.tgz

CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Critical Rules
2+
3+
Produce code following **LEAN, CLEAN, MINIMAL but thoughtful YAGNI style**
4+
5+
- No semicolons in TypeScript
6+
- Use `bun` as package manager
7+
- Run `bun run lint` before completing work
8+
- Always use `git mv` (not `mv`) when moving or renaming files to preserve git history
9+
- Use early return, avoid if-else-elseif chains
10+
- Always refer to official doc, never assume you know everything

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 dev3o
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
<h1 align="center">RED — The Agentic-Native Starter Kit</h1>
2+
3+
<p align="center">
4+
<strong>Ship your agentic startup by the weekend.</strong>
5+
</p>
6+
7+
<p align="center">
8+
From hackathon prototype to production SaaS — RED gives you the Agentic-Native stack in 90 minutes.<br />
9+
So your next 3 months build the product, not the plumbing.
10+
</p>
11+
12+
<p align="center">
13+
<a href="https://red.dev3o.com"><strong>Website</strong></a> &bull;
14+
<a href="https://red-demo.dev3o.com"><strong>Live Demo</strong></a> &bull;
15+
<a href="https://red.dev3o.com/docs"><strong>Docs</strong></a> &bull;
16+
<a href="https://red.dev3o.com/#pricing"><strong>Pricing</strong></a> &bull;
17+
<a href="https://github.com/agentic-dev3o/red/issues"><strong>Issues</strong></a>
18+
</p>
19+
20+
<p align="center">
21+
<img src="https://img.shields.io/npm/v/create-red-app?label=create-red-app&color=D4483B" alt="npm version" />
22+
<img src="https://img.shields.io/github/stars/agentic-dev3o/red?style=flat&label=stars%20%2F%2010k&color=D4483B" alt="GitHub Stars" />
23+
</p>
24+
25+
<p align="center">
26+
<em>⭐ <strong>10,000 stars → RED becomes fully open source.</strong> See <a href="#-the-10k-pledge">The 10k Pledge</a>.</em>
27+
</p>
28+
29+
---
30+
31+
## Why RED
32+
33+
Every SaaS is becoming agentic. Most starter kits bolt a streaming chat on top of a Next.js boilerplate and call it a day. RED picks a side: the AI Module is the **spine**, and the SaaS plumbing wraps around it.
34+
35+
- **5 AI primitives, production-grade** — multi-party streaming, message queue, boundaries (per-project brain), agent abstraction, sync tasks.
36+
- **The headliner: external async tasks** — long-running work, off the main thread, streams progress back and notifies on completion. Deep research, batch scraping, multi-step agent pipelines, video renders — the things LLM wrappers can't do.
37+
- **SaaS-complete, not Frankenstack** — passkeys & 2FA auth, orgs & RBAC, metered billing (Autumn + Stripe), admin dashboard, audit logs, i18n, transactional email, waitlist.
38+
- **One opinionated stack** — Convex · React 19 · Bun · Vite · Tailwind v4 · shadcn/ui · Better Auth · Zod · Autumn · Resend · Lingui · Biome.
39+
- **Deploy anywhere** — managed free-tier cloud (Convex + Cloudflare) or self-hosted on your own box. Same codebase.
40+
41+
[**Explore RED on red.dev3o.com →**](https://red.dev3o.com)
42+
43+
---
44+
45+
## Try It In 60 Seconds
46+
47+
Break anything — the database wipes every 4 hours.
48+
49+
**[→ Open the live demo (admin access)](https://red-demo.dev3o.com)**
50+
51+
Or scaffold your own project once you have a license:
52+
53+
```bash
54+
bun create red-app my-saas --license YOUR_LICENSE_KEY
55+
cd my-saas
56+
claude
57+
/red-init
58+
```
59+
60+
One command validates your license, downloads the latest stable release, verifies its SHA-256 checksum, and extracts a ready-to-use project with the Claude skills pre-installed.
61+
62+
---
63+
64+
## ⭐ The 10k Pledge
65+
66+
**When this repository reaches 10,000 GitHub stars, RED becomes fully open source.**
67+
68+
No strings. No conditions. No small print. The entire codebase — CLI, boilerplate, AI Module, Claude skills — flips to a permissive open-source license the day we cross 10,000 ⭐.
69+
70+
Every star moves that needle. If you think Agentic-Native tooling should be accessible to every builder on the planet, **[hit the star button at the top of this page ↑](https://github.com/agentic-dev3o/red)**.
71+
72+
<p align="center">
73+
<a href="https://github.com/agentic-dev3o/red">
74+
<img src="https://img.shields.io/github/stars/agentic-dev3o/red?style=for-the-badge&label=stars%20toward%2010k&color=D4483B&logo=github" alt="Stars toward 10k" />
75+
</a>
76+
</p>
77+
78+
---
79+
80+
## 🗣️ Feature Requests & Bug Reports
81+
82+
This repository is RED's public home — where the community reports bugs, requests features, and helps shape the roadmap.
83+
84+
- 🐛 **[Report a bug](https://github.com/agentic-dev3o/red/issues/new?template=bug_report.md)** — CLI, scaffolding, license validation, or the RED boilerplate itself.
85+
- 💡 **[Request a feature](https://github.com/agentic-dev3o/red/issues/new?template=feature_request.md)** — AI Module primitives, stack decisions, developer experience.
86+
- 💬 **[Start a discussion](https://github.com/agentic-dev3o/red/discussions)** — questions, stack tradeoffs, "is this the right tool for my use case?".
87+
88+
Before opening an issue, please search existing ones — there is a fair chance someone hit the same thing.
89+
90+
### Built with RED
91+
92+
Shipping a product on RED? We'd love to feature it. [Open a PR against `SHOWCASE.md`](https://github.com/agentic-dev3o/red/edit/main/SHOWCASE.md) with a link, a one-line description, and a screenshot.
93+
94+
---
95+
96+
## About This Repo
97+
98+
This repo serves two purposes:
99+
100+
- **Public CLI (`create-red-app`)** — open source, published to npm under MIT. This is what buyers use to scaffold and upgrade RED projects.
101+
- **Community home** — issues, discussions, showcase, and the star-tracked road to open source.
102+
103+
The product source (boilerplate + AI Module + Claude skills) is private today and delivered as signed, checksum-verified release archives through the CLI. It flips to open source when the 10k pledge triggers.
104+
105+
---
106+
107+
## CLI Reference
108+
109+
The CLI is published to npm as [`create-red-app`](https://www.npmjs.com/package/create-red-app). Run it without installing:
110+
111+
```bash
112+
# Bun (recommended)
113+
bun create red-app <directory> --license <key>
114+
115+
# Or via bunx / npx
116+
bunx create-red-app <directory> --license <key>
117+
npx create-red-app <directory> --license <key>
118+
```
119+
120+
### Commands
121+
122+
#### Scaffold a new project
123+
124+
```bash
125+
bun create red-app <directory> --license <key> [--version <ver>]
126+
```
127+
128+
Validates the license, downloads the latest stable release (or a pinned `--version`), verifies SHA-256 integrity, and extracts into the target directory with `.red-license`, `.red-version`, and Claude skills intact.
129+
130+
#### List available releases
131+
132+
```bash
133+
bunx create-red-app versions
134+
```
135+
136+
Outputs semver-sorted JSON to stdout. Includes prereleases, marks the latest stable.
137+
138+
#### Show release details
139+
140+
```bash
141+
bunx create-red-app info <version>
142+
```
143+
144+
Outputs normalised release metadata as JSON — changelog, migration manifest (always a parsed object), checksum, and more.
145+
146+
#### Download a release
147+
148+
```bash
149+
bunx create-red-app download <version>
150+
```
151+
152+
Downloads and extracts a release to a temp directory without touching your project. Outputs JSON with `version`, `archiveFileName`, `archivePath`, and `extractedPath`. Inspection primitive used by the `red-update` Claude skill.
153+
154+
### Options
155+
156+
| Flag | Description |
157+
|------|-------------|
158+
| `--license <key>` | License key. Also read from the `RED_LICENSE_KEY` env var or `.red-license` in the current directory. |
159+
| `--version <ver>` | Pin the scaffold to a specific release version. |
160+
| `--api-url <url>` | Override the license API base URL (staging / local dev). |
161+
| `-h, --help` | Show help. |
162+
| `-v, --version` | Show CLI version. |
163+
164+
---
165+
166+
## License
167+
168+
- **CLI (`create-red-app`)** — MIT. See [LICENSE](LICENSE).
169+
- **RED boilerplate, AI Module, and Claude skills** — commercial license per tier. [See pricing →](https://red.dev3o.com/#pricing)
170+
171+
Both flip to a fully permissive open-source license when this repository reaches **10,000 ⭐**. See [The 10k Pledge](#-the-10k-pledge).
172+
173+
---
174+
175+
<p align="center">
176+
Built by <a href="https://dev3o.com"><strong>dev3o</strong></a> — the boring parts that actually matter.
177+
</p>

SHOWCASE.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Built with RED
2+
3+
Real products shipping on the RED stack. Add yours below.
4+
5+
---
6+
7+
## Aporia
8+
9+
**The AI product thinking partner that forces clarity before code.**
10+
11+
A Socratic interrogation platform for founders and product teams. Aporia uses an opinionated AI interlocutor to extract tacit product decisions — surfacing contradictions, challenging assumptions, and forcing the choices founders tend to avoid. Built on RED's AI Module for multi-party streaming, persistent agent memory via boundaries, and long-running deep-thinking tasks.
12+
13+
- 🌐 **Website:** [useaporia.com](https://useaporia.com)
14+
- 🧱 **Built on:** RED (Convex · React 19 · Bun · Better Auth · Autumn)
15+
- 🤖 **AI Module usage:** agents, boundaries, sync tasks, external async tasks (for deep research)
16+
- 👤 **By:** [Pierre TOMASINA](https://github.com/pierozi)
17+
18+
---
19+
20+
## Add Your Product
21+
22+
Shipping something on RED? We'd love to feature it.
23+
24+
**How to submit:**
25+
26+
1. [Fork this repo](https://github.com/agentic-dev3o/red/fork) and open `SHOWCASE.md`.
27+
2. Add an entry at the **top of the list** (most recent first), following the template below.
28+
3. Keep it honest — no fluff, no marketing speak.
29+
4. Open a pull request with the title `showcase: <your product name>`.
30+
31+
32+
### Guidelines
33+
34+
- **One entry per product.** If you ship multiple products on RED, that's fantastic — open one PR per product.
35+
- **Be concrete about AI Module usage.** "Uses the AI Module" says nothing. "Uses boundaries to scope memory per customer workspace, and external async tasks for overnight report generation" is useful.
36+
- **We reserve the right to edit for clarity** and to reorder entries occasionally (e.g. highlighting a product with a particularly instructive integration).
37+
38+
Thank you for building in public with RED.

biome.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": ["src/**", "scripts/**", "test/**"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "tab"
15+
},
16+
"linter": {
17+
"enabled": true,
18+
"rules": {
19+
"recommended": true,
20+
"style": {
21+
"noUselessElse": "error"
22+
}
23+
}
24+
},
25+
"overrides": [
26+
{
27+
"includes": ["**/*.test.ts", "**/*.test.tsx", "**/*.integration.test.ts"],
28+
"linter": {
29+
"rules": {
30+
"suspicious": {
31+
"noExplicitAny": "off"
32+
}
33+
}
34+
}
35+
}
36+
],
37+
"javascript": {
38+
"formatter": {
39+
"quoteStyle": "double",
40+
"lineWidth": 120,
41+
"semicolons": "asNeeded"
42+
}
43+
},
44+
"assist": {
45+
"enabled": true,
46+
"actions": {
47+
"source": {
48+
"organizeImports": "on"
49+
}
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)