PolyhydraGames.Api.SystemDefinitions 1.0.4.144

dotnet add package PolyhydraGames.Api.SystemDefinitions --version 1.0.4.144
                    
NuGet\Install-Package PolyhydraGames.Api.SystemDefinitions -Version 1.0.4.144
                    
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="PolyhydraGames.Api.SystemDefinitions" Version="1.0.4.144" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PolyhydraGames.Api.SystemDefinitions" Version="1.0.4.144" />
                    
Directory.Packages.props
<PackageReference Include="PolyhydraGames.Api.SystemDefinitions" />
                    
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 PolyhydraGames.Api.SystemDefinitions --version 1.0.4.144
                    
#r "nuget: PolyhydraGames.Api.SystemDefinitions, 1.0.4.144"
                    
#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 PolyhydraGames.Api.SystemDefinitions@1.0.4.144
                    
#: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=PolyhydraGames.Api.SystemDefinitions&version=1.0.4.144
                    
Install as a Cake Addin
#tool nuget:?package=PolyhydraGames.Api.SystemDefinitions&version=1.0.4.144
                    
Install as a Cake Tool

PolyhydraGames.Api.SystemDefinitions

Typed system definition helpers for game platform slugs, folders, emulator cores, file extensions, and IGDB identifiers.

The library wraps a curated platform dataset and normalizes common aliases such as mastersystemsms, pcepcengine, and arcade variants → arcade.

Tags

  • api
  • dotnet
  • api-system-definitions
  • system
  • definitions
  • streaming

Usage

await SystemsDatabase.Setup(logger, dataSource: "path/to/platform.fixture.json");

var system = SystemsDatabase.Instance.GetSystem("SMS");
var folder = "mastersystem".ToFolder();
var core = "SMS".GetCoreFromSlug();
var slug = SystemsDatabase.Instance.GetSystemFromExtension(".gba");
var inventorySlug = SystemsDatabase.Instance.GetSystemFromPath("/roms/snes/Chrono Trigger.sfc");
var igdbPlatformId = SystemsDatabase.Instance.GetProviderIdFromSlug("snes", "igdb");

Tests

Default tests use a local fixture and should not require network access.

Use python scripts/refresh-platform-fixture.py to regenerate API.SystemDefinitions.Test/TestData/platform.fixture.json from the upstream dataset when the fixture needs a maintenance refresh.

bash scripts/validate.sh

Build And Pack

dotnet build Api.SystemDefinitions.sln --no-restore
dotnet pack Api.SystemDefinitions/PolyhydraGames.Api.SystemDefinitions.csproj --configuration Release --no-restore

Roadmap

Docs

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on PolyhydraGames.Api.SystemDefinitions:

Package Downloads
PolyhydraGames.GamePlayer.Core

Package Description

PolyhydraGames.IGDB

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4.144 30 7/15/2026
1.0.3.223 29 7/15/2026