Installation
Frontend
Install the component via npm:
npm install prompt-chart
For React, install the following instead:
npm install prompt-chart-react
Access the component via CDN:
https://unpkg.com/prompt-chart@1.0.0/dist/promptChart.bundle.js
Backend
PromptChart requires a backend service to process prompts and return chart data. See the Backend Examples for ready-to-use implementations in:
- Node.js - Express
- Python - Flask
- Python - FastAPI
- Next.js (App Router)
- Next.js (Pages Router)
- SvelteKit
- Java - Spring Boot
- Go
- .NET
- NestJS
Coding with AI
When coding with AI, use llms.txt as a reference:
"Use https://github.com/OvidijusParsiunas/PromptChart/blob/main/llms.txt to add a chat component to my website."