ProjectsTesting

Simile

Test against the service you expect.

Simile runs provider-authored service emulations on a developer's machine or in CI. It validates requests, produces contract-backed responses, maintains local state and exercises declared asynchronous work, webhooks, scenarios and delivery faults.

Service providers publish the public contract and optional behavior. Developers run the resulting service without depending on a hosted test environment, production credentials or shared test data.

Provider-authored services that run locally.

Simile compiles a public HTTP contract and optional behavior into a portable service artifact. Its runtime serves that artifact without reopening the source contract, giving local development and CI the same validated routes, outcomes and state transitions.

Release
v0.3.0
Contract sources
OpenAPI, Smithy, TypeScript
Minimum Rust
1.85
License
MIT
01

Contract-backed HTTP

Validate requests and synthesize responses from OpenAPI 3.0–3.2, Smithy 2.0 or semantic TypeScript declarations instead of maintaining a second handwritten mock contract.

02

Deterministic service state

Model databases, queues, caches, mail, object storage, events, schedules and outbound HTTP with repeatable local backends and explicit time control.

03

Supervised application tests

Run an application test command with the selected Simile service, profile and environment, then clean up the service while preserving the test's exit status.

04

Direct operation runs

Execute one contract operation with a supplied or synthesized request to inspect an outcome before starting a long-lived local service.

05

Scenarios and faults

Exercise provider-declared outcomes, asynchronous work, signed webhooks, environmental faults and delivery failures without changing application code.

06

Proxy-assisted learning

Observe a bounded pass-through session, sanitize captured evidence and generate a conservative service workspace for provider review.

01

Provider-owned behavior

The service provider publishes the contract and optional behavior instead of asking every consumer to invent its own mocks.

02

Local determinism

Tests control state, time, outcomes and faults without depending on the availability or history of a shared sandbox.

03

Inspectable fidelity

Compiled artifacts, generated requests and declared outcomes make the emulator's claims reviewable rather than implicit.

04 / Read, inspect, contribute

Follow the work.

Optional cookies

We use optional analytics and advertising cookies to understand visits and measure campaigns. Read our privacy policy.