commitmind 1.0.0 → 1.0.2

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,15 +1,185 @@
1
- # ai-commit-gen
1
+ # CommitMind
2
2
 
3
- To install dependencies:
3
+ ![npm](https://img.shields.io/npm/v/commitmind)
4
+ ![downloads](https://img.shields.io/npm/dw/commitmind)
5
+ ![license](https://img.shields.io/npm/l/commitmind)
6
+
7
+ **CommitMind** is an AI-powered Git CLI that automatically generates clean, meaningful commit messages using local LLMs via **Ollama**.
8
+
9
+ Stop wasting time writing commit messages. Let AI handle it — fast, private, and fully local.
10
+
11
+ ---
12
+
13
+ ## Demo
14
+
15
+ ![Screenshot](https://raw.githubusercontent.com/Nabin-09/ai-commit-generator/main/images/ss1.png)
16
+
17
+ ## Features
18
+
19
+ * AI-generated semantic commit messages
20
+ * Fast and local (no cloud, no API keys)
21
+ * Privacy-first — your code never leaves your machine
22
+ * Auto stage, commit, and push
23
+ * Conventional commit format
24
+ * Works in any Git project
25
+ * Cross-platform (Windows, Mac, Linux)
26
+
27
+ ---
28
+
29
+ ## Installation
30
+
31
+ Install globally:
32
+
33
+ ```bash
34
+ npm install -g commitmind
35
+ ```
36
+
37
+ Or with Bun:
38
+
39
+ ```bash
40
+ bun add -g commitmind
41
+ ```
42
+
43
+ ---
44
+
45
+ ## Requirements
46
+
47
+ CommitMind uses **Ollama** to run AI locally.
48
+
49
+ ### Install Ollama
50
+
51
+ Download from:
52
+ 👉 https://ollama.com
53
+
54
+ ### Start Ollama
55
+
56
+ ```bash
57
+ ollama serve
58
+ ```
59
+
60
+ ### Pull the model
61
+
62
+ ```bash
63
+ ollama pull llama3
64
+ ```
65
+
66
+ ---
67
+
68
+ ## Usage
69
+
70
+ ### Auto generate commit message
71
+
72
+ ```bash
73
+ aic auto
74
+ ```
75
+
76
+ This will:
77
+
78
+ 1. Stage all changes
79
+ 2. Generate an AI commit message
80
+ 3. Commit automatically
81
+
82
+ ---
83
+
84
+ ### Commit and push
4
85
 
5
86
  ```bash
6
- bun install
87
+ aic push main
7
88
  ```
8
89
 
9
- To run:
90
+ This will:
91
+
92
+ 1. Stage changes
93
+ 2. Generate commit
94
+ 3. Commit
95
+ 4. Push to branch
96
+
97
+ ---
98
+
99
+ ## Example Workflow
10
100
 
11
101
  ```bash
12
- bun run index.ts
102
+ git checkout -b feature-auth
103
+ # make changes
104
+ aic auto
105
+ aic push main
13
106
  ```
14
107
 
15
- This project was created using `bun init` in bun v1.3.4. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
108
+ ---
109
+
110
+ ## Why CommitMind?
111
+
112
+ Writing commit messages is repetitive and often ignored.
113
+ CommitMind helps maintain:
114
+
115
+ * Clean project history
116
+ * Semantic commits
117
+ * Faster workflow
118
+ * Better collaboration
119
+
120
+ All while keeping your data private.
121
+
122
+ ---
123
+
124
+ ## Privacy First
125
+
126
+ CommitMind runs entirely on your machine using local models.
127
+ Your source code is never sent to external servers.
128
+
129
+ ---
130
+
131
+ ## Tech Stack
132
+
133
+ * Node.js CLI
134
+ * TypeScript
135
+ * Ollama (Local LLM)
136
+ * Conventional commits
137
+
138
+ ---
139
+
140
+ ## Roadmap
141
+
142
+ * Interactive commit preview
143
+ * Smart commit type detection
144
+ * Git hooks integration
145
+ * VS Code extension
146
+ * Multi-model support
147
+ * Config file
148
+ * Streaming AI output
149
+
150
+ ---
151
+
152
+ ## Contributing
153
+
154
+ Contributions are welcome!
155
+
156
+ 1. Fork the repo
157
+ 2. Create a feature branch
158
+ 3. Submit a pull request
159
+
160
+ ---
161
+
162
+ ## Support
163
+
164
+ If you like this project:
165
+
166
+ * Star it on GitHub
167
+ * Share with your friends
168
+ * Give feedback
169
+
170
+ ---
171
+
172
+ ## License
173
+
174
+ MIT © Nabin Sharma
175
+
176
+ ---
177
+
178
+ ## Links
179
+
180
+ * GitHub: https://github.com/Nabin-09/ai-commit-generator
181
+ * Issues: https://github.com/Nabin-09/ai-commit-generator/issues
182
+
183
+ ---
184
+
185
+ Made with ❤️ for developers.
package/bun.lock CHANGED
@@ -4,6 +4,9 @@
4
4
  "workspaces": {
5
5
  "": {
6
6
  "name": "ai-commit-gen",
7
+ "dependencies": {
8
+ "commitmind": "^1.0.0",
9
+ },
7
10
  "devDependencies": {
8
11
  "@types/node": "^25.3.0",
9
12
  "typescript": "^5.9.3",
@@ -13,6 +16,8 @@
13
16
  "packages": {
14
17
  "@types/node": ["@types/node@25.3.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A=="],
15
18
 
19
+ "commitmind": ["commitmind@1.0.0", "", { "bin": { "aic": "dist/index.js" } }, "sha512-yxLwQAf4QV8cLAs5ObPoLmf0Qc1mE5v1t0BmD9rCKboSesy2S1ExQp2cngd/4xjPefy6X3SX/ysvlIj+nSXlmA=="],
20
+
16
21
  "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
17
22
 
18
23
  "undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="],
package/images/ss1.png ADDED
Binary file
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "commitmind",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": "Nabin Sharma",
5
5
  "bin": {
6
- "aic": "./dist/index.js"
6
+ "aic": "./dist/index.js",
7
+ "cm": "./dist/index.js"
7
8
  },
8
9
  "description": "AI-powered Git commit CLI using Ollama",
9
- "keywords": ["git", "ai", "commit", "ollama", "cli"],
10
+ "keywords": [
11
+ "git",
12
+ "ai",
13
+ "commit",
14
+ "ollama",
15
+ "cli"
16
+ ],
10
17
  "license": "MIT",
11
18
  "scripts": {
12
19
  "build": "tsc"
@@ -15,5 +22,8 @@
15
22
  "devDependencies": {
16
23
  "@types/node": "^25.3.0",
17
24
  "typescript": "^5.9.3"
25
+ },
26
+ "dependencies": {
27
+ "commitmind": "^1.0.0"
18
28
  }
19
- }
29
+ }