Contributing
Thank you for your interest in contributing to Chat UI!
Development Setup
- Clone the repository
- Install dependencies:
npm install - Start development:
npm run dev
Project Structure
chat-ui/
├── src/
│ ├── components/ # React components
│ ├── hooks/ # React hooks
│ ├── api/ # API client
│ ├── providers/ # Context providers
│ ├── styles/ # CSS styles
│ ├── utils/ # Utilities
│ ├── types.ts # TypeScript types
│ └── index.ts # Public exports
├── docs/ # VitePress documentation
└── examples/ # Example implementationsScripts
npm run dev- Development modenpm run build- Build librarynpm run lint- Run linternpm run docs:dev- Documentation developmentnpm run docs:build- Build documentation
Pull Request Process
- Fork the repository
- Create a feature branch
- Make your changes
- Write tests if applicable
- Update documentation
- Submit a pull request
Code Style
- Use TypeScript
- Follow existing patterns
- Use meaningful variable names
- Add JSDoc comments for public APIs
Reporting Issues
When reporting issues, please include:
- Description of the problem
- Steps to reproduce
- Expected behavior
- Actual behavior
- Version information
- Environment details
License
By contributing, you agree that your contributions will be licensed under the MIT License.