First off, thank you for considering contributing to VectorBase! It's people like you that make VectorBase such a great tool.
This project and everyone participating in it is governed by the VectorBase Code of Conduct. By participating, you are expected to uphold this code.
Before creating bug reports, please check the existing issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
- Use a clear and descriptive title for the issue to identify the problem.
- Describe the exact steps which reproduce the problem in as many details as possible.
- Provide specific examples to demonstrate the steps.
- Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior.
- Explain which behavior you expected to see instead and why.
- Include screenshots and animated GIFs if possible.
- Include your environment details (OS, Node.js version, Bun version, etc.)
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
- Use a clear and descriptive title for the issue.
- Provide a step-by-step description of the suggested enhancement in as many details as possible.
- Provide specific examples to demonstrate the steps or provide mockups/wireframes.
- Describe the current behavior and explain which behavior you expected to see instead and why.
- Explain why this enhancement would be useful to most VectorBase users.
- 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!
- Bun >= 1.0
- PostgreSQL with pgvector extension
- Supabase account (or self-hosted instance)
- OpenAI API Key
-
Clone your fork:
git clone https://github.com/YOUR_USERNAME/vectorbase.git cd vectorbase -
Install dependencies:
bun install
-
Copy environment variables:
cp .env.example .env
-
Fill in your environment variables in
.env -
Set up the database:
bun run db:push bun run db:seed
-
Start the development server:
bun run dev
vectorbase/
├── src/
│ ├── app/ # Next.js App Router pages and API routes
│ ├── components/ # React components
│ ├── lib/ # Utility functions and shared code
│ └── types/ # TypeScript type definitions
├── prisma/
│ └── schema.prisma # Database schema
├── public/ # Static assets
└── scripts/ # Utility scripts
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
Examples:
feat: add Notion integration supportfix: resolve embedding generation timeoutdocs: update API documentationrefactor: simplify chunking algorithm
- Use TypeScript for all new code
- Prefer
interfaceovertypefor object shapes - Use explicit return types for functions
- Avoid
any- useunknownif type is truly unknown - Use meaningful variable names
This project uses ESLint for linting. Run before committing:
bun run lintWhen making changes to the Prisma schema:
- Make your changes in
prisma/schema.prisma - Generate a migration:
bun run db:migrate
- Apply to your local database:
bun run db:push
Currently, we're building out our test suite. Contributions to testing infrastructure are especially welcome!
- Keep README.md updated with any new features
- Document all API endpoints
- Add JSDoc comments to public functions
- Update environment variable documentation when adding new variables
Feel free to open an issue with your question or reach out to the maintainers.
Thank you for contributing!