0.0.39 • Published 2 years ago

@performer/playground v0.0.39

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@performer/playground

A simple chat UI for testing your Performer apps.

Install

Install as a dev dependency.

npm install @performer/playground -D

Setup

Add a script to your package.json to start the UI.

{
  "scripts": {
    "playground": "playground <directory-with-app-files>"
  }
}

Will start the playground on port 3011 (ChatGPT launch date 30th November).

Creating apps

An app is any file that exports an App component function.

Export name to provide a name your app.

Export target with browser | node | edge to mark where your app can run.

import { Assistant } from "@performer/core";

export const name = 'Joker.ai';
export const target = 'browser'

export function App () {
  return () => (
    <>
      <system>Tell the user a joke about programming</system>
      <Assistant />
    </>
  )
}
0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.20

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago