Skip to content

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.


Welcome! Here’s how to get started:

  1. 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
  2. Read through the issue and any existing comments
  3. Leave a comment letting maintainers know you’d like to work on it
  4. 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.


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. The wasm32-unknown-unknown target is configured automatically via rust-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-sdk or set the WASI_SDK_PATH environment 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.


Set up your entire environment with a single command:

Terminal
task setup

This installs all toolchains and dependencies. Safe to re-run anytime.

For building individual language bindings, use the namespace pattern:

Terminal
task rust:build
task python:build
task node:build

Fork the repository on GitHub, then clone your fork:

Terminal
git clone git@github.com:<your-username>/kreuzberg.git
cd kreuzberg
git remote add upstream https://github.com/kreuzberg-dev/kreuzberg-lts.git
Terminal
git checkout -b feat/your-feature-name main

Use a prefix that matches your change type: feat/, fix/, docs/, perf/, chore/, test/.

Keep commits small and focused.

Terminal
task check

This runs both linting and formatting checks. For language-specific tests:

Terminal
task rust:test
task python:test
task node:test

We use Conventional Commits. CI validates this.

feat: add PDF table extraction support
fix: handle empty MIME type in archive entries
docs: update Python API reference for v4.4
perf: parallelize layout inference

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.


Browse the issue tracker and filter by labels: good first issue, help wanted, bug, or enhancement.

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.

Search for existing issues first. Describe the use case and keep scope focused — break large ideas into smaller, actionable issues.


Before opening a PR, verify locally:

  • task check passes
  • Targeted tests pass
  • Docs updated (if applicable)
  • Commits follow Conventional Commits

Include what changed, why, and how you tested it. Use Fixes #123 to auto-close related issues.

  1. CI runs — automated builds and tests across platforms
  2. Maintainers review — code correctness, style, and design
  3. Feedback rounds — make requested changes and push
  4. 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.

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.


  • Rust: Edition 2024, no unwrap() in production paths, document all public items, SAFETY comments for unsafe blocks
  • Python: frozen=True / slots=True dataclasses, function-based pytest, follow Ruff and pyrefly rules
  • TypeScript: Strict types, no any, bindings in packages/typescript/src
  • Ruby: No global state outside Kreuzberg module, 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.


Thank you for contributing to Kreuzberg!