 When we start to build an application, we generally do not want to worry much about data. To create a database and fill it with sample data seems much of a hassle to me personally. I rather focus more on creating RESTful API and front end of the application when I prototyping. However, this doesn’t mean I don’t pay attention to data organization in database. It’s important to have schemas of collections and documents or in any other way you want to organize your data. With this aspect complete, it brings clarity to _what_ and _how_ questions when creating APIs. In a recent scenario, building a prototype of an E-Commerce web application for a client, I found myself in a similar situation. I had a deadline to deliver the prototype with maximum number of functionalities checked required by the client. After settling on how to architecture database’s schemas, I went on searching and finding a gem to solve this issue: **faker.js.** ### Enter faker.js It’s a wonderful node module to create fake/mock data when you are facing a similar situation as me. fakerjs has its own API, and it’s huge. All credit goes to [**Marak**](https://twitter.com/marak) who built it. It has a vast API for almost every use case with an excellent [_documentation_ that can help you get familiar in minutes on Github.](https://github.com/marak/Faker.js/) Let’s consider a test case where I want some _a user_ to have following amount of fields: * name * email * website * address * bio * image/avatar  That’s it. This is how you mock data using faker.js. It’s quick, simple to setup and no hassle at all. You just have to add it to your `npm` dependencies: npm install faker --save #### faker.js Data List of data that can generate faker.js: * address * commerce * company * date * finance * hacker * helpers * image * internet * lorem * name * phone * random * system Each element has a lot of sub-items that you can check [_here_](https://github.com/Marak/faker.js) in the documentation. Another good thing about Faker I like is that it’s not only restricted to server side JavaScript only. You can mock data for browser JavaScript too. A little snippet from the documentation shows how to do this: <script src = "faker.js" type = "text/javascript"></script><script> var randomName = faker.name.findName(); // Caitlyn Kerluke var randomEmail = faker.internet.email(); // Rusty@arne.info var randomCard = faker.helpers.createCard(); // random contact card containing many properties</script> This API will help you to prototype your JavaScript/Node.js applications at a faster rate. Not only that, you can easily mock your TDD/BDD tests when creating a RESTful API utilising this library. _For_ [_full source code at this Github Repository_](https://github.com/amandeepmittal/fakerjs) **Want to receive more articles like this one? Subscribe me** [**here**](https://patreon.us17.list-manage.com/subscribe?u=ad4c168a6d5bb975f2f282d54&id=39e959cecd)**. Sometimes, I send “never seen before” content to my subscribers.** **_Thank you for reading. If you find this post useful, please hit the_** 💚**_button so this story can reach out to more_ readers_. If you’d like to talk about it, ping me on_** [**Twitter**](https://twitter.com/amanhimself) **_or_** [**check my other articles on Node.js**](https://medium.com/@amanhimself)**_._**