@sidgaikwad/db-setup 1.0.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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Set up local PostgreSQL using Docker and return DATABASE_URL
3
+ */
4
+ export declare const setupLocalDocker: () => Promise<string>;
5
+ //# sourceMappingURL=local-docker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-docker.d.ts","sourceRoot":"","sources":["../../src/providers/local-docker.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,MAAM,CAkFvD,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Main function to set up Neon and return DATABASE_URL
3
+ */
4
+ export declare const setupNeon: () => Promise<string>;
5
+ //# sourceMappingURL=neon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"neon.d.ts","sourceRoot":"","sources":["../../src/providers/neon.ts"],"names":[],"mappings":"AAoVA;;GAEG;AACH,eAAO,MAAM,SAAS,QAAa,OAAO,CAAC,MAAM,CAwDhD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const setupRailway: () => Promise<string>;
2
+ //# sourceMappingURL=railway-pg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"railway-pg.d.ts","sourceRoot":"","sources":["../../src/providers/railway-pg.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAqFnD,CAAA"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Main function to set up Supabase and return DATABASE_URL
3
+ */
4
+ export declare const setupSupabase: () => Promise<string>;
5
+ //# sourceMappingURL=supabase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/providers/supabase.ts"],"names":[],"mappings":"AA0IA;;GAEG;AACH,eAAO,MAAM,aAAa,QAAa,OAAO,CAAC,MAAM,CA4CpD,CAAA"}
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Generate alphanumeric password
4
+ * Used by all database providers for secure password generation
5
+ */
6
+ export declare const genAlphanumericPassword: (length?: number) => string;
7
+ /**
8
+ * Generate a random subdomain/identifier
9
+ * Useful for generating unique identifiers for database instances
10
+ */
11
+ export declare const genRandomIdentifier: (length?: number) => string;
12
+ //# sourceMappingURL=db-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db-utils.d.ts","sourceRoot":"","sources":["../../src/utils/db-utils.ts"],"names":[],"mappings":";AAEA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,eAAW,WAQlD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,eAAW,WAO9C,CAAC"}
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@sidgaikwad/db-setup",
3
+ "version": "1.0.0",
4
+ "description": "Interactive CLI for setting up PostgreSQL databases with multiple providers (Neon, Supabase, Railway, Local)",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "create-db-setup": "./bin/cli.js",
9
+ "db-setup": "./bin/cli.js"
10
+ },
11
+ "scripts": {
12
+ "build": "bun build src/index.ts --outdir dist --target node && tsc --emitDeclarationOnly",
13
+ "build:types": "tsc --emitDeclarationOnly",
14
+ "prepublishOnly": "bun run build",
15
+ "dev": "bun run src/index.ts",
16
+ "test": "bun test"
17
+ },
18
+ "keywords": [
19
+ "database",
20
+ "postgresql",
21
+ "postgres",
22
+ "setup",
23
+ "cli",
24
+ "neon",
25
+ "supabase",
26
+ "railway",
27
+ "docker",
28
+ "database-setup",
29
+ "postgres-setup",
30
+ "interactive-cli"
31
+ ],
32
+ "author": "Siddharth Gaikwad <gaikwadsiddharth039@gmail.com>",
33
+ "license": "MIT",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/sidgaikwad/db-setup.git"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/sidgaikwad/db-setup/issues"
40
+ },
41
+ "homepage": "https://github.com/sidgaikwad/db-setup#readme",
42
+ "files": [
43
+ "dist",
44
+ "bin",
45
+ "README.md",
46
+ "LICENSE"
47
+ ],
48
+ "engines": {
49
+ "node": ">=18.0.0"
50
+ },
51
+ "dependencies": {
52
+ "@inquirer/prompts": "^6.0.0",
53
+ "chalk": "^5.3.0",
54
+ "dotenv": "^16.3.1",
55
+ "inquirer": "^13.1.0"
56
+ },
57
+ "devDependencies": {
58
+ "@types/node": "^20.0.0",
59
+ "typescript": "^5.0.0",
60
+ "bun-types": "latest"
61
+ }
62
+ }