Skip to content

About

Shared .NET foundation libraries of the GameFrameX framework: encryption, hashing, JSON, logging, ORM, localization, HTTP utilities and common extensions. | GameFrameX 的 .NET 共享基础库:加解密、哈希、JSON、日志、ORM、本地化、HTTP 工具与常用扩展。

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

819 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameFrameX Logo

GameFrameX.Foundation

License Version Documentation

Discord GitHub Bilibili Gitee

All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams


Documentation · Quick Start · QQ Group: 467608841 / 233840761


English | 简体中文 | 繁體中文 | 日本語 | 한국어

Project Overview

GameFrameX.Foundation is a modular collection of .NET 10 class libraries that deliver cross-cutting infrastructure for GameFrameX server projects — covering localization, JSON, options parsing, ORM attributes, extensions, encryption, hashing, utilities, logging, HTTP helpers, response normalization, ORM base entities, and idempotency.

Features

Package Description Version Downloads
GameFrameX.Foundation.Localization Lightweight localization support NuGet NuGet
GameFrameX.Foundation.Json Unified JSON serialization NuGet NuGet
GameFrameX.Foundation.Options CLI argument parser NuGet NuGet
GameFrameX.Foundation.Orm.Attribute ORM attribute definitions NuGet NuGet
GameFrameX.Foundation.Extensions Extension methods and helpers NuGet NuGet
GameFrameX.Foundation.Encryption Encryption algorithms NuGet NuGet
GameFrameX.Foundation.Hash Hash algorithms NuGet NuGet
GameFrameX.Foundation.Utility General utilities NuGet NuGet
GameFrameX.Foundation.Logger Unified logging NuGet NuGet
GameFrameX.Foundation.Http.Extension HTTP client extensions NuGet NuGet
GameFrameX.Foundation.Http.Normalization HTTP response normalization NuGet NuGet
GameFrameX.Foundation.Orm.Entity ORM entity base classes NuGet NuGet
GameFrameX.Foundation.Idempotency Idempotency and event envelope NuGet NuGet

Quick Start

Installation

Install the packages you need:

dotnet add package GameFrameX.Foundation.Extensions
dotnet add package GameFrameX.Foundation.Encryption
dotnet add package GameFrameX.Foundation.Logger

Usage Examples

using GameFrameX.Foundation.Extensions;
using GameFrameX.Foundation.Encryption;
using GameFrameX.Foundation.Hash;

// Extension methods
var bytes = "Hello World".ToBytes();
var hex = bytes.ToHexString();

// Encryption
var encrypted = AesHelper.Encrypt(Encoding.UTF8.GetBytes("secret"), key, iv);
var decrypted = AesHelper.Decrypt(encrypted, key, iv);

// Hash
var md5 = Md5Helper.ComputeHash("Hello World");
var sha256 = ShaHelper.ComputeSha256("Hello World");

Architecture

See the full architecture documentation for design principles and dependency graph.

Platform Support

  • .NET 8.0 / 9.0 / 10.0
  • Supported OS: Windows, macOS, Linux

Dependencies

Module Package Description Dependencies Docs
Localization GameFrameX.Foundation.Localization Lightweight localization with lazy-loading mechanism Zero dependencies Docs
JSON GameFrameX.Foundation.Json Unified JSON serialization/deserialization interfaces Zero dependencies Docs
Options GameFrameX.Foundation.Options Command-line option/configuration builder Zero dependencies Docs
ORM Attribute GameFrameX.Foundation.Orm.Attribute ORM attribute definitions for audit, cache, soft-delete, tenant, data scope, sensitive masking, tree, import/export Zero dependencies Docs
Extensions GameFrameX.Foundation.Extensions Core extension methods and collection helpers → Localization Docs
Encryption GameFrameX.Foundation.Encryption AES, RSA, DSA, SM2/SM4, XOR encryption → Localization Docs
Hash GameFrameX.Foundation.Hash CRC32/64, MD5, SHA, HMAC, MurmurHash3, xxHash → Localization Docs
Utility GameFrameX.Foundation.Utility Console, environment, time, Snowflake ID utilities → Localization Docs
Logger GameFrameX.Foundation.Logger Unified logging with Serilog, Loki, MongoDB sinks → Extensions + JSON Docs
HTTP Extension GameFrameX.Foundation.Http.Extension HTTP client extension methods → JSON Docs
HTTP Normalization GameFrameX.Foundation.Http.Normalization Standardized HTTP JSON response structures → Logger Docs
ORM Entity GameFrameX.Foundation.Orm.Entity ORM entity base classes with enterprise features → Utility Docs
Idempotency GameFrameX.Foundation.Idempotency Idempotency occupation/replay decisions and universal event envelope → Utility Docs

Documentation & Resources

Community & Support

GitHub Discord LinkedIn Reddit X YouTube Bluesky Bilibili Gitee QQ

Changelog

See CHANGELOG.md for the version history of GameFrameX.Foundation.

License

See LICENSE.md for license information.

About

Shared .NET foundation libraries of the GameFrameX framework: encryption, hashing, JSON, logging, ORM, localization, HTTP utilities and common extensions. | GameFrameX 的 .NET 共享基础库:加解密、哈希、JSON、日志、ORM、本地化、HTTP 工具与常用扩展。

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages