Introduction
A performance-focused and lightweight faker library for TypeScript with comprehensive locale support.
nanofaker
nanofaker is a modern, lightweight TypeScript library for generating fake data. Built with performance and developer experience in mind, it provides comprehensive locale support across 16 languages with complete translations for all data categories.
Why nanofaker?
Performance First
Built with performance as a top priority, nanofaker is optimized for speed and efficiency with minimal overhead.
Comprehensive Locale Support
Unlike other faker libraries with limited or incomplete translations, nanofaker provides complete translations across all 16 data categories for 16 different languages:
- English (en) - Full coverage
- Spanish (es) - Full coverage
- French (fr) - Full coverage
- German (de) - Full coverage
- Italian (it) - Full coverage
- Portuguese (pt) - Full coverage
- Japanese (ja) - Full coverage
- Filipino (tl) - Full coverage
- Chinese (zh) - Full coverage
- Dutch (nl) - Full coverage
- Korean (ko) - Full coverage
- Norwegian (no) - Full coverage
- Swedish (sv) - Full coverage
- Danish (da) - Full coverage
- Ukrainian (uk) - Full coverage
- Hindi (hi) - Full coverage
Rich Data Categories
nanofaker includes 16+ comprehensive data categories:
- Person - Names, genders, job titles, prefixes, suffixes
- Address - Streets, cities, states, countries, postal codes
- Company - Names, industries, buzzwords, descriptors
- Internet - Email addresses, domains, URLs
- Phone - Phone numbers with locale-specific formats
- Food - Dishes, ingredients, cuisines, desserts, fruits, vegetables, meats, spices
- Animals - Dogs, cats, birds, fish, horses, rabbits, insects
- Sports - Sports names, teams, athletes
- Music - Genres, artists, songs, instruments
- Commerce - Products, adjectives, materials, departments, colors
- Books - Titles, authors, publishers, genres, series, reviews
- Vehicles - Manufacturers, models, types, fuel types, bicycles
- Words - Adjectives, adverbs, conjunctions, interjections, nouns, prepositions, verbs
- Hacker/Tech - Technical abbreviations, terms, phrases
- System - File names, file types
- Science - Chemical elements, units, constants, scientific fields
Fully Typed
Written in TypeScript with comprehensive type definitions for excellent IDE support and type safety.
Get Started
Check out the Installation Guide to get started with nanofaker.
Changelog
Please see our releases page for more information on what has changed recently.
Contributing
Please review the Contributing Guide for details.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Stacks Discord Server
Sponsors
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
License
The MIT License (MIT). Please see LICENSE for more information.
Made with 💙