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
- Python 3.11+
- UV (Python package manager)
- Node.js (v18+)
- A LangSmith API key (
lsv2_pt_...)
Quick Start
./run.sh
This single command handles everything:
- Creates a Python virtual environment (via
uv venv) if one doesn't exist - Installs backend dependencies
- Installs frontend dependencies (if
node_modulesis missing) - Starts the FastAPI backend on http://localhost:8000
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
406e24feb8cd4fb510bf37457652f4ee5436aa138593ee317f2d9774a45b2bb3
|
|
| MD5 |
213052193a12828efdf00fe9dfc265a3
|
|
| BLAKE2b-256 |
3f66d1f058b4f6834e4e5325162410d16844a4c11d25fdf60aeb832c6f1e919f
|
File details
Details for the file trajectory_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trajectory_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8e6ceeb1cab55d905032f49e0698b074162fa9eba9be1ba79011d41b0a7e9b9
|
|
| MD5 |
aeae1f03b578ab9583a28ec032aefb78
|
|
| BLAKE2b-256 |
c383a3dca201df2b48b8e1c1a6c79287865819dee8279427b9970bfe5d021bf0
|