kislerdm / diagramastext

Application to streamline diagram generation using plain English instructions instead of code
https://diagramastext.dev
Apache License 2.0
26 stars 1 forks source link
c4model chatgpt-api diagram go golang openai-api plantuml

Diagram As Text

The tool to generate diagram based on textual description. Although it takes quite some effort to make a diagram, LLM is here for the rescue! πŸ€–πŸ¦Ύ

πŸš€πŸš€πŸš€ Mission: to enable anyone to explain complex system, or process in a simple way.

πŸš€πŸš€ Objective: to streamline knowledge sharing through diagrams.

πŸš€ MVP: plain english to C4 container diagrams.

πŸ”” Wanted: founding contributors πŸ””

The project is purely community driven - we need your support:

If you are excited about the project, feel comfortable with our ways of work, and want to contribute, please get in touch for further details.

Thank you! πŸ™

Contacts

Outlook * [Ways of work](#ways-of-work) + [Manifesto](#manifesto) + [Process](#process) + [Bets/Panning/Commitment](#betspanningcommitment) * [Tech details](#tech-details) + [Architecture](#architecture) + [Local setup](#local-setup) * [License](#license) + [Codebase](#codebase) + [Images and diagrams](#images-and-diagrams)

Ways of work

Manifesto

Process

Bets/Panning/Commitment

Tech details

Tech stack - Languages: - Go 1.19 - TypeScript, ES2020: - [vite](https://vitejs.dev) - [vitest](https://vitest.dev/) - Python 3.9 - Markup: - Markdown - HTML5 - CSS3 - CI: - GitHub Actions - Infra: - GCP - IAM - SecretsManager - CloudRun - IdentityPlatform - AWS (infra deprecated as of 2023-03) - GitHub Pages - [Neon](https://neon.tech/) - Cloudflare - namecheap - godaddy - Tools: - gnuMake - Docker - terraform - Logic: - PlantUML - OpenAI

Architecture

C4 Context Level

architecture-context

Local setup

Requirements

Steps

Follow the steps to provision local development environment.

  1. Clone the repo
git clone git@github.com:kislerdm/diagramastext.git
  1. Export OpenAI access token as the environment variable OPENAI_API_KEY:
export OPENAI_API_KEY=##TOKEN##
  1. Run to provision the local environment:
make localenv

Note:

  1. Run to clean the local environment:
make localenv-teardown

License

Codebase

The codebase is distributed under the Apache 2.0 licence.

Images and diagrams

Creative Commons Licence
This work by diagramastext.dev is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Based on a work at https://github.com/kislerdm/diagramastext. Permissions beyond the scope of this license may be available at diagramastext.dev.