Skip to main content

Trajectory Platform

Import your data, convert them into Trajectories, and receive endpoints via the Trajectory Platform.

Currently supports Langsmith Integration (Braintrust coming soon).

All processing happens on your machine and your API key never leaves your environment.

Prerequisites

Quick Start

./run.sh

This single command handles everything:

  1. Creates a Python virtual environment (via uv venv) if one doesn't exist
  2. Installs backend dependencies
  3. Installs frontend dependencies (if node_modules is missing)
  4. Starts the FastAPI backend on http://localhost:8000
  5. Starts the Vite dev server on http://localhost:5173

Open http://localhost:5173 in your browser, enter your LangSmith API key, and start browsing traces.

Press Ctrl+C to stop both servers.

Manual Setup

If you prefer to run things separately:

Backend

uv venv
uv pip install -r server/requirements.txt
uv run uvicorn server.main:app --reload

The API server will be available at http://localhost:8000.

Frontend

cd frontend
npm install
npm run dev

The frontend dev server will be available at http://localhost:5173. It proxies /api requests to the backend automatically.

Project Structure

.
├── server/                  # FastAPI backend
│   ├── main.py              # App setup, CORS, routes
│   ├── routers/             # API endpoint definitions
│   │   ├── projects.py      # Project listing & validation
│   │   └── threads.py       # Thread/conversation endpoints
│   ├── services/
│   │   └── langsmith.py     # LangSmith API interaction
│   └── models/
│       └── schemas.py       # Pydantic request/response models
├── frontend/                # React + TypeScript frontend
│   ├── src/
│   │   ├── components/      # UI components
│   │   ├── context/         # React context (auth state)
│   │   ├── api/             # API client
│   │   └── types/           # TypeScript type definitions
│   └── vite.config.ts       # Vite config with API proxy
├── run.sh                   # Development startup script
└── pyproject.toml           # Python project config

Available Scripts

Command Description
./run.sh Start both backend and frontend
npm run dev Start frontend dev server only (from frontend/)
npm run build Type-check and build frontend for production
npm run lint Run ESLint on frontend code
npm run preview Preview production build

License

Apache 2.0

Release files for trajectory-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trajectory-server 0.1.0
File Size Uploaded
trajectory_server-0.1.0.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trajectory-server 0.1.0
File Interpreter ABI Platform
trajectory_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / trajectory_server-0.1.0.tar.gz

Download URL trajectory_server-0.1.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
406e24feb8cd4fb510bf37457652f4ee5436aa138593ee317f2d9774a45b2bb3
BLAKE2b-256 checksum
How to use checksums
3f66d1f058b4f6834e4e5325162410d16844a4c11d25fdf60aeb832c6f1e919f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / trajectory_server-0.1.0-py3-none-any.whl

Download URL trajectory_server-0.1.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8e6ceeb1cab55d905032f49e0698b074162fa9eba9be1ba79011d41b0a7e9b9
BLAKE2b-256 checksum
How to use checksums
c383a3dca201df2b48b8e1c1a6c79287865819dee8279427b9970bfe5d021bf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page