ByteFormat.Core 1.0.3-beta

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

ByteFormat

ByteFormat is a lightweight C# library for working with a custom file format designed for simplicity and readability. It was created as an alternative to formats like JSON, with a focus on easy access and understanding, nested structures, and straightforward saving/loading. A VS Code extension is also planned to add syntax highlighting and file type support.


Features

  • Simple key-based storage system
  • Nested data support (e.g. user.stats.level)
  • Array-like indexing (list[0])
  • Supports strings, numbers, and multi-line values
  • Easy to use API

Project Structure

ByteFormat/
├── src/
│   └── ByteFormat.Core/        # Core library
├── samples/
│   └── ByteFormat.Sample/      # Example console app
├── ByteFormatPackage/          # NuGet output (.nupkg)

Installation

just run

dotnet add package ByteFormat.Core

in the root of your dotnet project after that just refrene the package

using ByteFormat.Core;

From Source

Clone the repository and reference the project:

git clone https://github.com/gnxbd4vbtm-ops/ByteFormat.git

# Then add a project reference in your .csproj:

<ProjectReference Include="src/ByteFormat.Core/ByteFormat.Core.csproj" />

Usage

  1. Create and load a ByteFile
using ByteFormat.Core;
const string path = "path-to-bytefile";
var file = new ByteFile
{
    Path = path
};
file.LoadFile();

  1. Saving data
#Numbers

file.Save("user1.age", 20);
file.Save("user2.age", 16);

#Strings

file.Save("user1.name", "Max");

#Lists

file.Save("user1.hobbys[0]", "playing games");
file.Save("user1.hobbys[1]", "watching YouTube");
file.Save("user1.hobbys[2]", "hanging out with friends");

#Multi-line values

file.Save("user.bio", "this is my bio");

Building the Sample

cd ByteFormat/samples/ByteFormat.Sample
dotnet run

Building the NuGet Package

A build script is provided:

./build_package.sh

Output:

ByteFormat/ByteFormatPackage/ByteFormat.Core.<version>.nupkg

Notes

  • This library is designed for simple structured storage, not full JSON replacement.
  • Keys are string-based and support hierarchical naming.
  • Array syntax uses bracket indexing (items[0]).
  • This shouldnt be used in deplyoment since its still getting developed
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.
  • net10.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.3-beta 105 6/1/2026
1.0.2 132 6/1/2026 1.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1 129 6/1/2026 1.0.1 is deprecated because it is no longer maintained and has critical bugs.