RepositoryElixir
elixirs

elixirs/faker

Faker is a pure Elixir library for generating fake data.

1.2kstars
262forks
30issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: seeding

#1 Repository of the week

1
TINIX TRENDING·Topic: seed

#1 Repository of the week

1
TINIX TRENDING·Topic: phoenix

#1 Repository of the week

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.1"} to your deps in mix.exs:

    defp deps do
      [
        {:faker, "~> 0.19.0-alpha.1", 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.

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
probelabs/goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.

19.3k
Jan 27, 2026
RepositoryElixir
plausible/analytics

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

30.0k
Nov 27, 2026
RepositoryElixir
supabase/realtime

Broadcast, Presence, and Postgres Changes via WebSockets

7.7k
Dec 1, 2026
RepositoryElixir
livebook-dev/livebook

Automate code & data workflows with interactive Elixir notebooks

6.0k
Dec 1, 2026
RepositoryElixir
ueberauth/guardian

Elixir Authentication

3.5k
Aug 18, 2026
RepositoryElixir
thechangelog/changelog.com

Changelog makes world-class developer pods. This is our open source platform.

2.8k
Oct 29, 2026
RepositoryElixir
woutdp/live_svelte

Svelte inside Phoenix LiveView with seamless end-to-end reactivity

1.7k
Oct 2, 2026
RepositoryTypeScript
hoppscotch/hoppscotch

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

81.0k
Nov 27, 2026
RepositoryJavaScript
goldbergyoni/javascript-testing-best-practices

📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (August 2025)

24.6k
Jun 27, 2024