faker
A library for generating fake data such as names, addresses, and phone numbers. (by faker-ruby)
faker
Generate massive amounts of fake data in the browser and node.js (by faker-js)
faker | faker | |
---|---|---|
45 | 58 | |
11,122 | 11,783 | |
0.7% | 1.9% | |
8.7 | 9.7 | |
3 days ago | 3 days ago | |
Ruby | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
faker
Posts with mentions or reviews of faker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-21.
- Faker – generate fake data such as names, addresses, and phone numbers
-
Test Driving a Rails API - Part Two
While we’re at it, let's add a couple of other gems we’ll need for our test environment: factory_bot_rails is a fixtures replacement and generates test model instances. faker is handy for generating fake strings of data to be used in tests. Add those gems to the development and test group of your Gemfile:
-
Full-Text Search for Ruby on Rails with Litesearch
Next up, we'll combine a few of the techniques we've reviewed to implement snappy typeahead searching. Before we do that, though, let's generate more sample data. I will use the popular faker gem to do that:
-
Leveling up your custom fake data with Faker.js
Faker was originally written in Perl and is also available as a library for Ruby, Java, and Python.
-
How to Use Shoulda Matchers with RSpec for Ruby on Rails
Faker
-
How to Setup RSpec on a Rails Project
rspec-rails factory_bot_rails faker
- Seeding the DB: Best approach?
-
Users of the Ruby programming language now have FFXIV mock data
Ah, so the data is just a giant .yml file of potential options, that I compiled, and then faker grabs a random one based on that data. There's no "database" or anything akin to that.
-
A proposal on how to deal with Monkey Patching
It's with the Faker library. I was able to reproduce it by spinning up a new rails up, specifying the faker gem , yours, and running the command gives the same error.
-
Faker Gem
To begin using faker, you need to install the gem, which is simply done by running "gem install faker". After you do that, you should add "gem "faker"" to your gem file to ensure correct usage, otherwise you may get an error. Once thats done you can head over to the seeding file and add require "faker" the page. In the seeding file is where you would start to "fake" your data and we use the faker library to pick out random dummy data. In the seeding, your gonna start implementing the data which should look like this,
faker
Posts with mentions or reviews of faker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-15.
-
Easily create mock data for unit tests 🧪
Instead of manually having to think of defaults for your interface properties, you could use Faker.
-
Leveling up your custom fake data with Faker.js
If you think you have something which other Faker users would find useful, you can contribute it to Faker! See the contributing guide, you can create an issue or a pull request.
- Front-End Prototyping - Mock JSON Data Provider
- Show HN: Buyidentities.com
- Show HN: Generate JSON mock data for testing/initial app development
-
Web workers in ReactJs
First, we create a react project, and then we use a service faker to create 25000 user records.
-
Component Testing with Cypress and Reactjs
Use faker.js to generate random values for your mock data.
-
Sveltekit Twitter Clone starter made with Lucia Auth, Prisma and Faker.js
I built a starter project for developing a social media app with Sveltekit, Lucia Auth, Prisma and Faker.js. Uses sqlite for prototyping but can easily be changed to Postgres or MySQL.
-
How do you get realistic data in your staging databases?
Don’t even need chatGPT or json files! There are libraries like faker that’ll do it on the fly for you!
-
C++ Faker library
I am currently working with Typescript as well as C++ and I enjoyed using FakerJS library for testing data. I've checked for C++ libraries and I haven't found anything that could be used for my basic needs (like generating emails, passwords, names, uuids or lorem words) so I just started my own project with idea to deliver such library to C++ developers.
What are some alternatives?
When comparing faker and faker you can also consider the following projects:
ffaker - Faker refactored.
falso - All the Fake Data for All Your Real Needs 🙂
factory_bot - A library for setting up Ruby objects as test data.
Faker.js - What really happened with Aaron Swartz?
Forgery - Easy and customizable generation of forged data.
yup-schema-faker - Fake data generator for yup
Fabrication - This project has moved to GitLab! Please check there for the latest updates.
casual - Fake data generator for javascript
Fake Person - Create some fake personalities
plop - Consistency Made Simple
FactoryTrace - Simple tool to maintain factories and traits from FactoryBot
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB