Skip to content
sunmeatPublic

About

Forge your data. Fuel your ideas. Generate realistic localized synthetic data and reproducible .NET test fixtures.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sunmeat.Forge logo

Sunmeat.Forge

Forge your data. Fuel your ideas.

Realistic data. Zero repetitive code.

Forge generates localized synthetic profiles, populates public .NET models, and creates related fixtures with reproducible seeds.

NuGet CI MIT .NET Support development

Українська

Install

Current release: 1.0.0. Install from NuGet or build and install locally. Packaging and publishing

Install this version using the .NET CLI:

dotnet add package Sunmeat.Forge --version 1.0.0

Forge targets .NET 8, 9, 10 and 11. Compatibility

Quick start

Generate a fixture in one line

using Sunmeat.Forge;

var row = Forge.Generate<Customer>();
Console.WriteLine(row.Email);

record Customer(int Id, string FullName, string Email, DateOnly BirthDate, int Age);

Generate individual values

using Sunmeat.Forge;

Console.WriteLine(Forge.FirstName("uk-UA"));
Console.WriteLine(Forge.LastName("fr-FR"));
Console.WriteLine(Forge.CurrencyCode("ja-JP"));
Console.WriteLine(Forge.FormatDate(new DateOnly(2025, 4, 23), "fi-FI"));
Console.WriteLine(Forge.Paragraph("zh-TW"));
Console.WriteLine(Forge.Guid());

var forge = Forge.Create(seed: 42, locale: "uk-UA");
Console.WriteLine(forge.City());
Console.WriteLine(forge.BirthDate());
Console.WriteLine(forge.Int(1, 100));

Each standalone call creates a separate sample. Use forge.Person() or forge.Sample when multiple values must belong to the same profile.

Fix the locale, seed and reference date

using Sunmeat.Forge;

var forge = Forge.Create(new ForgeOptions
{
    Locale = "uk-UA",
    Seed = 42,
    ReferenceDate = new DateOnly(2025, 1, 1)
});
var profiles = forge.Generate<ForgePerson>(3);
Console.WriteLine(profiles[0].Address.City);

Register a custom generator

using Sunmeat.Forge;

var forge = Forge.Create(42)
    .RegisterFactory<Money>(row => new Money(row.Decimal(10, 1000), "EUR"))
    .RegisterSemantic("Nickname", row => row.FirstName());
var money = forge.Generate<Money>();
Console.WriteLine(money.Currency);

record Money(decimal Amount, string Currency);

Registrations belong to an independent generator and apply to automatic model generation.

Compute dependent values

using Sunmeat.Forge;

var sales = Forge.Create(42).For<Sale>()
    .Rule(x => x.Quantity).Between(1, 10)
    .Rule(x => x.UnitPrice).Between(10m, 50m)
    .Rule(x => x.Total).Use(row => row.Get<int>(nameof(Sale.Quantity)) * row.Get<decimal>(nameof(Sale.UnitPrice)),
        x => x.Quantity, x => x.UnitPrice)
    .Generate(10);
Console.WriteLine(sales.Count);

record Sale(int Quantity, decimal UnitPrice, decimal Total);

Generate related tables and export rows

using Sunmeat.Forge;

var dataset = Forge.Create(42).Dataset()
    .Entity<Customer>(5)
    .Entity<Order>(20)
    .OneToMany((Customer customer) => customer.Id, (Order order) => order.CustomerId)
    .Build();
using var stream = new MemoryStream();
ForgeExport.Write(dataset.Table<Order>(), stream, ForgeFormat.JsonLines);
Console.WriteLine(stream.Length);

record Customer(int Id, string Name);
record Order(int Id, int CustomerId, decimal Price);

Generate a ready-made scenario and report

using Sunmeat.Forge;

var forge = Forge.Create(42, "uk-UA");
var dataset = forge.Scenarios().ECommerce();
Console.WriteLine(forge.Pattern("ORD-####-??"));
Console.WriteLine(forge.Regex("[A-Z]{3}[0-9]{5}"));
Console.WriteLine(forge.TimeSeries(30).Count);
Console.WriteLine(Forge.EdgeCases<int>().Count);
File.WriteAllText("report.html", ForgeExport.HtmlReport(dataset, "Forge report"));

12 built-in scenarios provide 44 related models. The 28 bundled locales contain 18,660 catalog entries. Forge also supports labeled invalid fixtures, typed boundary cases, masks, a bounded regular-expression subset, time series and offline data profiling.

Scenarios · Invalid data · Time series · HTML reports

Built-in generators

Generate names, correlated profiles, addresses, example-domain emails and URLs, safe phone fixtures, companies, products, job titles, departments, industries, localized words and paragraphs, dates, currency codes, numbers, GUIDs, and statistical distributions. The core also generates public model graphs, collections, and records.

Use Forge.Locales to discover the bundled tags. Every locale works offline and loads its own catalog when selected. Locale coverage

Documentation and examples

Quick start · Generator catalog · Locale data · Related datasets · Export · Screenshots · Benchmarks

Sunmeat ecosystem

Independent .NET libraries with a shared philosophy: simple APIs, modularity and open source.

Library Purpose NuGet / Status
Sunmeat.Prism Serialization and format conversion NuGet
Sunmeat.Pulse Structured logging NuGet
Sunmeat.Nexus HTTP requests and API communication NuGet
Sunmeat.Lens Code analysis and architecture visualization NuGet · Roslyn · Raster
Sunmeat.Guard Validation and argument checks NuGet
Sunmeat.Diff Data comparison and patches NuGet
Sunmeat.Morph Object mapping and transformation NuGet
Sunmeat.Forge (this project) Synthetic data and test fixtures NuGet
Sunmeat.Signal Multichannel notifications NuGet · Extensions.DependencyInjection
Sunmeat.Vault Cryptography and secret storage NuGet
Sunmeat.Portal File systems, storage and backups NuGet
Sunmeat.Scribe Document generation and processing In development
Sunmeat.Flux In-process Mediator, CQRS and Event Bus In development
Sunmeat.Synapse Unified AI API and model routing In development

All published packages · Ecosystem website


❤️ Support the project

Sunmeat.Forge is free, open-source software created and maintained by an independent developer.

If Forge saves you time, makes testing easier, or helps you build better applications, consider supporting its continued development.

Building free developer tools takes time, effort, curiosity, and resources.

Your support helps fund:

  • New generators and realistic synthetic datasets.
  • More languages and international localization.
  • Performance improvements and optimizations.
  • Documentation, examples, and automated tests.
  • Long-term maintenance and platform compatibility.
  • Development tools, infrastructure, and AI-assisted development subscriptions, including ChatGPT.
  • New open-source .NET libraries for the community.

Every contribution, regardless of its size, makes a difference.

Even a small donation can help turn the next idea into another free tool for developers.

If this library saved you an hour, consider helping the developer create the next one.

Support development Patreon Monobank Star on GitHub Developer website

Financial support is entirely optional. All library features remain free and open source.

You can also support the project by starring the repository, reporting issues, contributing code, or sharing Forge with other developers.


Built with curiosity. Shared with the community.

Copyright © 2026 Oleksandr Zahoruiko · sunmeat.dev

About

Forge your data. Fuel your ideas. Generate realistic localized synthetic data and reproducible .NET test fixtures.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages