Contributing to traceAI

October 28, 2025 ยท View on GitHub

Thanks for your interest in contributing! ๐ŸŽ‰

Quick Start

  1. Fork & Clone

    git clone https://github.com/YOUR_USERNAME/traceAI.git
    cd traceAI
    
  2. Create a branch

    git checkout -b feature/your-feature
    
  3. Make changes & test

  4. Commit (use Conventional Commits)

    git commit -m "feat: add xyz support"
    
  5. Push & open a PR

    git push origin feature/your-feature
    

Development Setup

Python

cd python
poetry install              # Install core
cd frameworks/openai        # Work on specific framework
poetry install
pytest                      # Run tests

Code Quality: Black, isort, flake8, mypy

TypeScript

cd typescript
pnpm install                # Install all packages
pnpm run build              # Build
pnpm test                   # Run tests

Code Quality: ESLint, Prettier, TypeScript strict mode


Adding a New Framework

Python

mkdir python/frameworks/your-framework
cd python/frameworks/your-framework

Create structure:

traceai_your_framework/
โ”œโ”€โ”€ __init__.py
โ”œโ”€โ”€ instrumentation.py
โ””โ”€โ”€ version.py
tests/
examples/
pyproject.toml
CHANGELOG.md
README.md

TypeScript

mkdir typescript/packages/traceai_your_framework

Create structure similar to existing packages, then update pnpm-workspace.yaml.

Don't forget: Update main README with your new integration!


Guidelines

  • โœ… Write tests for all changes
  • โœ… Follow existing code style
  • โœ… Update documentation
  • โœ… Update CHANGELOG.md
  • โœ… Keep PRs focused and small

Need Help?


Happy Contributing! ๐Ÿš€