2025-06-11 08:49:30 -07:00
|
|
|
<div align="center">
|
2025-06-11 09:17:17 -07:00
|
|
|
<img src="https://raw.githubusercontent.com/soulcraft-research/brainy/main/brainy.png" alt="Brainy Logo" width="200"/>
|
2025-06-11 08:49:30 -07:00
|
|
|
|
2025-05-27 13:12:53 -07:00
|
|
|
# Contributing to Soulcraft Brainy
|
|
|
|
|
|
2025-06-11 08:49:30 -07:00
|
|
|
</div>
|
|
|
|
|
|
2025-05-27 13:58:49 -07:00
|
|
|
Thank you for your interest in contributing to Soulcraft Brainy! This document provides guidelines and instructions for
|
|
|
|
|
contributing to the project.
|
2025-05-27 13:12:53 -07:00
|
|
|
|
|
|
|
|
## Commit Message Guidelines
|
|
|
|
|
|
2025-06-11 08:49:30 -07:00
|
|
|
When contributing to this project, please write clear and descriptive commit messages that explain the purpose of your
|
|
|
|
|
changes. Good commit messages help maintainers understand your contributions and make the review process smoother.
|
2025-05-27 13:12:53 -07:00
|
|
|
|
2025-05-27 13:58:49 -07:00
|
|
|
### Best Practices
|
2025-05-27 13:12:53 -07:00
|
|
|
|
2025-05-27 13:58:49 -07:00
|
|
|
- Keep the first line concise (ideally under 50 characters)
|
|
|
|
|
- Use the imperative mood ("Add feature" not "Added feature")
|
|
|
|
|
- Reference issues and pull requests where appropriate
|
|
|
|
|
- When necessary, provide more detailed explanations in the commit body
|
2025-05-27 13:12:53 -07:00
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
|
|
|
|
|
|
```
|
2025-05-27 13:58:49 -07:00
|
|
|
Add vector normalization option
|
|
|
|
|
Fix distance calculation in HNSW search
|
|
|
|
|
Update API documentation
|
|
|
|
|
Add support for IndexedDB storage
|
|
|
|
|
Change API parameter order
|
|
|
|
|
Simplify vector comparison logic
|
|
|
|
|
Add tests for metadata filtering
|
|
|
|
|
Update build dependencies
|
2025-05-27 13:12:53 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Pull Request Process
|
|
|
|
|
|
|
|
|
|
1. Ensure your code follows the project's coding standards
|
|
|
|
|
2. Update the documentation if necessary
|
|
|
|
|
3. Make sure all tests pass
|
|
|
|
|
4. Use conventional commit messages in your PR
|
|
|
|
|
5. Your PR will be reviewed by maintainers and merged if approved
|
|
|
|
|
|
|
|
|
|
## Development Setup
|
|
|
|
|
|
|
|
|
|
1. Fork and clone the repository
|
|
|
|
|
2. Install dependencies: `npm install`
|
|
|
|
|
3. Build the project: `npm run build`
|
|
|
|
|
4. Run tests: `npm test`
|
|
|
|
|
|
|
|
|
|
Thank you for contributing to Soulcraft Brainy!
|