prisma-flow 0.1.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/LICENSE +21 -0
- package/README.md +53 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3737 -0
- package/package.json +69 -0
- package/public/404/index.html +1 -0
- package/public/404.html +1 -0
- package/public/__next.__PAGE__.txt +9 -0
- package/public/__next._full.txt +19 -0
- package/public/__next._head.txt +6 -0
- package/public/__next._index.txt +6 -0
- package/public/__next._tree.txt +2 -0
- package/public/_next/static/chunks/031d4hdncmqdj.js +1 -0
- package/public/_next/static/chunks/03q3r_bvmqrr8.js +2 -0
- package/public/_next/static/chunks/05-c3ty_6dwfk.js +1 -0
- package/public/_next/static/chunks/0_8y92xg60ach.js +31 -0
- package/public/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/public/_next/static/chunks/0drl6u3r7627z.js +1 -0
- package/public/_next/static/chunks/0m7w4t_yx6o6a.js +1 -0
- package/public/_next/static/chunks/0ov8yxc8yngji.js +1 -0
- package/public/_next/static/chunks/0p4y8c2fq43wu.js +1 -0
- package/public/_next/static/chunks/0s76k7hq9-wfk.css +1 -0
- package/public/_next/static/chunks/0zv5uyi-a4e2y.js +1 -0
- package/public/_next/static/chunks/1kk4shlfeass1.js +1 -0
- package/public/_next/static/chunks/2nykiepra7i1k.js +1 -0
- package/public/_next/static/chunks/2o1jw19xgqkzz.js +5 -0
- package/public/_next/static/chunks/2ohti557qol0g.js +1 -0
- package/public/_next/static/chunks/3cdvjzy78ylzj.js +1 -0
- package/public/_next/static/chunks/3w1qpcrpp5s4-.js +2 -0
- package/public/_next/static/chunks/3xrarg7xfb7_g.js +1 -0
- package/public/_next/static/chunks/turbopack-0r_p3gsi1hu9t.js +1 -0
- package/public/_next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- package/public/_next/static/ySSMgkts9h6_mRnScxk9f/_buildManifest.js +11 -0
- package/public/_next/static/ySSMgkts9h6_mRnScxk9f/_clientMiddlewareManifest.js +1 -0
- package/public/_next/static/ySSMgkts9h6_mRnScxk9f/_ssgManifest.js +1 -0
- package/public/_not-found/__next._full.txt +17 -0
- package/public/_not-found/__next._head.txt +6 -0
- package/public/_not-found/__next._index.txt +6 -0
- package/public/_not-found/__next._not-found/__PAGE__.txt +5 -0
- package/public/_not-found/__next._not-found.txt +5 -0
- package/public/_not-found/__next._tree.txt +2 -0
- package/public/_not-found/index.html +1 -0
- package/public/_not-found/index.txt +17 -0
- package/public/drift/__next._full.txt +21 -0
- package/public/drift/__next._head.txt +6 -0
- package/public/drift/__next._index.txt +6 -0
- package/public/drift/__next._tree.txt +2 -0
- package/public/drift/__next.drift/__PAGE__.txt +9 -0
- package/public/drift/__next.drift.txt +5 -0
- package/public/drift/index.html +1 -0
- package/public/drift/index.txt +21 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +1 -0
- package/public/index.txt +19 -0
- package/public/migrations/__next._full.txt +21 -0
- package/public/migrations/__next._head.txt +6 -0
- package/public/migrations/__next._index.txt +6 -0
- package/public/migrations/__next._tree.txt +2 -0
- package/public/migrations/__next.migrations/__PAGE__.txt +9 -0
- package/public/migrations/__next.migrations.txt +5 -0
- package/public/migrations/index.html +1 -0
- package/public/migrations/index.txt +21 -0
- package/public/risks/__next._full.txt +21 -0
- package/public/risks/__next._head.txt +6 -0
- package/public/risks/__next._index.txt +6 -0
- package/public/risks/__next._tree.txt +2 -0
- package/public/risks/__next.risks/__PAGE__.txt +9 -0
- package/public/risks/__next.risks.txt +5 -0
- package/public/risks/index.html +1 -0
- package/public/risks/index.txt +21 -0
- package/public/schema/__next._full.txt +21 -0
- package/public/schema/__next._head.txt +6 -0
- package/public/schema/__next._index.txt +6 -0
- package/public/schema/__next._tree.txt +2 -0
- package/public/schema/__next.schema/__PAGE__.txt +9 -0
- package/public/schema/__next.schema.txt +5 -0
- package/public/schema/index.html +1 -0
- package/public/schema/index.txt +21 -0
- package/public/simulate/__next._full.txt +21 -0
- package/public/simulate/__next._head.txt +6 -0
- package/public/simulate/__next._index.txt +6 -0
- package/public/simulate/__next._tree.txt +2 -0
- package/public/simulate/__next.simulate/__PAGE__.txt +9 -0
- package/public/simulate/__next.simulate.txt +5 -0
- package/public/simulate/index.html +1 -0
- package/public/simulate/index.txt +21 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 PrismaFlow Contributors
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# PrismaFlow CLI
|
|
2
|
+
|
|
3
|
+
PrismaFlow is a local-first Prisma migration safety tool. It analyzes migration
|
|
4
|
+
risk, checks schema drift, generates reports, and serves a bundled dashboard
|
|
5
|
+
from the user's machine.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Run without installing:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx prisma-flow@latest
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Install in a Prisma project:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -D prisma-flow
|
|
19
|
+
npx prisma-flow init
|
|
20
|
+
npx prisma-flow doctor
|
|
21
|
+
npx prisma-flow dashboard
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Global install is also supported:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install -g prisma-flow
|
|
28
|
+
prisma-flow status
|
|
29
|
+
pf dashboard
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Requirements
|
|
33
|
+
|
|
34
|
+
- Node.js 20 or newer.
|
|
35
|
+
- A Prisma project with `schema.prisma` and migrations.
|
|
36
|
+
- `DATABASE_URL` available through `.env` or the shell when commands need a
|
|
37
|
+
database connection.
|
|
38
|
+
|
|
39
|
+
## Common Commands
|
|
40
|
+
|
|
41
|
+
- `prisma-flow dashboard`: start the local API and bundled dashboard.
|
|
42
|
+
- `prisma-flow status`: summarize migrations, drift, and risk.
|
|
43
|
+
- `prisma-flow check`: run CI-friendly migration safety checks.
|
|
44
|
+
- `prisma-flow report`: generate Markdown or JSON reports.
|
|
45
|
+
- `prisma-flow doctor`: validate local PrismaFlow setup.
|
|
46
|
+
|
|
47
|
+
## Security
|
|
48
|
+
|
|
49
|
+
The dashboard API binds locally and requires a per-session token. PrismaFlow does
|
|
50
|
+
not require a hosted service for local usage.
|
|
51
|
+
|
|
52
|
+
Full documentation, contribution guidelines, and security policy are available
|
|
53
|
+
in the main repository: https://github.com/prisma-flow/prisma-flow
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|