elixirs/faker

Faker is a pure Elixir library for generating fake data.

Elixir

1,199

477 commits

updated Oct 8, 2026

See the code

README

Faker

build Version Hex Docs License Issues Downloads Gitter Last Updated

Faker is a pure Elixir library for generating fake data.

Quickstart

  • add {:faker, "~> 0.19.0-alpha.5"} to your deps in mix.exs:

    defp deps do
      [
        {:faker, "~> 0.19.0-alpha.5", only: :test}
      ]
    end
    
  • run:

    mix deps.get
    
  • add Faker.start() to test/test_helper.exs:

    ExUnit.start()
    Faker.start()
    
  • jump to usage examples.

Requirements

  • OTP 19+
  • Elixir 1.6+

Usage

See documentation and usage examples.

Troubleshooting

  • If you get a message like the one below when you call Faker.Address.city/0, you need to add :faker to your application's mix file, in the applications function, as above.

    ** (FunctionClauseError) no function clause matching in Faker.Address.city_count/1
    lib/faker/address.ex:48: Faker.Address.city_count(nil)
    lib/faker/address.ex:41: Faker.Address.city/0
    

Tools

Faker was designed as a lightweight library, that's why it can be easily used with other tools.

Templating

You can build templates for testing purposes with the Blacksmith project. See the Blacksmith readme for details.

Team

Faker was originally written by Igor Kapkov.

Current list of maintainers:

Contributing

Do you want to become a maintainer?

See our CONTRIBUTING.md and start contributing today. We usually elect new maintainers based on contributions.

Thanks

Sponsored by Evil Martians

License

Released under the MIT License.

data
database
data-generator
developer-tools
dummy
elixir
fake-content
faker
generator
hacktoberfest
phoenix
qa
seed
seeding
test
testing
testing-tools

elixirs/faker

Faker is a pure Elixir library for generating fake data.

Elixir

1,199

477 commits

updated Oct 8, 2026

See the code

README

Faker

build Version Hex Docs License Issues Downloads Gitter Last Updated

Faker is a pure Elixir library for generating fake data.

Quickstart

  • add {:faker, "~> 0.19.0-alpha.5"} to your deps in mix.exs:

    defp deps do
      [
        {:faker, "~> 0.19.0-alpha.5", only: :test}
      ]
    end
    
  • run:

    mix deps.get
    
  • add Faker.start() to test/test_helper.exs:

    ExUnit.start()
    Faker.start()
    
  • jump to usage examples.

Requirements

  • OTP 19+
  • Elixir 1.6+

Usage

See documentation and usage examples.

Troubleshooting

  • If you get a message like the one below when you call Faker.Address.city/0, you need to add :faker to your application's mix file, in the applications function, as above.

    ** (FunctionClauseError) no function clause matching in Faker.Address.city_count/1
    lib/faker/address.ex:48: Faker.Address.city_count(nil)
    lib/faker/address.ex:41: Faker.Address.city/0
    

Tools

Faker was designed as a lightweight library, that's why it can be easily used with other tools.

Templating

You can build templates for testing purposes with the Blacksmith project. See the Blacksmith readme for details.

Team

Faker was originally written by Igor Kapkov.

Current list of maintainers:

Contributing

Do you want to become a maintainer?

See our CONTRIBUTING.md and start contributing today. We usually elect new maintainers based on contributions.

Thanks

Sponsored by Evil Martians

License

Released under the MIT License.

data
database
data-generator
developer-tools
dummy
elixir
fake-content
faker
generator
hacktoberfest
phoenix
qa
seed
seeding
test
testing
testing-tools

Project health

Overall

5.5/10

Maintained

10/10
OpenSSF Scorecard

Significant stargazers

Jason Axelson

275 followers · starred Feb 2025

Chris McCord

3,653 followers · starred Jan 2015

Pedro Piñera Buendía

1,011 followers · starred Jul 2025

Leandro Pereira

287 followers · starred Oct 2021