aletria is a CLI tool designed to help developers integrate AI-driven features into their codebases. Leveraging the impressive context size of Gemini 2.0, aletria automates the generation of unit tests, project documentation, and README files, streamlining your development workflow.
A big focus of this project is privacy.
- No data (except the generated docs and code) is stored anywhere.
- Your API key is only stored in memory locally on your machine, meaning once the cli is closed there is no way to retrieve it.
- Your code is only sent to Google API for inference, and nothing is sent to any other service.
This is very much experimental work!! Please make sure you have commited your work before starting this tool, in order to avoid having files edited that you didn't want.
- Multi-File Documentation Generation Combine your source code, unit tests, README.md, and other files to produce detailed, markdown-based documentation for your project.
This is not available yet, but will soon!
-
AI-Powered Unit Test Generation Automatically parse your source code files and generate comprehensive unit tests.
-
Dynamic README Generation Generate a professional project README.md by parsing your source code, unit tests, and a brief description of your project.
- At least Node.js 20
- A Google AI Studio API key
npx aletria@latest
aletria requires a Google AI Studio API key, this will either be retrieved from the environment using the name GOOGLE_API_KEY
or the tool, will ask you to fill the key when starting a task.
You may define the inline while calling, like this:
GOOGLE_API_KEY=your_api_key_here npx aletria@latest
aletria provides a simple CLI interface to execute its main functions. Here’s how you can get started:
Parse your source code, unit tests, README.md, and additional project files to generate comprehensive markdown documentation:
npx aletria@latest generate-docs -i ./src -o ./docs
This is not available yet!
Parse all source code files and generate unit tests:
npx aletria@latest generate-tests -i ./src -o ./tests
This is not available yet!
Generate a project README.md by parsing your source code, unit tests, and a brief project description:
npx aletria@latest generate-readme -i ./src -i ./package.json -o ./README.md
This project is licensed under the MIT License. See the LICENSE file for more details.