create-githat-app 1.0.0 → 1.0.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 +23 -4
- package/dist/cli.js +757 -132
- package/package.json +34 -9
- package/templates/base/README.md.hbs +94 -0
- package/templates/nextjs/app/(auth)/reset-password/page.tsx.hbs +98 -0
- package/templates/nextjs/app/page.tsx.hbs +55 -0
- package/templates/nextjs/proxy.ts.hbs +10 -0
- package/templates/react-vite/src/pages/Home.tsx.hbs +55 -0
- package/templates/nextjs/middleware.ts.hbs +0 -10
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# create-githat-app
|
|
2
2
|
|
|
3
|
-
Scaffold
|
|
3
|
+
Scaffold a production-ready app with a fully-managed backend — auth, teams, orgs, API keys, MCP verification, and AI agent identity. **No backend to deploy.**
|
|
4
|
+
|
|
5
|
+
[GitHat](https://githat.io) is your backend. When you run `create-githat-app`, your generated project connects to GitHat's hosted platform at `api.githat.io`. User accounts, organizations, teams, API keys, MCP servers, and AI agents are all stored and managed by GitHat. You write frontend code only.
|
|
4
6
|
|
|
5
7
|
## Install & Launch
|
|
6
8
|
|
|
@@ -128,14 +130,15 @@ npx create-githat-app --version
|
|
|
128
130
|
|
|
129
131
|
## What You Get
|
|
130
132
|
|
|
131
|
-
A production-ready project
|
|
133
|
+
A production-ready project connected to GitHat's hosted backend:
|
|
132
134
|
|
|
135
|
+
- **Fully-managed backend** — `api.githat.io` handles auth, orgs, teams, API keys, agents, MCP
|
|
133
136
|
- **Auth pages** — sign-in, sign-up, forgot password, email verification
|
|
134
137
|
- **Protected dashboard** — sidebar navigation, org switcher, user button
|
|
135
138
|
- **`@githat/nextjs` SDK** — `<GitHatProvider>`, `<ProtectedRoute>`, `useAuth()`
|
|
136
|
-
- **`githat/` platform folder** — typed API client
|
|
139
|
+
- **`githat/` platform folder** — typed API client for all 42+ backend endpoints
|
|
137
140
|
- **Dark theme** — zinc/purple design system out of the box
|
|
138
|
-
- **Database ready** — Prisma or Drizzle
|
|
141
|
+
- **Database ready** — Prisma or Drizzle for your app's own data (optional)
|
|
139
142
|
- **Tailwind CSS 4** — utility-first styling (optional)
|
|
140
143
|
|
|
141
144
|
## The `githat/` Folder
|
|
@@ -168,6 +171,22 @@ githat/
|
|
|
168
171
|
|
|
169
172
|
All API calls go to `api.githat.io`. The client handles auth tokens and automatic refresh.
|
|
170
173
|
|
|
174
|
+
## Your Backend is GitHat
|
|
175
|
+
|
|
176
|
+
You don't deploy or maintain a backend. GitHat's hosted platform handles:
|
|
177
|
+
|
|
178
|
+
- **Authentication** — sign-up, sign-in, email verification, password reset
|
|
179
|
+
- **Organizations** — create, switch, branding, custom domains
|
|
180
|
+
- **Team management** — invite members by email, assign roles (owner/admin/member), remove
|
|
181
|
+
- **API key management** — publishable + secret keys per app, rotation
|
|
182
|
+
- **MCP server registration** — domain verification via DNS TXT, OAuth2 credentials
|
|
183
|
+
- **AI agent registration** — Ethereum wallet verification, challenge-response tokens
|
|
184
|
+
- **Email delivery** — verification emails, invitations, password resets (via AWS SES)
|
|
185
|
+
- **Database** — users, orgs, teams, apps, agents, MCP servers (DynamoDB, managed by GitHat)
|
|
186
|
+
- **Public verification** — anyone can verify an agent or MCP server at `githat.io/verify/`
|
|
187
|
+
|
|
188
|
+
Your data lives in GitHat's infrastructure. You write frontend code, GitHat handles the rest.
|
|
189
|
+
|
|
171
190
|
## Three Identity Types
|
|
172
191
|
|
|
173
192
|
GitHat supports three types of identity in a single platform:
|