We love your input! We want to make contributing to Neur as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
- Fork the repo and create your branch from
main
- If you've added code that should be tested, add tests
- If you've changed APIs, update the documentation
- Ensure the test suite passes
- Make sure your code lints
- Issue that pull request!
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
-
Build for production:
pnpm build
- Use TypeScript for all code files
- Follow the existing code style
- Use functional components with TypeScript interfaces
- Implement responsive design with Tailwind CSS
- Optimize for performance using React Server Components where possible
- Keep components small and focused
- Use meaningful variable and function names
- Use interfaces over types when possible
- Avoid using
any
- Use proper type annotations
- Leverage TypeScript's type inference when appropriate
// Example component structure
import { type FC } from 'react'
interface Props {
// Props definition
}
export const ComponentName: FC<Props> = ({ prop1, prop2 }) => {
// Component logic
return (
// JSX
)
}
We follow the Conventional Commits specification:
feat:
New featurefix:
Bug fixdocs:
Documentation changesstyle:
Code style changes (formatting, etc)refactor:
Code refactoringperf:
Performance improvementstest:
Adding or updating testschore:
Maintenance tasks
Example:
feat: add user authentication component
- Update the README.md with details of changes if needed
- Update the documentation with details of any changes to the interface
- The PR may be merged once you have the sign-off of at least one maintainer
When you submit code changes, your submissions are understood to be under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.
Report bugs using GitHub's issue tracker
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
By contributing, you agree that your contributions will be licensed under its MIT License.