ChunkMoji 1.0.0

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

๐ŸŒˆ ChunkMoji

ChunkMoji is an experimental emoji-based encoding system that puts style and fun above pure efficiency.
Instead of compressing every last byte, it transforms data into colorful emoji sequences you can share, display, or just enjoy looking at.

This project is meant for fun, but it also demonstrates how modern .NET 10 techniques (like Span<T> and low-allocation APIs) can be applied in creative ways.

Be aware, that this is not space efficient, since emojis can be pretty big byte wise.


โœจ Features

  • ๐Ÿ”ค Encode and decode arbitrary byte sequences into emoji
  • ๐Ÿง  Uses Span<T> and other modern .NET memory-safe optimizations
  • โšก Low heap allocations for better performance
  • ๐Ÿ› ๏ธ Ready for integration into any .NET 10 project

๐Ÿ›ค๏ธ Todos

  • Streaming APIs
  • More Documentation
  • More Tests

๐Ÿ“ฆ NuGet Package

Project / Package NuGet
ChunkMoji Nuget

๐Ÿ”‘ Encoding Overview

ChunkMoji encodes data using emoji as "digits" in a large custom base.
Different versions can use different emoji alphabets and padding strategies.

Encoding Version Base Alphabet
CacheVersion.V1 Base 2048 โ†’ 2,048 unique emojis + 10 padding emojis for alignment purposes

๐Ÿš€ Examples

Encoding string data to string encoding and back

const string testString = "Hello, let's check if this works, here is a emoji too: โ†–๏ธ";

var encoded = ChunkMojifier.EncodeToString(testString);
var decoded = ChunkMojifier.DecodeToString(encoded);

Encoding raw bytes to encoded bytes and back

var span = stackalloc byte[128];
RandomNumberGenerator.Fill(span);

var encoded = ChunkMojifier.Encode(span);
var decoded = ChunkMojifier.Decode(encoded);

// decoded == span

๐Ÿค Contributing

Pull requests are welcome! If you have ideas for:

New emoji sets ๐ŸŒŸ Faster decoding strategies โšก Fun side projects ๐ŸŽญ

โ€ฆfeel free to open an issue or PR.

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

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 0 9/28/2025