A mock implementation of the contentful API

Usage no npm install needed!

<script type="module">
  import contentfulMock from '';


Contentful Mock API

Contentful Mock Logo


This project aims to support developers using the contentful API. Rather than having to always be online when developing applications this in memory database mock aims to ease the pain.

Its main aims are to help provide a simple way to mock out data as well as supporting fast automated tests with predictable scenarios.

Getting Started

  • Create a folder in the root of your project called .contentful (example here)
  • Add a script to you project package.json contentful-mock
  • Contentful mock server will be running on 8090

Coming Soon

  • Docker container that allows a simple copy of your .contentful mock yaml data folder
  • Support for many more of the API endpoints see tests for status