0.0.39 • Published 1 year ago

@performer/playground v0.0.39

Weekly downloads
-
License
-
Repository
-
Last release
1 year 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

1 year ago

0.0.38

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.20

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago