Skip to main content
Prerequisites:
  • Node.js (version 18 or higher)
  • Git
  • An LLM provider account (OpenAI, Anthropic, etc.) for testing

Local Development Setup

Clone the Repository

First, clone the Untrace repository and install dependencies:

Start the Development Server

Run the development server locally:
This will start:
  • The API server on port 3000
  • The web dashboard on port 3001
  • The trace processing service on port 3002

Project Structure

Development Workflow

Running Tests

We use Jest for testing. Run the test suite with:

Linting and Formatting

We use ESLint and Prettier to maintain code quality:

Building Locally

To build all packages:
To build a specific package:

Running Examples

We provide example integrations in the examples/ directory. To run an example:

Debugging

SDK Debugging

Run the SDK with debug logging:

Dashboard Debugging

The dashboard includes React Developer Tools and runs in development mode by default:

Common Issues

If port 3000, 3001, or 3002 is already in use, you can specify different ports:
During development, you can use test API keys:

Contributing

We welcome contributions! Here’s how you can help:
  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: npm test
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to your branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Contribution Guidelines

  • Follow the existing code style
  • Add tests for new features
  • Update documentation for changes
  • Keep commits focused and atomic
  • Write clear commit messages

Next Steps

Architecture

Learn about Untrace’s internal architecture

API Reference

Explore the internal APIs

Testing Guide

Learn how to test your changes

SDK Development

Create integrations for new programming languages