counterfact
Official@counterfact
Offers a framework for generating stateful mock servers directly from OpenAPI specifications to accelerate development and testing cycles.
Agent Skills by counterfact
Showing 11 vetted skills indexed across 1 GitHub repositories.
counterfact-cli-runtime
Update Counterfact CLI runtime option handling, config resolution, and startup diagnostics.
counterfact-runtime-architecture
Evolve Counterfact runtime internals while preserving module boundaries and hot reload semantics.
counterfact-maintenance
Validates contributor PRs against repository conventions for tests, docs, and changesets.
counterfact-repo-basics
Orient teams in Counterfact repositories with standard install, build, test, and lint workflows.
counterfact-generator-internals
Modify TypeScript generator internals and OpenAPI parsing while preserving regeneration guarantees.
build-simulation
Generate a stateful API simulation scaffold from an OpenAPI spec.
context
Define and evolve stateful context logic in _.context.ts files with enforced unit tests.
route
Update route handlers to delegate business logic to context classes.
counterfact-repl
Interact with a Counterfact mock server Admin API to manipulate context state and proxy settings.
scenario
Seed and mutate Counterfact mock runtime context via reusable scenario modules.
counterfact
Modify routes, contexts, and scenarios in Counterfact API simulations.
Frequently Asked Questions About counterfact
FAQPage SchemaWhat specific tasks does Counterfact enable for developers?▼
Counterfact enables the rapid generation of stateful mock servers from OpenAPI specifications. It allows developers to define custom business logic in context classes, manipulate server state via an administrative interface, and seed specific data scenarios to simulate complex backend behaviors during frontend or integration testing.
Which personas benefit most from using Counterfact?▼
Frontend engineers, backend developers, and quality assurance testers benefit most from Counterfact. It is designed for teams needing to decouple development from live backend availability by providing a highly configurable, stateful simulation environment that mirrors production-ready interface definitions.
What are the primary prerequisites for running Counterfact?▼
Counterfact requires an existing OpenAPI specification file to function as the source of truth for server generation. Users must have a TypeScript environment configured to support the generated modules, as the framework relies on TypeScript-based context classes and route handlers to manage simulation state.