Skip to main content
screenjson serve starts an HTTP server that wraps the same conversion, export, and validation engine as the CLI. Use it from applications, serverless functions, or a frontend that needs to convert a screenplay without shelling out.

Start a server

Or with Docker:
See screenjson serve for the full flag list.

Base URLs

Endpoints at a glance

Detail pages for every endpoint are generated from the OpenAPI spec — see the screenjson-cli endpoints group in this sidebar.

Request limits

  • /convert and /export: 50 MB request body.
  • /validate: 10 MB request body.

CORS

The server emits a permissive policy:

Error shape

All 4xx / 5xx responses are JSON:

Authentication

The vanilla server exposes no authentication. For production deployments, put it behind an API gateway (AWS API Gateway, Cloudflare, nginx) and enforce auth there, or use Greenlight which bundles bearer token auth.