New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gpt-text-to-diagram

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpt-text-to-diagram

Using OpenAI GPT models, from a description of a software system or other entity diagram, generate a design diagram image or PDF.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
1
Weekly downloads
 
Created
Source

GPT Text to Design Diagram

Using OpenAI GPT models, from a description of a software system or other entity diagram, generate a design diagram image or PDF.

Installation

Install from npm with npm install gpt-text-to-diagram.

Usage

  1. Set the OPENAI_KEY environment variable or pass the key into the generate command with the -k flag.

  2. Run the gpt-text-to-diagram command with the following options:

    Options:
      -V, --version                    output the version number
      -p, --prompt <prompt>            Required: Software system description to create design from.
      -k, --key <openAIKey>            Optional: OpenAI API Key. Must be passed in through the CLI or environment variable.
      -o, --output-file <filePath>     Optional: Output filename template. Must have an extension of png, pdf, or svg. (default: "diagram.png")
      -m, --model <modelName>          Optional: OpenAI completion model to use. (default: "text-davinci-003")
      -c, --max-tokens <tokenCount>    Optional: Make tokens to use when generating the response. (default: 500)
      -t, --temperature <temperature>  Optional: The temperature parameter to use for the GPT model generation. (default: 0.2)
      -h, --help                       Display helpful information about the CLI.
    

Example

Running the command:

gpt-text-to-diagram generate -p "Entities: Person, Frontend, Backend, Database. Person interacts with the frontend. The frontend sends requests to the backend. The backend performs CRUD operations on data in the database."  -o test.png -t 0.8 -c 250

Generated the following design diagram:

Example design diagram of a web application

Keywords

FAQs

Package last updated on 14 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc