HyperCube.Server.Core
0.0.11
dotnet add package HyperCube.Server.Core --version 0.0.11
NuGet\Install-Package HyperCube.Server.Core -Version 0.0.11
<PackageReference Include="HyperCube.Server.Core" Version="0.0.11" />
<PackageVersion Include="HyperCube.Server.Core" Version="0.0.11" />
<PackageReference Include="HyperCube.Server.Core" />
paket add HyperCube.Server.Core --version 0.0.11
#r "nuget: HyperCube.Server.Core, 0.0.11"
#addin nuget:?package=HyperCube.Server.Core&version=0.0.11
#tool nuget:?package=HyperCube.Server.Core&version=0.0.11
HyperCube Framework
Overview
HyperCube is a high-performance, modular framework designed to accelerate development of:
- Console applications
- Server applications
- Web applications (backend)
Built with a focus on modularity, documentation, and developer experience, HyperCube provides the building blocks for creating robust applications quickly and efficiently.
Features
- Modular Architecture: Build your application using composable modules that can be easily reused across projects
- Comprehensive Utilities: Ready-to-use utility classes for common operations:
- String manipulation (case conversions, environment variable handling)
- Cryptography (hashing, encryption, password management)
- JSON & YAML serialization with AOT support
- IP address handling
- Performance Optimized: Built with AOT (Ahead-of-Time) compilation support
- Well Documented: Thorough XML documentation for all components
- Developer Friendly: Intuitive API design with consistent patterns
Installation
dotnet add package HyperCube.Core
Core Utilities
String Manipulation
using HyperCube.Core.Utils;
using HyperCube.Core.Extensions;
// Case conversions
var snakeCase = "HelloWorld".ToSnakeCase(); // "hello_world"
var kebabCase = "HelloWorld".ToKebabCase(); // "hello-world"
var camelCase = "Hello_World".ToCamelCase(); // "helloWorld"
// Environment variable replacement
var path = "{HOME}/documents".ReplaceEnvVariable(); // "/home/user/documents"
Cryptography
using HyperCube.Core.Utils;
// Simple hashing
var hash = HashUtils.ComputeSha256Hash("sensitive data");
// Password management
var passwordHash = HashUtils.CreatePassword("secure_password"); // Returns "Hash:Salt"
var isValid = HashUtils.VerifyPassword("secure_password", passwordHash); // true
// Encryption/Decryption
var key = Convert.FromBase64String(HashUtils.GenerateBase64Key());
var encrypted = HashUtils.Encrypt("secret message", key);
var decrypted = HashUtils.Decrypt(encrypted, key); // "secret message"
JSON Handling with AOT Support
using HyperCube.Core.Utils;
using System.Text.Json.Serialization;
// Define your context for AOT support
[JsonSourceGenerationOptions(
PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower,
WriteIndented = true)]
[JsonSerializable(typeof(MyClass))]
public partial class MyJsonContext : JsonSerializerContext {}
// Serialize/deserialize with AOT support
var json = JsonUtils.Serialize(myObject, MyJsonContext.Default);
var obj = JsonUtils.Deserialize<MyClass>(json, MyJsonContext.Default);
// Or use extension methods
var json = myObject.ToJson(MyJsonContext.Default);
var obj = json.FromJson<MyClass>(MyJsonContext.Default);
License
HyperCube is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. |
-
net9.0
- CommandLineParser (>= 2.9.1)
- HyperCube.Core (>= 0.0.11)
- HyperCube.Postman (>= 0.0.11)
- Microsoft.Extensions.DependencyInjection (>= 9.0.4)
- Microsoft.Extensions.Hosting (>= 9.0.4)
- Microsoft.Extensions.Logging (>= 9.0.4)
- Scriban (>= 6.2.0)
- Serilog (>= 4.2.0)
- Serilog.Extensions.Hosting (>= 9.0.0)
- Serilog.Formatting.Compact (>= 3.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.File (>= 6.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on HyperCube.Server.Core:
Package | Downloads |
---|---|
HyperCube.Entities.Core
Entity framework and database management utilities for the HyperCube framework. |
|
HyperCube.Queue.Core
Messaging queue abstraction for the HyperCube framework with built-in internal queue provider. |
|
HyperCube.ScriptEngine.Core
Script engine core for HyperCube framework. Provides advanced scripting capabilities based on Jint |
GitHub repositories
This package is not used by any popular GitHub repositories.