AngularJS mock factory!

Generate random mocks on the fly and bind them to your REST resources
✓ user-friendly API
✓ fast to use
✓ flexible

Live demo

click (multiple times) on any of the buttons on the left to fire $http service calls
which will get handled by $httpBackend service.

$http promise response

source JSON Schema


Because you want to concentrate on writing angular apps and not on generating mock data or even writing them by hand... and then configuring angular details to make them work.
This is an out-of-the-box solution that works immediately!
It enables you to do Backend-less development


angular-jsf combines built-in angular $httpBackend service with JSON-Schema-faker library.
Check out JSON-Schema-faker demo page to see schema examples!


1. Make sure you include required JS files:

angular-mocks built-in module:
<script type="text/javascript" src=""></script>
json-schema-faker library:
<type="text/javascript" src=""></script>
and angular-jsf:
<script type="text/javascript" src="angular-jsf.js"></script>

2. Use jsf as dependency:

var demoApp = angular.module('demoApp', ['jsf']);

3. define mocks in module run phase: (jsfRegisterMock) {

// GET /users/

    name: 'User Collection',
    url: '/users',
    method: 'GET',
    responseSchema: {
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "faker": "name.findName"
            "email": {
                "type": "string",
                "faker": ""
            "age": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
        "required": [
and be happy!

Early development version

Keep in mind angular-jsf is in early development stage and the API might change in future versions.