Contributing Guide
Thank you for your interest in contributing to Kreuzberg! This guide covers everything you need — from picking an issue to getting your pull request merged.
First time contributing?
Section titled “First time contributing?”Welcome! Here’s how to get started:
- Pick an issue that matches your experience level:
- Good first issue — small, well-scoped tasks ideal for newcomers
- Help wanted — tasks where we’d especially appreciate community help
- Read through the issue and any existing comments
- Leave a comment letting maintainers know you’d like to work on it
- Ask questions — we’re here to help!
Congratulations — that’s really all it takes to start contributing! Fork, fix, and open a PR. We keep the process simple so you can focus on what matters: the code.
Want to propose a larger change or new feature? Open an issue to discuss it with maintainers first.
Prerequisites
Section titled “Prerequisites”You only need the toolchains for the areas you plan to work on.
Required for all contributions:
- Git
- Task — our task runner for all build and test workflows
- Rust stable (via
rustup) — required for core and all bindings. Thewasm32-unknown-unknowntarget is configured automatically viarust-toolchain.toml
Required for WASM builds:
- WASI SDK — provides a wasm-capable C/C++ compiler needed by tree-sitter, tesseract, and pdfium. Install to
$HOME/wasi-sdkor set theWASI_SDK_PATHenvironment variable to your install location
Language-specific toolchains (only install what you need):
| Language | Version | Tool |
|---|---|---|
| Python | 3.10+ | uv |
| Node.js | 20+ | pnpm |
| Ruby | 3.2+ | rbenv or rvm |
| Go | 1.26+ | Official installer |
| Java | 25+ | JDK (via sdkman) |
| .NET | 10+ | dotnet |
| PHP | 8.1+ | composer |
| Elixir | 1.14+ | mix (OTP 25+) |
| R | 4.1+ | CRAN |
For platform-specific build dependencies (compilers, OpenSSL, etc.), see the Installation guide.
Development setup
Section titled “Development setup”Set up your entire environment with a single command:
task setupThis installs all toolchains and dependencies. Safe to re-run anytime.
For building individual language bindings, use the namespace pattern:
task rust:buildtask python:buildtask node:buildDevelopment workflow
Section titled “Development workflow”1. Fork and clone
Section titled “1. Fork and clone”Fork the repository on GitHub, then clone your fork:
git clone git@github.com:<your-username>/kreuzberg.gitcd kreuzberggit remote add upstream https://github.com/kreuzberg-dev/kreuzberg-lts.git2. Create a branch
Section titled “2. Create a branch”git checkout -b feat/your-feature-name mainUse a prefix that matches your change type: feat/, fix/, docs/, perf/, chore/, test/.
3. Make your changes
Section titled “3. Make your changes”Keep commits small and focused.
4. Run checks
Section titled “4. Run checks”task checkThis runs both linting and formatting checks. For language-specific tests:
task rust:testtask python:testtask node:test5. Commit with conventional messages
Section titled “5. Commit with conventional messages”We use Conventional Commits. CI validates this.
feat: add PDF table extraction supportfix: handle empty MIME type in archive entriesdocs: update Python API reference for v4.4perf: parallelize layout inference6. Update documentation
Section titled “6. Update documentation”When adding user-facing features, add or update pages under docs-site/src/content/docs/ and wire them into the sidebar in docs-site/astro.config.mjs.
Issues
Section titled “Issues”Finding issues
Section titled “Finding issues”Browse the issue tracker and filter by labels: good first issue, help wanted, bug, or enhancement.
Reporting a bug
Section titled “Reporting a bug”Include: what you expected, what happened (with error output), steps to reproduce, your environment (OS, language version, Kreuzberg version), and a minimal sample file if applicable.
Suggesting improvements
Section titled “Suggesting improvements”Search for existing issues first. Describe the use case and keep scope focused — break large ideas into smaller, actionable issues.
Submitting a pull request
Section titled “Submitting a pull request”PR checklist
Section titled “PR checklist”Before opening a PR, verify locally:
-
task checkpasses - Targeted tests pass
- Docs updated (if applicable)
- Commits follow Conventional Commits
Writing a good PR description
Section titled “Writing a good PR description”Include what changed, why, and how you tested it. Use Fixes #123 to auto-close related issues.
Review and merge
Section titled “Review and merge”- CI runs — automated builds and tests across platforms
- Maintainers review — code correctness, style, and design
- Feedback rounds — make requested changes and push
- Merge — once approved with all checks passing
Merge requirements: all CI checks pass, at least one maintainer approval, no unresolved conversations, branch up to date with main.
Kreuzberg ships four GitHub Actions workflows under .github/workflows/. The first two run automatically on contributor PRs; the rest are manual or release-driven and contributors do not need to invoke them.
| Workflow | Trigger | What it does |
|---|---|---|
ci.yaml |
Push to main, every PR |
Clippy, fmt, unit + integration tests, type checks for the Python and TypeScript bindings. Runs on ubuntu-24.04-arm. This is the canonical “PR is mergeable” check. |
docs.yaml |
Push/PR touching docs-site/**, manual dispatch |
Builds the docs site in strict mode, validates snippet includes, runs prose linting, and deploys to GitHub Pages from main. |
publish.yaml |
Manual dispatch, GitHub release event | Publishes to PyPI, npm, crates.io, Homebrew, and other registries. Not run on PRs. |
publish-docker.yaml |
Manual dispatch, GitHub release event | Builds and publishes the Kreuzberg Docker images. |
Reading workflow failures
Section titled “Reading workflow failures”Open the failing PR’s Checks tab and click into the failing job to expand its log. The job name maps directly to the step in ci.yaml that failed (for example, clippy or python-test). To re-run after pushing a fix, GitHub Actions will pick the new commit up automatically; to re-run without a new commit (for flakes), use the Re-run failed jobs button at the top right of the workflow run page.
If a check is reporting “expected check missing” rather than failing outright, the workflow file probably wasn’t reachable from your branch — rebase on main and the check will register on the next push.
Coding standards
Section titled “Coding standards”- Rust: Edition 2024, no
unwrap()in production paths, document all public items,SAFETYcomments forunsafeblocks - Python:
frozen=True/slots=Truedataclasses, function-based pytest, follow Ruff and pyrefly rules - TypeScript: Strict types, no
any, bindings inpackages/typescript/src - Ruby: No global state outside
Kreuzbergmodule, panic-free native bridge, follow RuboCop - Go / Java / C#: Follow standard language conventions and project linters
Testing: language-specific tests live in each package; shared E2E behavior belongs in e2e/ fixtures. When adding features, regenerate with task e2e:<lang>:generate.
Community and support
Section titled “Community and support”- Star the repo: Give us a star on GitHub — it helps others discover Kreuzberg!
- Discord: Join our community
- Issues: GitHub Issues
- License: MIT License
Thank you for contributing to Kreuzberg!