Sunmeat.Forge 1.0.0

dotnet add package Sunmeat.Forge --version 1.0.0
                    
NuGet\Install-Package Sunmeat.Forge -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sunmeat.Forge" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sunmeat.Forge" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Sunmeat.Forge" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sunmeat.Forge --version 1.0.0
                    
#r "nuget: Sunmeat.Forge, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sunmeat.Forge@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sunmeat.Forge&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Sunmeat.Forge&version=1.0.0
                    
Install as a Cake Tool

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

Version 1.0.0 is prepared for release. Build or install from a local feed until the NuGet.org publication is approved. Packaging and publishing

After publication install the pinned version with 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);
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

Library Purpose
Sunmeat.Prism Serialization
Sunmeat.Pulse Structured logging
Sunmeat.Guard Validation
Sunmeat.Diff Data comparison and patches
Sunmeat.Morph Object mapping
Sunmeat.Forge Synthetic data and fixtures

❤️ 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

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.

Star on GitHub Developer website


Built with curiosity. Shared with the community.

Copyright © 2026 Oleksandr Zahoruiko · sunmeat.dev

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net11.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 79 11/30/2026

Initial release with 28 locales, localized text and business fixtures, typed generation, fluent rules, related scenarios, negative testing, masks, regex, time series and offline reports.