Skip to content
/ mimic Public

Mimic is a library that brings TypeScript interfaces to life with mock data

Notifications You must be signed in to change notification settings

chcaru/mimic

Repository files navigation

Mimic

npm version

Mimic is a project that brings TypeScript interfaces to life with mock data. This is a small "monorepo" for the library, demo site, and a site that uses the library to send mock data to EventHub.

The original impetus for this project was that I wanted to be able to easily shape, edit, and generate large amounts of realistic mock data to test a feature I was building at the time: Power BI - Streaming Dataflows (for myself and the team). I decided to do it as a personal project and publish the library and tools for others to use too.

See the main README for the library.

Components

Mimic library

projects/mimic is the primary component - it's the library that transforms TypeScript into mock data generators.

It's available on npm: ts-mimic

See the main README of the library README for more details

Demo site

A simple app that hosts two monaco editors, one to define types and the other to preview generated mock data.

Code: projects/mimic-site

Live site: mimic.chriscaruso.dev

EventHub site

A small tool that uses mimic to define and send generated mock data to EventHub (Basically Kafka for Azure).

Code: projects/eventhub

Live site: eventhub.chriscaruso.dev

It's all client side, which is pretty cool!

About

Mimic is a library that brings TypeScript interfaces to life with mock data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published