@hype-stack/cli 1.10.0 → 1.11.0
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 +85 -0
- package/dist/{cli-BdHkFxeZ.js → cli-CKs-7-fR.js} +2 -2
- package/dist/config/bin.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +30 -1
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Hype Stack CLI
|
|
2
|
+
|
|
3
|
+
<p>
|
|
4
|
+
<a href="https://www.npmjs.com/package/@hype-stack/cli"><img src="https://img.shields.io/npm/v/@hype-stack/cli?color=e8590c&label=npm" alt="npm version" /></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@hype-stack/cli"><img src="https://img.shields.io/npm/dm/@hype-stack/cli?color=e8590c" alt="npm downloads" /></a>
|
|
6
|
+
<a href="https://github.com/BetterTyped/hype-stack"><img src="https://img.shields.io/github/stars/BetterTyped/hype-stack?style=flat&color=e8590c" alt="GitHub stars" /></a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
One command scaffolds a full-stack TypeScript app: React 19 frontend, Hono API, Postgres with Prisma and Kysely, and typed requests end to end. A second command composes features into it: auth, billing, notifications, a mobile app, a browser extension. The code lands in your repo and you own every line of it.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx @hype-stack/cli create my-app
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Built on the open-source [Hype Stack template](https://github.com/BetterTyped/hype-stack). See it in action at [hype-stack.dev](https://www.hype-stack.dev).
|
|
16
|
+
|
|
17
|
+
## Why this instead of a boilerplate
|
|
18
|
+
|
|
19
|
+
Boilerplates hand you one frozen snapshot. Hype Stack works like shadcn/ui, but for whole features: the CLI copies real source files into your project, runs codemods, merges the Prisma schema, and wires the routes. There is no runtime dependency on us and no npm version to be locked into. Delete what you don't like, rewrite what you do.
|
|
20
|
+
|
|
21
|
+
- **Typed end to end.** Backend routes in [Hono](https://hono.dev) become a typed frontend SDK through [HyperFetch](https://hyperfetch.bettertyped.com). Rename a field on the server and the frontend fails to compile.
|
|
22
|
+
- **Pick your features.** [Feature packs](https://www.hype-stack.dev/packs) cover auth with organizations, Stripe billing, notifications, file uploads, and more. `compose` resolves their dependencies and installs them together.
|
|
23
|
+
- **Every platform from one codebase.** Web, admin panel, [mobile app](https://www.hype-stack.dev/mobile-app) on Expo, desktop, and a [browser extension](https://www.hype-stack.dev/browser-extension).
|
|
24
|
+
- **Deploys itself.** `hype-stack deploy` ships to Railway or Fly.io, provisions Postgres, Valkey, and a storage bucket, sets env vars, and runs migrations.
|
|
25
|
+
|
|
26
|
+
## Quick start
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Scaffold a new project
|
|
30
|
+
npx @hype-stack/cli create my-app
|
|
31
|
+
|
|
32
|
+
# Set up env vars and get the start command
|
|
33
|
+
cd my-app
|
|
34
|
+
npx @hype-stack/cli onboard
|
|
35
|
+
|
|
36
|
+
# Add features when you need them
|
|
37
|
+
npx @hype-stack/cli compose
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Prefer starting from a finished app? Browse the [templates](https://www.hype-stack.dev/templates) and install one by id with `npx @hype-stack/cli template <id>`.
|
|
41
|
+
|
|
42
|
+
## Commands
|
|
43
|
+
|
|
44
|
+
| Command | What it does |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| `create` | Scaffold a new Hype Stack project from the template |
|
|
47
|
+
| `onboard` | Set up env vars and print the start command |
|
|
48
|
+
| `compose` | Pick feature packs and install them into your project |
|
|
49
|
+
| `template <id>` | Install a full template, with starter and layout swaps on top |
|
|
50
|
+
| `init` | Initialize `stack.json` in an existing project |
|
|
51
|
+
| `deploy` | Deploy web apps and the server, and provision Postgres, Valkey, and a bucket |
|
|
52
|
+
| `deploy mobile` | Build (and optionally submit) the Expo app through EAS |
|
|
53
|
+
| `deploy extension` | Build the browser extension and publish it to the Chrome, Edge, and Firefox stores |
|
|
54
|
+
| `mcp install` | Register the MCP server in your AI editor's config |
|
|
55
|
+
| `login` / `logout` | Authenticate to install packs your organization owns |
|
|
56
|
+
|
|
57
|
+
Every command has `--help`, and the deploy commands take `--dry-run` to print every step without creating anything.
|
|
58
|
+
|
|
59
|
+
## What's in the stack
|
|
60
|
+
|
|
61
|
+
React 19, [TanStack Router](https://tanstack.com/router), Tailwind CSS v4, and shadcn/ui on the frontend. [Hono](https://hono.dev) on the backend with [Prisma](https://www.prisma.io) migrations, [Kysely](https://kysely.dev) queries, Postgres, and Valkey caching. WorkOS auth with sessions and organizations in the SaaS starters. Expo for mobile. Vite, pnpm, and oxc for tooling. The full breakdown is in the [docs](https://www.hype-stack.dev/docs).
|
|
62
|
+
|
|
63
|
+
## MCP server for AI editors
|
|
64
|
+
|
|
65
|
+
The CLI ships a [Model Context Protocol](https://www.hype-stack.dev/mcp) server, so Claude Code, Cursor, and other MCP clients can browse packs and compose features into your project directly from the editor:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npx @hype-stack/cli mcp install
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Links
|
|
72
|
+
|
|
73
|
+
- [Website](https://www.hype-stack.dev)
|
|
74
|
+
- [Documentation](https://www.hype-stack.dev/docs)
|
|
75
|
+
- [Feature packs](https://www.hype-stack.dev/packs)
|
|
76
|
+
- [Templates](https://www.hype-stack.dev/templates)
|
|
77
|
+
- [Pricing](https://www.hype-stack.dev/pricing)
|
|
78
|
+
- [Blog](https://www.hype-stack.dev/blog)
|
|
79
|
+
- [Roadmap](https://www.hype-stack.dev/roadmap)
|
|
80
|
+
- [Template source on GitHub](https://github.com/BetterTyped/hype-stack)
|
|
81
|
+
- [X / Twitter](https://x.com/HypeStackDev)
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
The template and free packs are open source. Paid packs fund maintenance of the whole stack; see [pricing](https://www.hype-stack.dev/pricing) for what each tier includes.
|
|
@@ -21,7 +21,7 @@ import { McpServer as fe } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
21
21
|
import { StdioServerTransport as pe } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
22
22
|
import { Writable as me } from "node:stream";
|
|
23
23
|
//#region src/constants/constants.ts
|
|
24
|
-
var he = "1.
|
|
24
|
+
var he = "1.11.0", ge = "BetterTyped/hype-stack", _e = "main", ve = `gh:${ge}`, ye = "HYPE_STACK_TEMPLATE_REF", be = "/cli/template-channel", xe = "stack.json", Se = "/schema/stack.json", Ce = "https://api.hype-stack.dev", we = "HYPE_STACK_API_URL", Te = "https://www.hype-stack.dev", Ee = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/, De = [
|
|
25
25
|
{
|
|
26
26
|
value: "cursor",
|
|
27
27
|
label: "Cursor",
|
|
@@ -6100,7 +6100,7 @@ async function pd() {
|
|
|
6100
6100
|
commit: null,
|
|
6101
6101
|
source: "env"
|
|
6102
6102
|
};
|
|
6103
|
-
if (id === "1.
|
|
6103
|
+
if (id === "1.11.0") return {
|
|
6104
6104
|
ref: _e,
|
|
6105
6105
|
commit: null,
|
|
6106
6106
|
source: "dev"
|
package/dist/config/bin.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, o as i, r as a, s as o, t as s } from "./cli-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, o as i, r as a, s as o, t as s } from "./cli-CKs-7-fR.js";
|
|
2
2
|
export { i as composeCommand, r as createCommand, s as createProgram, e as deployCommand, o as ensureInit, t as initCommand, n as loginCommand, a as logoutCommand };
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hype-stack/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
|
+
"description": "Scaffold a full-stack TypeScript app (React 19, Hono, Prisma, Kysely, Postgres) and compose features like auth, billing, and notifications into code you own. Deploys to Railway or Fly.io.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"full-stack",
|
|
8
|
+
"fullstack",
|
|
9
|
+
"typescript",
|
|
10
|
+
"template",
|
|
11
|
+
"boilerplate",
|
|
12
|
+
"starter",
|
|
13
|
+
"scaffold",
|
|
14
|
+
"react",
|
|
15
|
+
"tanstack-router",
|
|
16
|
+
"hono",
|
|
17
|
+
"prisma",
|
|
18
|
+
"kysely",
|
|
19
|
+
"postgres",
|
|
20
|
+
"saas",
|
|
21
|
+
"saas-starter",
|
|
22
|
+
"expo",
|
|
23
|
+
"react-native",
|
|
24
|
+
"browser-extension",
|
|
25
|
+
"tailwindcss",
|
|
26
|
+
"mcp",
|
|
27
|
+
"monorepo"
|
|
28
|
+
],
|
|
29
|
+
"homepage": "https://www.hype-stack.dev",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/BetterTyped/hype-stack/issues"
|
|
32
|
+
},
|
|
4
33
|
"type": "module",
|
|
5
34
|
"main": "./dist/index.js",
|
|
6
35
|
"types": "./dist/index.d.ts",
|