create-rari-app 0.5.8 → 0.5.10
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rari-app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.10",
|
|
5
5
|
"description": "Create Runtime Accelerated Rendering Infrastructure (rari) applications with no build configuration",
|
|
6
6
|
"author": "Ryan Skinner",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@clack/prompts": "^1.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/node": "^25.
|
|
47
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
48
|
-
"vite-plus": "^0.1.
|
|
46
|
+
"@types/node": "^25.9.1",
|
|
47
|
+
"@typescript/native-preview": "^7.0.0-dev.20260525.1",
|
|
48
|
+
"vite-plus": "^0.1.22"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "pnpm clean && pnpm typecheck && vp pack",
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# {{PROJECT_NAME}}
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Runtime Accelerated Rendering Infrastructure
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A React Server Components application powered by [rari](https://rari.build).
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
# Install dependencies
|
|
@@ -14,33 +16,41 @@ A high-performance React Server Components application powered by [rari](https:/
|
|
|
14
16
|
|
|
15
17
|
Visit [http://localhost:5173](http://localhost:5173) to see your app.
|
|
16
18
|
|
|
17
|
-
##
|
|
19
|
+
## Features
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
- **App Router** — File-based routing with layouts, loading states, and error boundaries
|
|
22
|
+
- **React Server Components** — Server components by default, client components when you need them
|
|
23
|
+
- **Rust-powered Runtime** — HTTP server, RSC renderer, and routing written in Rust with embedded V8
|
|
24
|
+
- **Streaming SSR** — Progressive rendering with Suspense boundaries
|
|
25
|
+
- **Hot Module Reloading** — Instant feedback during development
|
|
26
|
+
- **TypeScript-first** — Full type safety across the server/client boundary
|
|
27
|
+
- **Zero Configuration** — Works out of the box with pre-built binaries
|
|
28
|
+
- **Cross-platform** — Supports macOS, Linux, and Windows
|
|
20
29
|
|
|
21
|
-
|
|
30
|
+
## Deploy to the Cloud
|
|
22
31
|
|
|
23
|
-
|
|
32
|
+
This rari application is pre-configured for cloud deployment.
|
|
24
33
|
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
git add .
|
|
28
|
-
git commit -m "Initial commit"
|
|
29
|
-
git push origin main
|
|
30
|
-
```
|
|
34
|
+
### Railway
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
1. Push to GitHub:
|
|
37
|
+
```bash
|
|
38
|
+
git add .
|
|
39
|
+
git commit -m "Initial commit"
|
|
40
|
+
git push origin main
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
2. Deploy to Railway:
|
|
33
44
|
- Go to [railway.app](https://railway.app)
|
|
34
45
|
- Create new project → "Deploy from GitHub repo"
|
|
35
46
|
- Select your repository
|
|
36
47
|
- Click "Deploy Now"
|
|
37
48
|
|
|
38
|
-
3.
|
|
49
|
+
3. Generate a domain:
|
|
39
50
|
- In Railway dashboard → Settings → Networking
|
|
40
51
|
- Click "Generate Domain"
|
|
41
|
-
- Your app will be live! 🎉
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
**CLI Setup**
|
|
44
54
|
|
|
45
55
|
```bash
|
|
46
56
|
# Configure Railway deployment files
|
|
@@ -49,23 +59,23 @@ This rari application is pre-configured for cloud deployment.
|
|
|
49
59
|
# Follow the instructions to deploy
|
|
50
60
|
```
|
|
51
61
|
|
|
52
|
-
###
|
|
62
|
+
### Render
|
|
53
63
|
|
|
54
|
-
1.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
1. Push to GitHub:
|
|
65
|
+
```bash
|
|
66
|
+
git add .
|
|
67
|
+
git commit -m "Initial commit"
|
|
68
|
+
git push origin main
|
|
69
|
+
```
|
|
60
70
|
|
|
61
|
-
2.
|
|
71
|
+
2. Deploy to Render:
|
|
62
72
|
- Go to [render.com](https://render.com)
|
|
63
|
-
- Create new "Web Service"
|
|
73
|
+
- Create a new "Web Service"
|
|
64
74
|
- Connect your GitHub repository
|
|
65
75
|
- Render auto-detects Node.js and uses `render.yaml`
|
|
66
76
|
- Click "Create Web Service"
|
|
67
77
|
|
|
68
|
-
|
|
78
|
+
**CLI Setup**
|
|
69
79
|
|
|
70
80
|
```bash
|
|
71
81
|
# Configure Render deployment files
|
|
@@ -74,49 +84,31 @@ This rari application is pre-configured for cloud deployment.
|
|
|
74
84
|
# Follow the instructions to deploy
|
|
75
85
|
```
|
|
76
86
|
|
|
77
|
-
##
|
|
87
|
+
## Available Scripts
|
|
78
88
|
|
|
79
89
|
```bash
|
|
80
90
|
# Development
|
|
81
|
-
{{PACKAGE_MANAGER}} run dev
|
|
82
|
-
{{PACKAGE_MANAGER}} run build
|
|
91
|
+
{{PACKAGE_MANAGER}} run dev # Start development server
|
|
92
|
+
{{PACKAGE_MANAGER}} run build # Build for production
|
|
83
93
|
|
|
84
94
|
# Production
|
|
85
|
-
{{PACKAGE_MANAGER}} start
|
|
86
|
-
{{PACKAGE_MANAGER}} run start:local # Start local production server
|
|
95
|
+
{{PACKAGE_MANAGER}} start # Start production server
|
|
87
96
|
|
|
88
97
|
# Deployment
|
|
89
|
-
{{PACKAGE_MANAGER}} run deploy:railway #
|
|
90
|
-
{{PACKAGE_MANAGER}} run deploy:render #
|
|
98
|
+
{{PACKAGE_MANAGER}} run deploy:railway # Set up Railway deployment
|
|
99
|
+
{{PACKAGE_MANAGER}} run deploy:render # Set up Render deployment
|
|
91
100
|
|
|
92
101
|
# Code Quality
|
|
93
|
-
{{PACKAGE_MANAGER}} run
|
|
94
|
-
{{PACKAGE_MANAGER}} run typecheck # Run TypeScript checks
|
|
102
|
+
{{PACKAGE_MANAGER}} run typecheck # Run TypeScript checks
|
|
95
103
|
```
|
|
96
104
|
|
|
97
|
-
##
|
|
98
|
-
|
|
99
|
-
Cloud platforms automatically provide:
|
|
100
|
-
- `PORT` - Server port (platform assigns this)
|
|
101
|
-
- `NODE_ENV=production` - Production mode
|
|
102
|
-
|
|
103
|
-
Optional variables you can set:
|
|
104
|
-
- `RUST_LOG=debug` - Rust logging level
|
|
105
|
-
|
|
106
|
-
## 🏗️ Architecture
|
|
107
|
-
|
|
108
|
-
- **⚡ Rust Runtime**: Native performance with zero-cost abstractions
|
|
109
|
-
- **🚀 React Server Components**: True server-side rendering
|
|
110
|
-
- **📁 File-based Routing**: Automatic route generation
|
|
111
|
-
- **🎯 Zero Configuration**: Works out of the box
|
|
112
|
-
|
|
113
|
-
## 📚 Learn More
|
|
105
|
+
## Learn More
|
|
114
106
|
|
|
115
|
-
- [rari Documentation](https://rari.
|
|
107
|
+
- [rari Documentation](https://rari.build/docs)
|
|
116
108
|
- [Railway Documentation](https://docs.railway.app)
|
|
117
109
|
- [Render Documentation](https://render.com/docs)
|
|
118
110
|
- [React Server Components](https://react.dev/reference/react/use-server)
|
|
119
111
|
|
|
120
112
|
---
|
|
121
113
|
|
|
122
|
-
Built with
|
|
114
|
+
Built with [rari](https://rari.build)
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
# Dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
.pnpm-store/
|
|
2
|
+
node_modules
|
|
4
3
|
|
|
5
4
|
# Production builds
|
|
6
|
-
bin
|
|
7
|
-
dist
|
|
8
|
-
build
|
|
5
|
+
bin
|
|
6
|
+
dist
|
|
7
|
+
build
|
|
9
8
|
|
|
10
9
|
# Cache
|
|
11
|
-
.cache
|
|
10
|
+
.cache
|
|
12
11
|
|
|
13
12
|
# Environment variables
|
|
14
13
|
.env
|
|
@@ -43,7 +42,7 @@ Thumbs.db
|
|
|
43
42
|
|
|
44
43
|
|
|
45
44
|
# Railway
|
|
46
|
-
.railway
|
|
45
|
+
.railway
|
|
47
46
|
|
|
48
47
|
# Render
|
|
49
|
-
.render
|
|
48
|
+
.render
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
6
|
+
"packageManager": "pnpm@11.3.0",
|
|
6
7
|
"description": "A Runtime Accelerated Rendering Infrastructure (rari) application",
|
|
7
8
|
"engines": {
|
|
8
9
|
"node": ">=22.12.0"
|
|
@@ -23,11 +24,11 @@
|
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@tailwindcss/vite": "^4.3.0",
|
|
26
|
-
"@types/node": "^25.
|
|
27
|
-
"@types/react": "^19.2.
|
|
27
|
+
"@types/node": "^25.9.1",
|
|
28
|
+
"@types/react": "^19.2.15",
|
|
28
29
|
"@types/react-dom": "^19.2.3",
|
|
29
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
30
|
+
"@typescript/native-preview": "^7.0.0-dev.20260525.1",
|
|
30
31
|
"tailwindcss": "^4.3.0",
|
|
31
|
-
"vite-plus": "^0.1.
|
|
32
|
+
"vite-plus": "^0.1.22"
|
|
32
33
|
}
|
|
33
34
|
}
|