Skip to main content

Trajectory platform server

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trajectory_server-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trajectory_server-0.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file trajectory_server-0.1.0.tar.gz.

File metadata

  • Download URL: trajectory_server-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for trajectory_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 406e24feb8cd4fb510bf37457652f4ee5436aa138593ee317f2d9774a45b2bb3
MD5 213052193a12828efdf00fe9dfc265a3
BLAKE2b-256 3f66d1f058b4f6834e4e5325162410d16844a4c11d25fdf60aeb832c6f1e919f

See more details on using hashes here.

File details

Details for the file trajectory_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trajectory_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8e6ceeb1cab55d905032f49e0698b074162fa9eba9be1ba79011d41b0a7e9b9
MD5 aeae1f03b578ab9583a28ec032aefb78
BLAKE2b-256 c383a3dca201df2b48b8e1c1a6c79287865819dee8279427b9970bfe5d021bf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page