@dz9systems/vibeinfra 0.0.0-stage → 0.0.1

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 CHANGED
@@ -1,3 +1,130 @@
1
- # Temporary Holding Version
1
+ # VibeInfra
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ VibeInfra `0.0.1` is an early developer preview of a local command-line tool. It inspects a React + Vite app and can deploy that app to a Firebase project you own.
4
+
5
+ Deployment and cloud provisioning are experimental. A Hosting deploy has been run on macOS. It has not been validated on Windows or Linux. The CLI uses Node's path APIs and npm's Windows command shim, but those platforms have not been part of a live deploy.
6
+
7
+ You own the Google Cloud project, the Firebase resources, and the bill. VibeInfra is not a hosting provider. It does not attach a billing account, and it does not call the Cloud Billing API. Firebase Hosting on the Spark plan has a free allowance. Usage beyond the published quota can require the Blaze plan and can cost money. You are responsible for those costs.
8
+
9
+ The npm package name is `@dz9systems/vibeinfra`. The command it installs is `vibeinfra`. The license field remains `UNLICENSED`. [TERMS.md](TERMS.md) permits installation and use of this developer preview and keeps ownership with the copyright holder. Domain and trademark availability are unverified.
10
+
11
+ ## Requirements
12
+
13
+ - Node.js 20 or newer. Automated tests passed on Node.js 22.23.5 (22 LTS) and Node.js 20.16.0. Some transitive dependencies print an engine warning on Node.js 21.
14
+ - npm, pnpm, yarn, or bun, matching the lockfile in the app you deploy
15
+ - For a deploy: Google Cloud CLI, then `gcloud auth application-default login`
16
+
17
+ Application Default Credentials are separate from `gcloud auth login` and from `firebase login`. VibeInfra uses ADC for Firebase Management, Cloud Resource Manager, and Service Usage. It does not read the Firebase CLI credential file, and it does not ask you to create a service account JSON key.
18
+
19
+ Hosting upload goes through the `firebase-tools` package. That package chooses credentials in this order: `FIREBASE_TOKEN`, an existing `firebase login` session, `GOOGLE_APPLICATION_CREDENTIALS`, then ADC. Use the same Google account for both, or log out of the Firebase CLI when ADC should perform the upload.
20
+
21
+ ## Install
22
+
23
+ From the npm registry, after this preview is published:
24
+
25
+ ```bash
26
+ npx @dz9systems/vibeinfra --help
27
+ npx @dz9systems/vibeinfra --version
28
+ npx @dz9systems/vibeinfra analyze
29
+ ```
30
+
31
+ From a local checkout of this repository:
32
+
33
+ ```bash
34
+ npm install
35
+ npm test
36
+ npm run build
37
+ node dist/bin.js --help
38
+ node dist/bin.js --version
39
+ node dist/bin.js analyze
40
+ ```
41
+
42
+ ## Quick start
43
+
44
+ `analyze` and `plan` only read the app directory. They do not contact Google and they do not write files.
45
+
46
+ ```bash
47
+ npx @dz9systems/vibeinfra analyze
48
+ npx @dz9systems/vibeinfra plan
49
+ npx @dz9systems/vibeinfra deploy --dry-run --project YOUR_PROJECT_ID
50
+ ```
51
+
52
+ A real deploy is experimental. Pass a project you intend to change. The command prints the plan and waits until you type `yes`. In a noninteractive shell, pass `--yes` as well. `--yes` approves that plan. It does not approve a billing change.
53
+
54
+ ```bash
55
+ npx @dz9systems/vibeinfra deploy --project YOUR_PROJECT_ID
56
+ npx @dz9systems/vibeinfra deploy --create-project YOUR_NEW_PROJECT_ID
57
+ npx @dz9systems/vibeinfra status
58
+ ```
59
+
60
+ `--create-project` creates the Google Cloud project only when it does not already exist, then adds Firebase, and only after the plan is approved. Add `--parent organizations/123` or `--parent folders/123` when your account must create the project under an organization or folder. VibeInfra does not guess a parent.
61
+
62
+ There is no default project id. A deploy without `--project` or `--create-project` asks you for one, or it stops. `--resume` is the only flag that reads `.vibeinfra/journal.json` and reuses that project id. A journal in any other directory, including `.vibedeploy/`, is ignored. If `--project` names a different id than the VibeInfra journal, the command stops instead of choosing one of them.
63
+
64
+ ## Commands in this preview
65
+
66
+ | Command | Behavior |
67
+ | --- | --- |
68
+ | `vibeinfra analyze [path]` | Reads `package.json`, lockfiles, Vite config, dependencies, `firebase.json`, and `.firebaserc`. Default path is the current directory. |
69
+ | `vibeinfra plan [path]` | Prints the Hosting plan for a React + Vite app. |
70
+ | `vibeinfra deploy [path] --dry-run` | Prints that plan and reports `dry-run`. No network calls and no file writes. |
71
+ | `vibeinfra doctor [path]` | Checks the app. When ADC is present, it reads those credentials. `--project` adds a read-only project lookup. |
72
+ | `vibeinfra status [path]` | Prints `.vibeinfra/journal.json` when that file exists. |
73
+ | `vibeinfra deploy [path]` | Experimental. Authenticates, reconciles the project you named, prints the plan, and waits for approval. |
74
+
75
+ Other flags: `--json`, `--output`, `--package-manager`, `--app`, `--non-interactive`.
76
+
77
+ `templates/react-vite` is a small sample app in this repository. It is not included in the npm package. Its `.env.example` file contains placeholder web-config values, not a real Firebase project.
78
+
79
+ ```bash
80
+ node dist/bin.js analyze templates/react-vite
81
+ node dist/bin.js plan templates/react-vite
82
+ node dist/bin.js deploy templates/react-vite --dry-run
83
+ ```
84
+
85
+ ## What an approved deploy can change
86
+
87
+ After approval, this preview can create a Google Cloud project, add Firebase to it, enable `firebase.googleapis.com` and `firebasehosting.googleapis.com`, register one web app, merge local Firebase config, build on your machine, upload Hosting, and request the `web.app` URL.
88
+
89
+ The local build does not receive `GOOGLE_APPLICATION_CREDENTIALS`, `FIREBASE_TOKEN`, `GOOGLE_OAUTH_ACCESS_TOKEN`, or `CLOUDSDK_AUTH_ACCESS_TOKEN`.
90
+
91
+ On an approved deploy, VibeInfra writes `.env.local` only for `VITE_FIREBASE_*` variables the app references, writes empty keys to `.env.example`, and adds env files and `.vibeinfra/` to `.gitignore`. The journal stores project and app ids, not the API key. Firebase web config is public client configuration. Security rules, not that config, protect data.
92
+
93
+ ## Results
94
+
95
+ | Result | Meaning |
96
+ | --- | --- |
97
+ | `succeeded` | Hosting deploy finished and the `web.app` URL returned HTTP 2xx. |
98
+ | `partial` | A cloud resource changed, then a later step failed. Nothing is deleted. Run `vibeinfra deploy --resume` after you fix the failure. |
99
+ | `failed` | No cloud resource was changed by the recorded steps. |
100
+ | `dry-run` | No network calls and no file writes. |
101
+
102
+ Exit codes are `0` for success or dry-run, `1` for a user or validation failure, `2` for a provider failure, and `3` for a partial deployment.
103
+
104
+ Errors include a code, a message, and a remediation. Printed messages are redacted. The journal is refused if it would contain a private key, refresh token, or bearer token.
105
+
106
+ ## Not in this preview
107
+
108
+ This version does not include a web dashboard, GitHub import, subscriptions, an MCP server, Firestore database creation, Auth provider setup, Cloud Functions, Storage, Secret Manager, or budget alerts. Next.js and other frameworks can be reported by `analyze`. They are not deployed.
109
+
110
+ A successful URL check only means Hosting returned HTTP 2xx.
111
+
112
+ ## Package contents
113
+
114
+ The published package is `@dz9systems/vibeinfra@0.0.1`. `npm pack` includes `package.json`, `README.md`, `TERMS.md`, and `dist/`. It does not include source, tests, templates, environment files, credential files, or deployment journals. Runtime dependencies are `commander`, `firebase-tools`, and `google-auth-library`. The license field stays `UNLICENSED`.
115
+
116
+ The official npm publishing directory is this repository root: the directory that contains the public `package.json` named `@dz9systems/vibeinfra`. Publish only when you intend to release:
117
+
118
+ ```bash
119
+ npm publish
120
+ ```
121
+
122
+ Workspace packages under `packages/` are private. Publish the root package only, without `--workspaces`.
123
+
124
+ ## Tests
125
+
126
+ ```bash
127
+ npm test
128
+ ```
129
+
130
+ The default suite does not call Google. `tests/live.test.ts` stays skipped unless `VIBEINFRA_LIVE=1` and `VIBEINFRA_LIVE_PROJECT` are set, and setting them does not deploy.
package/TERMS.md ADDED
@@ -0,0 +1,19 @@
1
+ # VibeInfra developer preview terms
2
+
3
+ These terms apply to VibeInfra version 0.0.1, the npm package `@dz9systems/vibeinfra`.
4
+
5
+ The package `license` field is `UNLICENSED`. These terms allow installation and use of this developer preview. They are not an open-source license, and they do not transfer ownership.
6
+
7
+ ## Ownership
8
+
9
+ VibeInfra, including its source code, command-line tool, documentation, and package contents, is proprietary. The copyright holder retains all right, title, and interest in the software.
10
+
11
+ ## Permission
12
+
13
+ You may install `@dz9systems/vibeinfra` and run this developer preview on computers you control. You may use it to inspect applications you are allowed to inspect and to deploy those applications to Firebase and Google Cloud projects you are authorized to change.
14
+
15
+ This permission covers version 0.0.1. It does not give you ownership of VibeInfra, the right to sell it, or the right to present it as your own product.
16
+
17
+ ## Preview
18
+
19
+ Deployment and cloud provisioning in this version are experimental. The software is provided as is, without warranty of any kind. You are responsible for the cloud resources you approve and for any charges those resources create.