{"id":38969778,"url":"https://github.com/nhdfr/sweet-commit","last_synced_at":"2026-01-17T16:36:47.660Z","repository":{"id":312860719,"uuid":"1047096728","full_name":"nhdfr/sweet-commit","owner":"nhdfr","description":"sweet commit helps you write clear, conventional commit style messages with ease.","archived":false,"fork":false,"pushed_at":"2026-01-16T19:47:44.000Z","size":2284,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-16T23:47:19.360Z","etag":null,"topics":["commit","commit-automation","conventional-commits","git","git-commit"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sweet-commit","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhdfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-29T18:26:33.000Z","updated_at":"2026-01-16T19:47:43.000Z","dependencies_parsed_at":"2025-09-02T13:38:17.775Z","dependency_job_id":"2f4c93df-006f-4c24-becb-11d00eefdb6a","html_url":"https://github.com/nhdfr/sweet-commit","commit_stats":null,"previous_names":["d3xfoo/sweet-commit","nhdfr/sweet-commit"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nhdfr/sweet-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhdfr%2Fsweet-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhdfr%2Fsweet-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhdfr%2Fsweet-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhdfr%2Fsweet-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhdfr","download_url":"https://codeload.github.com/nhdfr/sweet-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhdfr%2Fsweet-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commit","commit-automation","conventional-commits","git","git-commit"],"created_at":"2026-01-17T16:36:47.564Z","updated_at":"2026-01-17T16:36:47.639Z","avatar_url":"https://github.com/nhdfr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sweet-commit\n\n[![npm version](https://img.shields.io/npm/v/sweet-commit)](https://www.npmjs.com/package/sweet-commit)\n\nAI-powered commit messages that just work. One command, perfect commits, every time.\n\n## Installation\n\n```bash\nnpm install -g sweet-commit\n```\n\n## Update\n\nTo update to the latest version:\n\n```bash\nscom update\n```\n\nCheck your current version:\n\n```bash\nscom -v\n```\n\n## Usage\n\n### Basic usage\n\nGenerate and commit (will prompt to stage if needed):\n\n```bash\nscom\n```\n\nYou can also specify the commit style directly with a flag. For example:\n\n```bash\nscom -s       # Short commit message\nscom --adaptive   # Adaptive commit message\nscom -d       # Detailed commit message\n```\n\n### Commit style flags\n\nYou can control the commit message style directly from the CLI:\n\n- `scom --short` or `scom -s` — Short, conventional commit message\n- `scom --adaptive` or `scom -a` — Adaptive (short for simple, detailed for complex)\n- `scom --detailed` or `scom -d` — Fully detailed, multi-line commit message\n\n\u003e **Note:** CLI flags always override your config file's default style.\n\n### What happens\n\n- Checks for unstaged changes and offers to stage them automatically\n- Analyzes your changes using AI\n- Generates a commit message in your chosen style\n- Lets you confirm or regenerate the message\n- Commits after confirmation\n\n## Setup\n\n1. Get your Gemini API key from [Google AI Studio](https://aistudio.google.com/app/apikey).\n2. Run the setup command:\n\n   ```bash\n   scom setup\n   ```\n\n3. Follow the prompts to enter your API key. That's it!\n\n### About the .scom.conf file\n\nWhen you run `scom setup`, a `.scom.conf` file is created in your config directory (e.g. `~/.config/.scom.conf` and inside `APPDATA` for windows).\n\n- This file securely stores your Gemini API key and other configuration options, such as your default commit style.\n- You can edit this file manually if you want to change your API key or set a different default commit style (e.g., `adaptive`, `short`, or `detailed`).\n- Example `.scom.conf`:\n\n  ```ini\n  apiKey=your-gemini-api-key\n  humanLikeCommit=true\n  defaultCommitStyle=adaptive\n  ```\n\n\u003e **Note:** CLI flags (like `--short`, `--adaptive`, `--detailed`) always override the style set in `.scom.conf` for a single run.\n\n## Features\n\n- **Flexible commit styles**: Use CLI flags to choose short, adaptive, or detailed commit messages on demand\n- **Auto-stage prompt**: Automatically offers to stage unstaged changes\n- **Intelligent message generation**: Comprehensive bodies for complex changes, concise for simple ones\n- **Conventional commits**: Follows best practices and conventional commit format\n- **Gemini AI powered**: Uses latest Gemini AI for intelligent commit message creation\n- **Clean interface**: Minimal, beautiful CLI with no unnecessary output\n- **Zero configuration**: Works immediately after API key setup\n- **Flexible setup**: Supports environment variables and .env files\n\n## Dependencies\n\n- @clack/prompts - Clean CLI interface\n- @google/genai - Gemini AI integration\n\n## Requirements\n\n- Node.js 20 or later\n- Git repository with staged changes\n- Gemini API key\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhdfr%2Fsweet-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhdfr%2Fsweet-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhdfr%2Fsweet-commit/lists"}