Thank you for your interest in contributing to prompt-kit. Whether you are fixing a bug, adding a new feature, or improving documentation, your contributions are valuable.
We accept contributions in the following areas:
- What: UI-only components for AI applications (e.g., loaders, message container, prompt-input).
- Details: Purely UI, no backend logic.
- Examples: Check
/components/prompt-kitfor inspiration.
- What: Pre-built UI blocks using
shadcn/uiandprompt-kit. - Details: Full UI, like a chatbot interface.
- Examples: See
/components/blocksfor reference.
- What: Full-stack building blocks combining UI and a working API route.
- Details: Uses
AI SDKfor backend routes. Include a demo UI and API route for testing. - Examples: Explore
/components/primitivesand/app/api/primitives(e.g., chatbot or tool-calling).
- Node.js (v18+ recommended)
- pnpm (or your preferred package manager)
- Familiarity with React, TypeScript, and Vercel AI SDK (for primitives).
- Fork the repository on GitHub.
- Clone your fork:
git clone https://github.com/ibelick/prompt-kit.git - Install dependencies:
pnpm install - Run the development server:
pnpm dev - For primitives, set up an OpenAI API key in localStorage for testing (see
/components/primitives/demo).
/components/prompt-kit: UI components/components/blocks: Block UI/components/primitives: UI for primitives/app/api/primitives: Backend routes for primitives/components/primitives/demo: Demo UI for primitives/app/api/primitives/demo: Demo API routes
- Choose a contribution type: Pick a component, block, or primitive based on your skills and interests.
- Check existing examples: Use examples in the relevant folders as a reference.
- Follow Coding Standards:
- Use TypeScript for type safety.
- Follow the existing code style (e.g., Prettier, ESLint).
- Write clear, concise documentation for your code.
- For primitives, include a demo UI and API route for testing.
- Test Your Changes:
- Ensure your component/block/primitive works locally.
- For primitives, verify the API route works with the demo UI.
- Submit a Pull Request:
- Fork the repo and create a branch:
git checkout -b feature/your-feature-name - Commit your changes with clear messages:
git commit -m "Add new chat input component" - Push to your fork: git push origin feature/your-feature-name
- Open a PR with a clear title and description, including:
- What you added/changed.
- A minimal demo preview (e.g., screenshot or short video).
- Any relevant issue numbers (if applicable).
Have an idea, feature request, or need assistance? Reach out to us:
- X: DM @ibelick.
- GitHub issues: Open an issue for questions or suggestions.
We are here to support you and make contributing a smooth experience.