Sharc.Core 1.0.0-alpha

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

Sharc

Read and write SQLite files 2-66x faster than Microsoft.Data.Sqlite, in pure C#, with zero native dependencies.

Sharc is a high-performance, zero-allocation SQLite format reader and writer with a built-in SQL query pipeline, designed for AI context space engineering, edge computing, and high-throughput data access.

Key Features

  • 61x Faster Seeks: B-tree point lookups in 392 ns vs SQLite's 24,011 ns.
  • 9.2x Faster Scans: Full table reads with lazy column decode (568 B allocation for 2,500 rows).
  • SQL Pipeline: SELECT, WHERE, ORDER BY, GROUP BY, UNION, INTERSECT, EXCEPT, Cotes.
  • Zero Allocation: Hot paths use ReadOnlySpan<byte> and stackalloc — zero GC pressure.
  • Pure C#: No native DLLs. Runs anywhere .NET runs (Windows, Linux, macOS, WASM, IoT).
  • ~250 KB Footprint: 40x smaller than the standard SQLite bundle.
  • Cryptographic Trust: ECDSA agent attestation and tamper-evident audit ledgers (via Sharc.Graph).
  • Encryption: AES-256-GCM + Argon2id support (via Sharc.Crypto).

Quick Start

using Sharc;

// Open a database
using var db = SharcDatabase.Open("mydata.db");

// Scan a table
using var reader = db.CreateReader("users");
while (reader.Read())
    Console.WriteLine($"{reader.GetInt64(0)}: {reader.GetString(1)}");

// Point lookup in < 1 microsecond
if (reader.Seek(42))
    Console.WriteLine($"Found: {reader.GetString(1)}");

// SQL queries
using var results = db.Query(
    "SELECT dept, COUNT(*) FROM users WHERE age > 25 GROUP BY dept ORDER BY dept");
while (results.Read())
    Console.WriteLine($"{results.GetString(0)}: {results.GetInt64(1)}");

When to Use Sharc

Sharc is optimized for point lookups, structured AI context, and embedded scenarios. It is a complement to SQLite, not a full replacement. Use Sharc when performance, allocation, or zero-dependency deployment is critical.

Full Documentation & Benchmarks | Live Arena

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 (5)

Showing the top 5 NuGet packages that depend on Sharc.Core:

Package Downloads
Sharc.Crypto

Cryptographic extensions for Sharc: AES-256-GCM page-level encryption with Argon2id key derivation. Transparent read/write encryption for SQLite databases in pure C#.

Sharc

Pure C# SQLite read/write engine — 95x faster point lookups, zero per-row allocation, no native dependencies. Full CRUD, SQL query pipeline, WASM-ready (~40KB). Built for AI agents, Blazor, and edge deployment.

Sharc.Graph

Graph traversal and AI trust layer for Sharc: 31x faster than SQLite CTEs. Zero-alloc edge cursors, two-phase BFS, ECDSA agent attestation, hash-chain audit ledger.

Sharc.Vector

SIMD-accelerated vector similarity search for Sharc. Zero-copy BLOB decode, cosine/euclidean/dot product distance via TensorPrimitives, top-K nearest neighbor with metadata pre-filtering.

Sharc.Arc

Cross-arc reference resolution, validation, and diff for Sharc distributed arcs. Never-throw resolution, multi-layer security validation, streaming data diff.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.87 171 3/6/2026
1.2.82 137 3/5/2026
1.2.80 161 2/27/2026
1.2.77 250 2/26/2026
1.0.0-alpha 145 2/20/2026