Topics / #mock

Mock projects on GitHub

Mocking APIs and simulating services for development and tests.

As of , the most-starred Mock projects on GitHub are vue-element-admin (90.1K stars), json-server (75.7K stars) and googletest (39.7K stars). GitHub.Locker tracks 16 Mock repositories with 417.4K stars combined. The fastest-growing on October 17 was keploy, with +14 stars in a day.

16Projects
417.4KStars in total
+45Stars in a day

Hot right now

Most stars gained in a day · Oct 17

The all-time top

16 projects · by stars

  1. #1 · PanJiaChen/vue-element-admin

    vue-element-admin

    vue-element-admin is a production-ready front-end solution for building admin interfaces, built on Vue and the element-ui component toolkit.

    90.1K
  2. #2 · typicode/json-server

    json-server

    json-server lets you spin up a fully working fake REST API in under 30 seconds, with no backend code to write — just a single JSON file defining your data.

    75.7K
  3. #3 · google/googletest

    googletest

    Google's testing and mocking framework for C++, built on the xUnit architecture. It merges the formerly separate GoogleTest and GoogleMock projects, which Google now maintains and releases together.

    39.7K
  1. 4

    yapi

    27.7KYMFE/yapi · JavaScript

    YApi is a visual API management platform for developers, product managers and QA: one place to document, debug, mock and automatically test your APIs.

  2. 5

    Faker

    26.6Kfzaninotto/Faker · PHP

    Faker is a PHP library that generates fake data for you, such as names, addresses, phone numbers, emails, and more.

  3. 6

    keploy

    18.6Kkeploy/keploy · Go

    Keploy is an open-source tool that auto-generates API and integration tests from real traffic: it records your API calls, database queries and streaming events, then replays them as tests.

  4. 7

    msw

    18.3Kmswjs/msw · TypeScript

    Mock Service Worker (MSW) is the industry-standard API mocking library for JavaScript. It intercepts the network requests your app makes and serves mock responses you define, so you never touch a real backend.

  5. 8

    scalar

    16.3Kscalar/scalar · TypeScript

    Scalar is an open-source API platform: a modern, offline-first REST API client built for OpenAPI (a Postman alternative), plus an interactive API reference that renders OpenAPI/Swagger documents and looks nothing like 2011.

  6. 9

    faker

    15.5Kfaker-js/faker · TypeScript

    Faker is a JavaScript/TypeScript library that generates massive amounts of fake but realistic data — names, addresses, dates, finance records — for testing and development, in the browser and Node.js.

  7. 10

    mockito

    15.5Kmockito/mockito · Java

    Mockito is a mocking framework for unit tests written in Java, and the most popular one: it creates mock objects so you can test a class in isolation from its dependencies.

  8. 11

    soybean-admin

    15.1Ksoybeanjs/soybean-admin · TypeScript

    SoybeanAdmin is a clean, elegant and feature-rich admin template for Vue3 — a ready-made dashboard boilerplate built on Vite, TypeScript, Pinia, NaiveUI and UnoCSS that works out of the box.

  9. 12

    nock

    13.1Knock/nock · JavaScript

    Nock is a Node.js library that mocks HTTP servers so you can test code that performs HTTP requests without hitting a real network.

  10. 13

    faker

    11.9Kfaker-ruby/faker · Ruby

    Faker is a Ruby library that generates realistic-looking fake data (names, addresses, emails, phone numbers, and more) for testing, demos, and seeding databases.

  11. 14

    douyin

    11.5Kzyronon/douyin · Vue

    A Vue3 + Pinia clone of Douyin (TikTok), built to showcase best practices for using Vue on mobile with a native-app-like smooth short-video feed.

  12. 15

    ant-design-vue-pro

    10.9KvueComponent/ant-design-vue-pro · Vue

    An out-of-box UI solution for enterprise applications: a Vue 2 boilerplate that ships a complete admin dashboard built on Ant Design Vue, so you start from a working app instead of an empty project.

  13. 16

    mockery

    10.7Kmockery/mockery · PHP

    A PHP mock object framework for unit testing: it builds test doubles (mocks) through a succinct, human-readable DSL, so your tests can call fakes instead of real objects.

Often tagged together