anycrap-faker
v1.0.0
Published
faker.js plugin — absurdist AI product names, descriptions, and slugs from the Anycrap dataset.
Maintainers
Readme
anycrap-faker
faker.js plugin — absurdist AI product names, descriptions, and slugs from the Anycrap dataset. No API call, no key required.
import { faker } from '@faker-js/faker';
import { createAnycrapFaker } from 'anycrap-faker';
const anycrap = createAnycrapFaker(faker);
anycrap.productName(); // "Thought-Cancelling Headphones"
anycrap.productDescription(); // "Headphones that don't just block sound — they block thoughts."
anycrap.productSlug(); // "thought-cancelling-headphones"
anycrap.productCategory(); // "gadgets"
anycrap.product(); // { name, slug, description, category }Install
npm i anycrap-fakerRequires @faker-js/faker >= 9.0.0 as a peer dependency.
Usage
Works as a drop-in alongside faker.js for seeding databases, generating test fixtures, or any place you'd use faker.commerce.productName() but want something less boring.
// seed a database
const products = Array.from({ length: 100 }, () => ({
id: faker.string.uuid(),
name: anycrap.productName(),
description: anycrap.productDescription(),
category: anycrap.productCategory(),
price: faker.commerce.price(),
}));// factory / fixture
const mockProduct = () => ({
...anycrap.product(),
id: faker.string.uuid(),
created_at: faker.date.past().toISOString(),
});No API calls
All data is bundled — 200+ hand-picked products from the Anycrap dataset. Zero network requests, works offline, deterministic with faker seeds.
For the full 35,000+ product catalog via API, see anycrap.shop/developers.
License
MIT
