An open API service indexing awesome lists of open source software.

https://github.com/markprompt/markprompt-js

JavaScript SDK for Markprompt
https://github.com/markprompt/markprompt-js

gpt-4 open-source react typescript vanilla

Last synced: 6 months ago
JSON representation

JavaScript SDK for Markprompt

Awesome Lists containing this project

README

          

Markprompt is AI for customer support.




X




## Components

This repo contains various UI libraries for building prompts based on the
Markprompt API:

- [`@markprompt/core`](packages/core#readme) — shared utility functions to speak
with the Markprompt API.
- [`@markprompt/react`](packages/react#readme) — a React component.
- [`@markprompt/web`](packages/web#readme) — a pre-built Markprompt component,
based on `@markprompt/react`, built with Preact for bundle-size savings.
Viable for use with vanilla JavaScript or any framework.
- [`@markprompt/docusaurus-theme-search`](packages/docusaurus-theme-search#readme)
— a Markprompt search theme for Docusaurus.

and some example implementations:

- [`with-css-modules`](examples/with-css-modules#readme) — a web application based on `@markprompt/react`, Vite and CSS Modules.
- [`with-custom-trigger`](examples/with-custom-trigger#readme) — a reference implementation of `@markprompt/web` using a custom trigger button.
- [`with-custom-trigger-react`](examples/with-custom-trigger-react#readme) — a reference implementation of `@markprompt/react` using a custom trigger button.
- [`with-docusaurus`](examples/with-docusaurus#readme) — a Docusaurus project with `@markprompt/docusaurus-theme-search`.
- [`with-docusaurus-algolia`](examples/with-docusaurus-algolia#readme) — a Docusaurus project with `@markprompt/docusaurus-theme-search` and our Algolia
integration.
- [`with-docusaurus-swizzled`](examples/with-docusaurus-swizzled#readme) — a Docusaurus project with Markprompt and [theme-search-algolia](https://docusaurus.io/docs/api/themes/@docusaurus/theme-search-algolia).
- [`with-init`](examples/with-init#readme) — a web application based on
`@markprompt/web` using a global instance of Markprompt.
- [`with-markprompt-web`](examples/with-markprompt-web#readme) — a web application based on `@markprompt/web` and Vite. based on `@markprompt/react`, Vite and CSS Modules.
- [`with-next`](examples/with-next#readme) — a web application based on `@markprompt/react`, `@markprompt/web`, and Next.js.
- [`with-function-calling`](examples/with-function-calling#readme) — a web application based on `@markprompt/react` and Next.js showcasing the use for [OpenAI function calling](https://platform.openai.com/docs/guides/function-calling).
- [`with-automatic-ticket-creation`](examples/with-automatic-ticket-creation#readme) — a web application based on `@markprompt/web` and Vite showcasing automatic ticket creation.

## Running examples

To run examples from this monorepo:

```sh
pnpm turbo dev --filter with-markprompt-web...
```

## Documentation

To use the Markprompt platform as is, please refer to the
[Markprompt documentation](https://markprompt.com/docs).

## Community

- [X](https://x.com/markprompt)

## Authors

This library is created by the team behind [Markprompt](https://markprompt.com)
([@markprompt](https://x.com/markprompt)).

## License

[MIT](./LICENSE) © [Markprompt](https://markprompt.com)