/chatflow

Primary LanguageTypeScriptMIT LicenseMIT

ChatFlow - Personalize your ChatGPT workflows and build the road to automation

ci GitHub Discord

Screenshots:

English | 简体中文

Online Demo: https://prompt.phodal.com/

Join us:

Chat Server

Deploy ChatFlow on Vercel with Planetscale

Follow these steps to deploy ChatFlow on Vercel with a serverless MySQL database provided by Planetscale:

  1. Clone the ChatFlow template from GitHub.
  2. Create a Vercel account and connect it to your GitHub account.
  3. Create a Planetscale account.
  4. Set up your Planetscale database:
    1. Log in to your Planetscale account with pscale auth login.
    2. Create a password with pscale password create <DATABASE_NAME> <BRANCH_NAME> <PASSWORD_NAME>.
    3. Push your database to Planetscale with npx prisma db push.
  5. Configure your Vercel environment:
    • Set DATABASE_URL to your Planetscale database URL.
    • Generate an encryption key with node scripts/gen-enc.js and set it as ENC_KEY.

With these steps completed, your ChatFlow will be deployed on Vercel with a Planetscale serverless MySQL database.

Development

Technical documentation:

  • Flowchart
    • DotParser, parse dot file to graph data
    • dagre, layout graph data
    • ReactFlow, render graph data
  • Flow Functions
    • jsonpath-plus, parse jsonpath
    • expr-eval, parse expression
  • Flow Components
    • JsonViewer, render json data
    • DataTable, render table data
  • Others
    • MarkdownViewer, render markdown data

LICENSE

This code is distributed under the MIT license. See LICENSE in this directory.