@serapion-gmbh/nova-app
TypeScript icon, indicating that this package has built-in type declarations

2.2.2 • Public • Published

Usage instructions

Depending on the technologies used in your application this might vary.

Render the app into a div with elementId (the app lives in an open shadow DOM):

initNovaApp('root', {
  colorTheme: {
    ...someTheme,
  },
  chatConfiguration: {
    type: 'client_chat',
    baseURL: 'http://localhost:8000',
    sessionToken: SESSION_TOKEN,
  },
  title: 'Nova',
  description: 'Developed by Serapion',
  messagePlaceholder: 'Type your message here...',
  assistantName: 'Nova',
  enabledContentTypes: {
    images: true,
  },
  fullscreen: true,
})

then register client functions with

nova.registerFunction('function_identifier', someFunction)

Development instructions

Setup

npm install
npm run prepare

Run locally

Set a valid session token as VITE_CLIENT_SESSION_TOKEN in an .env file.

npm run dev

Local build & installation in other project

npm run build
npm pack

then in the other project run

npm i ../nova-app/serapion-gmbh-nova-app-X.X.X.tgz

Readme

Keywords

none

Package Sidebar

Install

npm i @serapion-gmbh/nova-app

Weekly Downloads

81

Version

2.2.2

License

none

Unpacked Size

1.46 MB

Total Files

35

Last publish

Collaborators

  • serapion-palle-k
  • henzed
  • magnus.kuehne
  • korbi_weidinger