Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonik/arch-gen


https://github.com/tonik/arch-gen

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Arch Gen

This is a small tool that generates an ARCHITECTURE file with mono repo diagrams using a single command. It produces `mermaid` diagrams and can optionally enhance descriptions using the `OpenAI API`.

## Requirements

- **pnpm**
- **Monorepo**: A repository that contains multiple projects

## Basic Usage

To use Arch Gen, run the following command:

```bash
npx @tonik/arch-gen [options]
```

### Options

- `--ai [openai-api-key]`: This option generates descriptions and tech stack information with the OpenAI API. If not provided, it will read from the `OPENAI_API_KEY` environment variable.

> **Disclaimer**: When using the AI option, certain data is sent to the OpenAI API for processing. No code files are transmitted. The data includes:
> - Directory names
> - Monorepo file layout with external and internal package names
> - Contents of `package.json`
> - Contents of README files

- `-r, --root `: Specify the root path of the monorepo.
- `-y, --yes`: Skip prompts and generate diagrams with default options.
- `-h, --help`: Display help information.