counterfact avatar

counterfact

Official

@counterfact

0Followers
|
3Public Repos
|
11Published Skills

Offers a framework for generating stateful mock servers directly from OpenAPI specifications to accelerate development and testing cycles.

Skills Distribution
DomainDeveloper To...OpenAPI-Simulation (40%)TypeScript-Generat.. (30%)Mock-Server-Archit.. (30%)

Agent Skills by counterfact

Showing 11 vetted skills indexed across 1 GitHub repositories.

counterfactcounterfact
169

counterfact-cli-runtime

Update Counterfact CLI runtime option handling, config resolution, and startup diagnostics.

Official
Intermediate
counterfactcounterfact
169

counterfact-runtime-architecture

Evolve Counterfact runtime internals while preserving module boundaries and hot reload semantics.

Official
Intermediate
counterfactcounterfact
169

counterfact-maintenance

Validates contributor PRs against repository conventions for tests, docs, and changesets.

Official
Intermediate
counterfactcounterfact
169

counterfact-repo-basics

Orient teams in Counterfact repositories with standard install, build, test, and lint workflows.

Official
Intermediate
counterfactcounterfact
169

counterfact-generator-internals

Modify TypeScript generator internals and OpenAPI parsing while preserving regeneration guarantees.

Official
Advanced
counterfactcounterfact
169

build-simulation

Generate a stateful API simulation scaffold from an OpenAPI spec.

Official
Advanced
counterfactcounterfact
169

context

Define and evolve stateful context logic in _.context.ts files with enforced unit tests.

Official
Intermediate
counterfactcounterfact
169

route

Update route handlers to delegate business logic to context classes.

Official
Intermediate
counterfactcounterfact
169

counterfact-repl

Interact with a Counterfact mock server Admin API to manipulate context state and proxy settings.

Official
Advanced
counterfactcounterfact
169

scenario

Seed and mutate Counterfact mock runtime context via reusable scenario modules.

Official
Intermediate
counterfactcounterfact
169

counterfact

Modify routes, contexts, and scenarios in Counterfact API simulations.

Official
Intermediate

Frequently Asked Questions About counterfact

FAQPage Schema
What 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.