v0.0.1-alpha-17

The Evolution of
Object Storage

S4 Core is a high-performance, Rust-based S3-compatible server. Say goodbye to inode exhaustion and hello to atomic operations and smart deduplication.

bash — s4-core

$ git clone https://github.com/s4core/s4core.git && cd s4core

$ cargo build --release

Compiling s4-server v0.1.0...

$ ./target/release/s4-server

INFO [S4 Core] Initialized backend: Rust/Tokio

INFO [Storage] Inode Limit: UNLIMITED

INFO [Net] Listening on 127.0.0.1:9000 (S3 Compatible)

Why S4 Core?

Engineered to solve the bottlenecks of legacy file systems.

Rust Performance

Written entirely in Rust with Tokio async runtime. Memory safety, zero-cost abstractions, and strict consistency with fsync before every 200 OK.

Inode Exhaustion Solved

Bitcask-style append-only log storage. 1 billion objects use only ~1000 files on disk. Tiny objects (<4KB) stored inline in redb metadata database.

S3 API Compatible

Full AWS S3 compatibility with Signature V4 authentication. Works with AWS CLI, boto3, rclone, restic and other S3 tools out of the box.

Smart Deduplication

Content-addressable storage with SHA-256 hashing. Identical files are stored once, saving 30-50% storage space automatically.

Versioning & Lifecycle

S3-compatible object versioning with delete markers. Automatic expiration and cleanup of old versions via lifecycle policies.

Object Lock & IAM

WORM compliance with retention periods and legal holds. Built-in IAM with role-based access control (Reader, Writer, SuperUser) and JWT authentication.

Metrics & Monitoring

Built-in Prometheus metrics endpoint and JSON stats API. Track latency, IOPS, dedup ratio, storage capacity, and more.

Web Admin Console

Built-in web UI for bucket management, object browsing, user management, and S3 key generation. Powered by Next.js and Tailwind CSS.

TLS & CORS

Native TLS/HTTPS support via rustls. S3-compatible CORS configuration for browser-based access. Docker and Docker Compose ready.

Architecture

Single-node, three-layer design optimized for performance and reliability.

System Architecture
Layer 1: Network & Protocol (Axum)
  HTTP/1.1, HTTP/2, TLS/HTTPS
  AWS Signature V4 Auth
  S3 API Compatibility
         |
Layer 2: Business Logic
  Deduplication Engine (CAS with SHA-256)
  Object Versioning & Lifecycle Policies
  Object Lock (WORM) & IAM (RBAC)
         |
Layer 3: Storage Engine (Bitcask-style)
  Hot Index: redb (ACID metadata database)
  Cold Data: Append-only volume files (~1GB each)
  Compactor (background GC)

< 4KB

Inline in redb metadata DB

~1GB

Append-only volume files

~1000

Files for 1 billion objects

Ready to Upgrade
Your Storage?

Deploy S4 Core in minutes. Drop-in S3 replacement. No migration headaches.

$ docker run -d -p 9000:9000 -v s4-data:/data s4core/s4core:latest