Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Artifacts: versioned storage that speaks Git

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Dillon Mulroy, Matt Carey, and Matt Silverlock
Word Count
2,377
Language
English
Hacker News Points
-
Summary

Artifacts is a novel, distributed, versioned file system designed for agents, enabling them to efficiently handle and persist the state at an unprecedented scale. Unlike traditional source control systems built for human users, Artifacts caters to the growing demand driven by agents, allowing them to create repositories programmatically and connect through a Git-compatible interface. It introduces a REST API and native Workers API for environments where Git clients aren't suitable, facilitating operations such as creating repositories, generating credentials, and managing commits. Artifacts can be used not only for source control but also to persist state across various applications, offering features such as time-travel, forking, and diffing. Built on Cloudflare's Durable Objects and utilizing a custom Git server implemented in Zig and compiled to WebAssembly, Artifacts supports millions of Git repositories per namespace and offers rapid startup times through the ArtifactFS filesystem driver, which allows large repos to be mounted efficiently. This system is currently in private beta, with plans for a public release and further enhancements, including expanded metrics, event subscriptions, and native client SDKs. Pricing is designed to accommodate agent-scale operations, ensuring cost-effectiveness for handling millions of repositories.