@api-emulator/lucent
v0.2.2
Published
Lucent provides session replay SDK APIs for public-key validation, browser replay ingestion, and session capture workflows.
Readme
@api-emulator/lucent
Lucent provides session replay SDK APIs for public-key validation, browser replay ingestion, and session capture workflows.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/lucent- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@lucent/api-emulator.mjs --service lucentThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
POST /api/sdk/initPOST /api/sdk/replayGET /api/sdk/replaysGET /inspect/contractGET /inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
Use a fixed bearer token or API key in each test. The emulator does not send these credentials to the provider.
Test data
Add repeatable test data to the provider configuration.
lucent:
# Add provider-specific seed state here.