Skip to content

Latest commit

 

History

History
167 lines (135 loc) · 4.2 KB

README.md

File metadata and controls

167 lines (135 loc) · 4.2 KB

24-01-06 - Coming Soon! I started this project just before ChatGPT was announced and will be revisiting the idea again soon!

Model Prompter

An open sourced AI and API prototyping platform

Assemble blocks and chain together AI and API services to design bots, content generators, and automated workflows.


Model Prompter image

Quickstart

Workspaces

Blocks as forms & data feed

Library

In-app Notion.so integration




Features

API blocks

Works with REST APIs:

  • GET
  • POST
  • PUT
  • DELETE
  • (more coming soon)

more info coming soon




Setup

Install


You're done, the rest of this README is optional 🚀
Check out modelprompter.com/blog for the latest


CLI

# Start app in dev mode: http://localhost:9000
npm start

# (optional) Build the project into ./dist/spa
npm run build

Environment Variables

To customize your local install, copy and rename template.env to .env and replace the values with your own. The following are the defaults:

# If true, it'll inject the Plausible Analytics script: https://plausible.io/
# Analytics are only applied when hosted, not while using locally
# To finish the setup, register a Plausible account and add the domain
USE_PLAUSIBLE=FALSE



Data

Currently, everything is stored with LocalStorage as there's no backend. LocalStorage (with a capital L) is a wrapper around the browsers default localStorage that supports enums beyond strings and numbers, and is available globally.

Library

This stores all of your workspaces, as well as unsaved changes in the current workspace. Here's what it looks like with LocalStorage.getItem('library'):

{
  library: {
    // Major changes are not compatible with each other but minor versions are
    version: 1.0,
    currentWorkspace: {/* see workspaces */},
    workspaces: [
      {
        id: '',
        meta: {
          title: '',
          description: '',
          longDescription: '',
        },
        view: {
          scale: 0,
          left: 0,
          top: 0
        },
        workspace: {},
      },
    ]
  }
}