Sunmeat.Forge
1.0.0
dotnet add package Sunmeat.Forge --version 1.0.0
NuGet\Install-Package Sunmeat.Forge -Version 1.0.0
<PackageReference Include="Sunmeat.Forge" Version="1.0.0" />
<PackageVersion Include="Sunmeat.Forge" Version="1.0.0" />
<PackageReference Include="Sunmeat.Forge" />
paket add Sunmeat.Forge --version 1.0.0
#r "nuget: Sunmeat.Forge, 1.0.0"
#:package Sunmeat.Forge@1.0.0
#addin nuget:?package=Sunmeat.Forge&version=1.0.0
#tool nuget:?package=Sunmeat.Forge&version=1.0.0

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.
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);
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
| 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.
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
| Product | Versions 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. |
-
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.