MCPcopy
hub / github.com/botui/botui

github.com/botui/botui @v0.3.7 sqlite

repository ↗ · DeepWiki ↗ · release v0.3.7 ↗
21 symbols 32 edges 3 files 0 documented · 0%
README

logo

Join the community on Spectrum npm npm newsletter Backers on Open Collective Sponsors on Open Collective

A JavaScript framework to create conversational UIs.

Main Site - Read Docs - Examples

Showcase 🎇✨

We are listing all the cool projects that people are building with BotUI, here. See others' and add yours!

Quick look

preview




  <bot-ui></bot-ui>



var botui = new BotUI('botui-app') // id of container

botui.message.bot({ // show first message
  delay: 200,
  content: 'hello'
}).then(() => {
  return botui.message.bot({ // second one
    delay: 1000, // wait 1 sec.
    content: 'how are you?'
  })
}).then(() => {
  return botui.action.button({ // let user do something
    delay: 1000,
    action: [
      {
        text: 'Good',
        value: 'good'
      },
      {
        text: 'Really Good',
        value: 'really_good'
      }
    ]
  })
}).then(res => {
  return botui.message.bot({
    delay: 1000,
    content: `You are feeling ${res.text}!`
  })
})

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

MIT License - Copyrights (c) 2017-18 - Moin Uddin

Extension points exported contracts — how you extend this code

BotUIOptions (Interface)
(no doc)
typings/index.d.ts
MessageOption (Interface)
(no doc)
typings/index.d.ts
BaseActionsOption (Interface)
(no doc)
typings/index.d.ts
TextObject (Interface)
(no doc)
typings/index.d.ts
ButtonObject (Interface)
(no doc)
typings/index.d.ts

Core symbols most depended-on inside this repo

_handleAction
called by 5
src/scripts/botui.js
_checkAction
called by 5
src/scripts/botui.js
_showActions
called by 4
src/scripts/botui.js
loadScript
called by 3
src/scripts/botui.js
_addMessage
called by 3
src/scripts/botui.js
_checkOpts
called by 3
src/scripts/botui.js
htmlTemplate
called by 2
Gulpfile.js
escape
called by 1
Gulpfile.js

Shape

Function 11
Interface 8
Class 2

Languages

TypeScript100%

Modules by API surface

typings/index.d.ts10 symbols
src/scripts/botui.js9 symbols
Gulpfile.js2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

bumped0.10.11 · 1×
gulp3.9.1 · 1×
gulp-banner0.1.3 · 1×
gulp-clean-css3.5.0 · 1×
gulp-concat2.6.0 · 1×
gulp-rename1.2.2 · 1×
gulp-replace0.6.1 · 1×
gulp-sass4.0.1 · 1×
gulp-uglify2.0.0 · 1×
htmlclean3.0.2 · 1×
opencollective1.0.3 · 1×
opencollective-postinstall2.0.1 · 1×

For agents

$ claude mcp add botui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact