TypeScript Mocking

Open-source TypeScript projects categorized as Mocking

Top 15 TypeScript Mocking Projects

  1. msw

    Industry standard API mocking for JavaScript.

    Project mention: Implementing Optimistic UI with Remix | dev.to | 2025-06-01

    In this post, we'll dive into implementing Optimistic UI in a Remix.run application, combined with Mock Service Worker(MSW) for robust API mocking and intercepting API requests into our application. Essential for development and testing. It allows us to intercept network requests and define mock responses right in the browser, simulating API behavior without needing a real backend running. This is invaluable for rapid development and testing edge cases like API failures.

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.

    SurveyJS logo
  3. mockoon

    Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.

    Project mention: Ask HN: Who wants to be hired? (July 2025) | news.ycombinator.com | 2025-07-01
  4. prism

    Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)

  5. ng-mocks

    Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup

    Project mention: The most valuable developer in the team is … | dev.to | 2024-09-04

    providing the mocks might require a lot of cumbersome code in some cases. It makes sense to use extra tools to simplify it. For instance, ng-mocks for Angular

  6. ts-mockito

    Mocking library for TypeScript

  7. data

    Data modeling and relation library for testing JavaScript applications. (by mswjs)

  8. suites

    Unit testing framework for dependency injection that automates mocking and simplifies test setup, reducing boilerplate code and enabling developers to build comprehensive and reliable test suites with a standardized, type-safe API

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. camouflage

    Camouflage is a backend mocking tool for HTTP, gRPC, Websockets and Thrift protocols, which helps you carry out your front end prototyping, unit testing, functional/performance testing in silos, in absence of one or more Microservices/APIs.

  11. laika

    Log, test, intercept and modify Apollo Client's operations (by zendesk)

  12. strong-mock

    Type safe mocking library for TypeScript

  13. mockingbird

    A powerful tool for creating and managing versatile mock API environments. (by ozkeisar)

    Project mention: How to Use the Mockingbird Docker Image | dev.to | 2024-08-21

    If you are new to Mockingbird we recommend you to start by using Mockingbird app and reading the first guide

  14. such

    A powerful fake data library, expandable, configurable, generate data exactly as you want.

  15. mockoon.com

    Mockoon application official website repository and documentation

  16. microcks-docker-desktop-extension

    Docker Desktop extension for running Microcks

    Project mention: AI-Enhanced Mock APIs with Docker Model Runner and Microcks | dev.to | 2025-05-26

    Microcks is a powerful CNCF tool that allows developers to quickly spin up mock services for development and testing. By providing predefined mock responses or generating them directly from an OpenAPI schema, you can point your applications to consume these mocks instead of hitting real APIs, enabling efficient and safe testing environments.

  17. partial-mock

    A solution for ⬆️over and ⬇️under mocking

  18. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript Mocking discussion

Log in or Post with

TypeScript Mocking related posts

  • Push to production on Fridays

    4 projects | dev.to | 9 Oct 2024
  • The most valuable developer in the team is …

    1 project | dev.to | 4 Sep 2024
  • Unit Test Like a Pro: Automock, My Open Source Answer to Mocking Frustration 🤓💡🎭

    1 project | dev.to | 12 Dec 2023
  • Show HN: Automock – Open-Source Project for Simpler Unit Testing in TypeScript

    2 projects | news.ycombinator.com | 11 Dec 2023
  • The most effective Schema-Driven Development using OpenAPI for Logistic Engineer

    2 projects | dev.to | 9 Dec 2023
  • What direction can I take to mocking a data structure that is relational on the front-end while I wait for backend endpoints to be created?

    2 projects | /r/Frontend | 9 Dec 2023
  • What direction can I take to mock a (relational?) data-structure on the front-end while I wait for backend endpoints to be created?

    2 projects | /r/webdev | 9 Dec 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 15 Jul 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Mocking projects in TypeScript? This list will help you:

# Project Stars
1 msw 16,903
2 mockoon 7,479
3 prism 4,621
4 ng-mocks 1,130
5 ts-mockito 987
6 data 890
7 suites 427
8 camouflage 291
9 laika 122
10 strong-mock 105
11 mockingbird 91
12 such 29
13 mockoon.com 21
14 microcks-docker-desktop-extension 16
15 partial-mock 13

Sponsored
JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?