blockend-cli 1.4.0 → 1.4.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +880 -278
  3. package/package.json +60 -18
  4. package/readme.md +53 -10
package/package.json CHANGED
@@ -1,41 +1,83 @@
1
1
  {
2
2
  "name": "blockend-cli",
3
- "version": "1.4.0",
4
- "description": "Intelligent, modular backend blocks right inside your terminal",
5
- "main": "./dist/index.js",
3
+ "version": "1.4.1",
4
+ "description": "CLI for installing production-ready backend blocks into Next.js, Express, Hono, NestJS, and other Node.js applications.",
6
5
  "type": "module",
6
+ "main": "./dist/index.js",
7
7
  "bin": {
8
8
  "blockend": "./dist/index.js"
9
9
  },
10
+ "exports": {
11
+ ".": "./dist/index.js"
12
+ },
10
13
  "files": [
11
14
  "dist",
12
- "readme.md"
15
+ "README.md"
13
16
  ],
14
- "scripts": {
15
- "test": "vitest run",
16
- "test:watch": "vitest",
17
- "build": "tsup src/index.ts --format esm --dts --out-dir dist",
18
- "typecheck": "tsc --noEmit"
19
- },
20
17
  "keywords": [
21
- "cli",
18
+ "blockend",
22
19
  "backend",
23
- "express",
20
+ "backend blocks",
21
+ "backend boilerplate",
22
+ "backend starter",
23
+ "backend scaffolding",
24
+ "backend generator",
25
+ "backend cli",
26
+ "nodejs",
24
27
  "nextjs",
25
- "architecture"
28
+ "express",
29
+ "nestjs",
30
+ "hono",
31
+ "fastify",
32
+ "authentication",
33
+ "auth",
34
+ "rbac",
35
+ "payments",
36
+ "stripe",
37
+ "resend",
38
+ "drizzle",
39
+ "prisma",
40
+ "postgresql",
41
+ "typescript",
42
+ "developer tools",
43
+ "code generation",
44
+ "scaffolding",
45
+ "productivity",
46
+ "cli"
26
47
  ],
48
+ "homepage": "https://blockend.noorulhassan.com",
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/codewithnuh/blockend.git",
52
+ "directory": "packages/cli"
53
+ },
54
+ "bugs": {
55
+ "url": "https://github.com/codewithnuh/blockend/issues"
56
+ },
27
57
  "author": "codewithnuh",
28
- "license": "ISC",
29
- "packageManager": "pnpm@10.33.2",
58
+ "license": "MIT",
59
+ "engines": {
60
+ "node": ">=20"
61
+ },
30
62
  "dependencies": {
31
- "@blockend/detector": "workspace:*",
32
63
  "@clack/prompts": "^1.5.1",
64
+ "@modelcontextprotocol/sdk": "^1.29.0",
65
+ "citty": "^0.2.2",
33
66
  "commander": "^15.0.0",
34
- "picocolors": "^1.1.1"
67
+ "execa": "^9.6.1",
68
+ "picocolors": "^1.1.1",
69
+ "zod": "^4.4.3",
70
+ "@blockend/detector": "0.1.0"
35
71
  },
36
72
  "devDependencies": {
37
73
  "@types/node": "^25.9.3",
38
74
  "tsup": "^8.5.1",
39
75
  "vitest": "^1.6.1"
76
+ },
77
+ "scripts": {
78
+ "build": "tsup src/index.ts --format esm --dts --clean --out-dir dist",
79
+ "typecheck": "tsc --noEmit",
80
+ "test": "vitest run",
81
+ "test:watch": "vitest"
40
82
  }
41
- }
83
+ }
package/readme.md CHANGED
@@ -1,6 +1,18 @@
1
- # blockend-cli 🚀
1
+ # Blockend CLI
2
2
 
3
- Generate reusable backend code blocks directly from your terminal. Instead of rewriting common middleware, utilities, and configuration files, add them to your project with a single command.
3
+ > Install production-ready backend blocks into your project directly from the terminal.
4
+
5
+ Blockend CLI helps you scaffold reusable backend features such as authentication, authorization, email, storage, payments, middleware, utilities, and more. It detects your project's framework, generates a `blockend.json` configuration, and installs only the blocks compatible with your stack.
6
+
7
+ ## Features
8
+
9
+ - Framework detection for supported Node.js frameworks.
10
+ - Generates a `blockend.json` configuration file.
11
+ - Installs only compatible backend blocks.
12
+ - Automatically installs required dependencies.
13
+ - Writes clean, editable source code directly into your project.
14
+ - No runtime lock-in—your code stays yours.
15
+ - Works seamlessly with the Blockend ecosystem.
4
16
 
5
17
  ## Quick Start
6
18
 
@@ -10,21 +22,52 @@ Initialize Blockend in your project:
10
22
  npx blockend-cli init
11
23
  ```
12
24
 
13
- ## Add Code Blocks
25
+ Blockend will:
26
+
27
+ - Detect your framework
28
+ - Create a `blockend.json` file
29
+ - Prepare your project for backend blocks
30
+
31
+ ## Add Backend Blocks
14
32
 
15
- Add backend components to your project:
33
+ Browse and install compatible backend blocks:
16
34
 
17
35
  ```bash
18
36
  npx blockend-cli add
19
37
  ```
20
38
 
21
- ## Features
39
+ ## Example
40
+
41
+ ```bash
42
+ npx blockend-cli init
43
+ npx blockend-cli add
44
+ ```
45
+
46
+ ## Supported Frameworks
47
+
48
+ - Next.js
49
+ - Express
50
+ - Hono
51
+ - Fastify
52
+
53
+ More frameworks are coming soon.
54
+
55
+ ## Documentation
56
+
57
+ Visit the documentation:
22
58
 
23
- - **No installation required:** Run it anytime with `npx`.
24
- - **Works with your project:** Generates code that matches your framework (Express, Next.js, Hono, or Fastify).
25
- - **Handles dependencies:** Installs required packages when needed.
26
- - **Your code stays yours:** Writes plain source files directly into your project with no hidden runtime.
59
+ **https://blockend.noorulhassan.com**
60
+
61
+ ## Repository
62
+
63
+ GitHub:
64
+
65
+ **https://github.com/codewithnuh/blockend**
27
66
 
28
67
  ## License
29
68
 
30
- ISC
69
+ MIT © CodeWithNuh
70
+
71
+ See the full license here:
72
+
73
+ https://github.com/codewithnuh/blockend/blob/master/LICENSE