Skip to content

Social Card of this repo

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:

  1. Person - Names, genders, job titles, prefixes, suffixes
  2. Address - Streets, cities, states, countries, postal codes
  3. Company - Names, industries, buzzwords, descriptors
  4. Internet - Email addresses, domains, URLs
  5. Phone - Phone numbers with locale-specific formats
  6. Food - Dishes, ingredients, cuisines, desserts, fruits, vegetables, meats, spices
  7. Animals - Dogs, cats, birds, fish, horses, rabbits, insects
  8. Sports - Sports names, teams, athletes
  9. Music - Genres, artists, songs, instruments
  10. Commerce - Products, adjectives, materials, departments, colors
  11. Books - Titles, authors, publishers, genres, series, reviews
  12. Vehicles - Manufacturers, models, types, fuel types, bicycles
  13. Words - Adjectives, adverbs, conjunctions, interjections, nouns, prepositions, verbs
  14. Hacker/Tech - Technical abbreviations, terms, phrases
  15. System - File names, file types
  16. 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:

Discussions on GitHub

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 💙

Released under the MIT License.