briefli
v0.1.1
Published
A GitHub README generator using Groq API with OpenAI's gpt-oss-120b model
Maintainers
Readme
briefli
briefli is an AI-powered README generator that creates professional, standardized README files for your projects. Simply provide your project name, description, and license - briefli analyzes your codebase and generates a complete README that follows the Standard-Readme specification.
Table of Contents
What is briefli?
Writing a good README can be time-consuming and repetitive. briefli solves this by:
- Analyzing your project - Automatically scans your codebase, dependencies, and structure
- Using AI to generate - Leverages Groq API with OpenAI's gpt-oss-120b model to create comprehensive READMEs
- Following standards - Generates READMEs that comply with the Standard-Readme specification
- Iterative improvements - Review and refine the generated README until you're satisfied
Perfect for bootstrapping new projects or improving documentation for existing ones.
Features
- 🤖 AI-Powered Generation - Uses advanced language models to create professional documentation
- 🔍 Automatic Project Analysis - Analyzes your codebase structure, dependencies, and patterns
- 📋 Standard-Readme Compliant - Follows industry-standard README format
- 🏗️ Architecture Documentation - Includes detailed architecture section based on your project structure
- ✨ Interactive Workflow - Beautiful CLI interface with guided prompts
- 🔄 Iterative Refinement - Review and improve the README multiple times until perfect
- 🔐 Secure API Key Storage - Saves your Groq API key securely in system config directory
- 🎯 Zero Configuration - Works out of the box, no setup required
Install
Global Installation (Recommended)
npm install -g briefliThis makes the briefli command available globally on your system.
Local Installation
npm install --save-dev briefliThen use it with npx briefli or npm run briefli if you add a script to your package.json.
Requirements
- Node.js >= 18.0.0
- A Groq API key (get one at console.groq.com)
Usage
Quick Start
Get your Groq API key from console.groq.com/keys
Run briefli in your project directory:
briefliFollow the prompts:
- Enter your Groq API key (saved securely for future use)
- Provide project name, description, and license
- Review the generated README
- Optionally request improvements
Done! Your README.md is generated and saved.
What You'll See
When you run briefli, you'll see:
········································································
: :
: :
: ______ ______ __ ______ ______ __ __ :
: /\ == \ /\ == \ /\ \ /\ ___\ /\ ___\ /\ \ /\ \ :
: \ \ __< \ \ __< \ \ \ \ \ __\ \ \ __\ \ \ \____ \ \ \ :
: \ \_____\ \ \_\ \_\ \ \_\ \ \_____\ \ \_\ \ \_____\ \ \_\ :
: \/_____/ \/_/ /_/ \/_/ \/_____/ \/_/ \/_____/ \/_/ :
: :
: :
········································································
Briefli - README GeneratorThen the interactive flow begins!
Example Workflow
$ briefli
# 1. API Key prompt (first time only)
Enter your Groq API key: ******
API key saved to system config
# 2. Project information
What is your project name? my-awesome-project
What is your project description? A CLI tool for managing todos
What license does your project use? MIT
# 3. Automatic analysis
Analyzing project structure...
Project analysis complete
# 4. AI generation
Generating README using AI...
Initial README generated
# 5. Review and improve (optional)
Would you like to improve the README? (y/N)
What would you like to improve or add? Add more examples
# 6. Save
Saving README.md...
README.md successfully generatedHow It Works
briefli follows a simple, intelligent workflow:
Project Analysis - Runs bash scripts to analyze:
- Package.json (dependencies, scripts, entry points)
- Directory structure and file organization
- Codebase patterns and API signatures
- Architecture and design patterns
User Input - Prompts for essential information:
- Project name
- Description
- License type
AI Generation - Uses Groq API with gpt-oss-120b to generate:
- Professional README following Standard-Readme spec
- Complete architecture documentation
- Installation and usage instructions
- All required sections
Iterative Improvement - Review, refine, and regenerate until perfect
Save - Writes the final README.md to your project root
Architecture
briefli is built with clean architecture principles:
Key Components
- Project Analyzer - Scans your codebase using bash scripts to extract metadata
- System Prompt Builder - Constructs detailed prompts for the AI based on Standard-Readme spec
- README Generator - Coordinates AI calls and formats the output
- Groq Client - Interfaces with Groq API using gpt-oss-120b model
- CLI Interface - Beautiful interactive prompts using @clack/prompts
Project Structure
briefli/
├─ bin/briefli # CLI executable
├─ src/
│ ├─ cli/ # CLI interface and orchestration
│ ├─ analyzer/ # Project analysis logic
│ │ └─ scripts/ # Bash scripts for analysis
│ ├─ generator/ # README generation
│ ├─ prompts/ # System prompt building
│ ├─ utils/ # Utilities (Config, FileSystem, etc.)
│ └─ interfaces/ # TypeScript interfaces
└─ dist/ # Compiled outputDesign Principles
- SOLID Principles - Clean, maintainable code structure
- Interface-Based - Dependencies on abstractions, not implementations
- Single Responsibility - Each module has one clear purpose
- Dependency Injection - Easy to test and extend
Contributing
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test thoroughly
- Commit with clear messages (
git commit -m 'Add amazing feature') - Push to your branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
Licensed under the Apache License 2.0. See LICENSE file for details.
Maintainers
- Kartik Labhshetwar
