Faker (faker.js) by Faker community
JavaScript library that generates fake but realistic data (names, addresses, text, numbers, images, 70+ locales) in Node and the browser.
Placeholder images, data and text Library
Faker (faker.js) popularity
Downloads from api.npmjs.org, stars and forks from GitHub, checked Oct 22, 2026. How the Gid Score is calculated.
Rules for your agent
Copied.
- Faker (faker.js) (Placeholder images, data and text). JavaScript library that generates fake but realistic data (names, addresses, text, numbers, images, 70+ locales) in Node and the browser. Price: free; commercial use OK; no credit needed.
Connect: npm @faker-js/faker.
Get files: npm install @faker-js/faker --save-dev, then import { faker } from '@faker-js/faker' (json).
Not allowed: Keep the MIT notice when redistributing the library
Rule: Keep the MIT copyright notice with copies of the library.
Rule: Generated data is fake; do not present it as real.
License: https://raw.githubusercontent.com/faker-js/faker/next/LICENSE (checked 2026-10-21; details: https://agentgid.com/assets/faker-js/)
Paste it into your prompt or AGENTS.md. It is built from the license and API terms below.
License
| License | MIT |
|---|---|
| Commercial use | Commercial use OK“Permission is hereby granted, free of charge, to any person obtaining a copy of this software” raw.githubusercontent.com/faker-js/faker/next/LICENSE |
| Credit | No credit needed Same clause as quoted for commercial use. |
| Inside your app or game | Can ship inside your app Same clause as quoted for commercial use. |
| AI training | Not stated |
| Bots and bulk downloads | Not stated |
| Rules |
|
Connect it to an agent
| How an agent gets files | npm install @faker-js/faker --save-dev, then import { faker } from '@faker-js/faker'. · no sign-in |
|---|---|
| File formats | json |
| Not allowed |
|
| MCP server | None found |
| API | No public API: download by hand |
| npm | npm install @faker-js/faker |
| In AI-agent projects | @faker-js/faker is in 62 of 4,828 JavaScript projects (1.3%) in our scan of repos set up for AI coding agents. |
| GitHub | faker-js/faker |
Use it in your stack
npm install @faker-js/faker --save-dev
import { faker } from '@faker-js/faker';
const randomName = faker.person.fullName(); // Rowan Nikolaus
const randomEmail = faker.internet.email(); // Kassandra.Haley@erich.bizFrom the official docs: fakerjs.dev/guide/usage
<script type="module">
import { faker } from 'https://esm.sh/@faker-js/faker';
const randomName = faker.person.fullName();
const randomEmail = faker.internet.email();
</script>From the official docs: fakerjs.dev/guide/usage
Pricing
| Free | Fully free. |
|---|---|
| Paid from | — |
| Usage price | — |
| Good to know | Install command is the standard npm one; the home page read does not show it. |
Sources
Read on Oct 21, 2026: fakerjs.dev, raw.githubusercontent.com/faker-js/faker/next/LICENSE.
Not confirmed: Package name @faker-js/faker and repo faker-js/faker are from general knowledge, not shown verbatim on the pages read. Image helper URLs from faker depend on third-party services not checked.
Not legal advice. Check the license page before you ship.
Alternatives to Faker (faker.js)
| Pick for your agent | Source | Price | License | Agent access |
|---|---|---|---|---|
| JSONPlaceholder Free fake REST API with 100 posts, 500 comments, 100 albums, 5000 photos, 200 todos and 10 users, for tests and prototypes. |
Free | Commercial OK | API | |
| Lorem Picsum Free placeholder photo service: random or fixed images at any size via URL (/id, /seed, grayscale, blur, jpg/webp), photos from Unsplash. |
Free | Commercial: conditions | API | |
| Mockaroo Browser tool and API that generates up to 1,000 rows of realistic test data per run as CSV, JSON, SQL or Excel, with mock APIs. |
Free tier · from $5/mo | Commercial: conditions | API | |
| DummyJSON Free fake REST API with products, carts, users, posts, comments, recipes, quotes and todos in JSON, plus a dummy image generator and mock HTTP. |
Free | Commercial: unclear | API | |
| Placedog Placeholder dog photo service that returns images by URL with set width, height, filters and optional random selection. |
Free | Commercial: unclear No credit | API | |
| placehold.co Placeholder image generator by URL: size, colors, text, font and retina in SVG, PNG, JPEG, GIF, WebP or AVIF. minimalflat |
Free | Commercial: unclear | API | |
| Random User Generator Free open-source API that returns random fake user profiles (name, address, photo) as JSON, XML, CSV or YAML. |
Free | Commercial: unclear | API | |
| Lipsum.com (Lorem Ipsum generator) Web generator for Lorem Ipsum placeholder text (paragraphs, words, bytes, lists) and mock banners. |
Free | Commercial: unclear | Download |