jennifer-lang

Getting Started

Install

npm install
cp .env.example .env

Set the provider variables in .env:

JENNIFER_PROVIDER_BASE_URL=https://api.example.com
JENNIFER_PROVIDER_API_KEY=your-key
JENNIFER_PROVIDER_MODEL=your-model
JENNIFER_DESLOP_MODE=validate
PORT=3000

Run

./scripts/deploy-locally.sh

The script starts the HTTP service, waits for /health, and opens the browser unless JENNIFER_OPEN_BROWSER=0 is set.

The deploy script restarts the local Jennifer Lang service for the configured port. It does not keep creating new ports. Stop the service explicitly with:

./scripts/stop-locally.sh

Use The Workbench

  1. Open the local URL printed by the script.
  2. Write a .jennifer program in the Program editor or upload a .jennifer file.
  3. Edit the Body Of Request field for the request you want to run.
  4. Choose a Deslop mode.
  5. Use Compile to validate structure or Run to execute against the configured provider.

Verify Provider Credentials

Use the Provider Test button in the workbench or call:

curl -s http://127.0.0.1:3000/api/test