Intermock is a TypeScript utility developed by Google that automatically generates mock objects and JSON data for TypeScript interfaces using the Faker library. It simplifies frontend and API testing by creating realistic, schema-compliant mock data directly from interface definitions, eliminating the need for manual mock creation. Intermock supports a wide range of TypeScript constructs including interfaces, unions, generics, mapped types, and tuples, ensuring comprehensive type coverage. It can be used both via a command-line interface (CLI) and programmatically through its API, making it suitable for integration into build pipelines or development environments. The tool also allows fine-grained control over output format—object, JSON, or string—and supports JSDoc annotations to define custom Faker data generators. By leveraging Intermock, developers can quickly generate realistic mock datasets for testing, prototyping, and documentation purposes without writing boilerplate code.

Features

  • Automatically generates mock objects and JSON from TypeScript interfaces
  • Supports complex TypeScript features like unions, generics, and mapped types
  • Integrates with Faker for realistic, randomized data generation
  • Offers both CLI and programmatic API usage for flexible integration
  • Allows custom Faker data types via JSDoc annotations
  • Supports optional properties and nested interface relationships

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Intermock

Intermock Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Intermock!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript, TypeScript

Related Categories

JavaScript Libraries, TypeScript Libraries

Registered

2025-10-11