v0.1.0S3-compatibleHolochain 0.7.1

An S3 endpoint you run beside your own Holochain node.

Point the S3 SDK or tool you already use at hAppBucket. It encrypts each file in 4 MiB chunks on storage you own, and your own Holochain key decides who may read or write them.

v0.1.0 released (MIT OR Apache-2.0). Verified live against Holochain 0.7.1, Cloudflare R2, rclone v1.76.0 and restic 0.20.0.

A diagram of hAppBucket: your Holochain key signs for a bucket built from encrypted 4 MiB chunks, which rests on storage you own. 1 2 3 YOUR KEY signs, grants, revokes 4 MiB CHUNKS each sealed alone YOUR STORAGE R2 bucket or disk A diagram of hAppBucket: your Holochain key signs for a bucket built from encrypted 4 MiB chunks, which rests on storage you own. 1 2 3 YOUR KEY signs and revokes 4 MiB CHUNKS each sealed alone YOUR STORAGE R2 bucket or disk
1 bucket, 2 planes

01What you run

2 parts that run beside your own Holochain node.

Part 1 · The Holochain app

happbucket.happ

A small Holochain app, or hApp, that you install on your node. It keeps the index of your files, the wrapped encryption keys and the access grants in your own cell: your signed record on the node you run.

Built on holochain 0.7.1, hdk 0.7.1 and hdi 0.8.1.

Part 2 · The gateway command

happbucket

The program your apps and tools talk to. Run happbucket dev for instant local evaluation, or happbucket serve beside a live Holochain node to answer S3 requests on storage you own.

Runs with Bun 1.2 or newer.

Live · v0.1.0 Part 1 and Part 2 run together in happbucket serve across local disk, Cloudflare R2 and Mode A pure-chain vaults.

Do I add a library to my app?

No. Keep the S3 SDK or tool you already use and change the endpoint URL and the access key (with path-style addressing). TypeScript apps can also import the zero-dependency HappBucketObjectStore client adapter.

02Who it is for

3 kinds of people who keep files on Holochain.

hApp developers

Upload and serve your app's files, photos and exports through any S3 SDK or the built-in HappBucketObjectStore client, with access governed by your users' own keys.

S3 gateway + SDK adapter

Self-hosters

Run your own S3 endpoint for backups and archives, on your own server or in your own Cloudflare account, with every file encrypted before it is stored.

rclone & restic verified · M3

Granis Personal

The file layer built to carry attachments, documents and media beside a person's Holochain record, with HappBucketObjectStore ready in v0.1.0.

Adapter built · M4

03The first 2 minutes

Run it on your own machine today.

Install with Bun, make a throwaway access key and start the gateway. Then the AWS CLI or Bun's S3 client can create a bucket, upload, list and read back.

Every step, with AWS CLI and Bun examples

git clone https://github.com/Granis-AI/happbucket && cd happbucket
bun install
export AWS_ACCESS_KEY_ID="dev-$(openssl rand -hex 4)"
export AWS_SECRET_ACCESS_KEY="$(openssl rand -hex 20)"
bun run happbucket dev &
# hAppBucket 0.1.0 is serving S3 at http://127.0.0.1:9000

Evaluation mode Every start is a clean slate: the index lives in memory and each start uses a fresh encryption key. Keeping the index in your own Holochain cell is milestone M2.

04How it works

Every file takes 3 steps from your app to your storage.

  1. Step 1

    Sign & control in Holochain

    Your Holochain key signs each upload and delete and holds the list of who may read or write. Revoking a grant refuses the next request with 403 at the edge and on the gateway.

  2. Step 2

    Encrypt in 4 MiB chunks

    Each file is sealed in 4 MiB pieces (about 4 MB), each with its own derived key and tamper check, so a video player or backup tool reads only the pieces it needs.

  3. Step 3

    Store on your disk or R2

    The sealed chunks go to your own disk, your own Cloudflare R2 bucket, or inside the chain for vaults under 500 MiB. Deleting a file removes external chunks immediately, leaving 0 blobs behind.

Read the full architecture

05Where it runs

On a server you run, or in your own Cloudflare account.

Verified · M1–M3

Your own Linux server or Docker host

Run happbucket serve next to your Holochain 0.7.1 conductor on any Linux or macOS machine, storing encrypted chunks on local disk or inside the chain (Mode A).

Files live
On your server's disk (or on-chain under 500 MiB)
Holochain node
Live holochain 0.7.1 conductor
Measured suite
rclone v1.76.0 + restic 0.20.0 pass in 19.3 s; Mode A pure-chain restart check passes in 8.47 s.

Verified live · M2

1-click into your own Cloudflare account

The open-source cloudflare/ package deploys a Worker, a Durable Object manifest cache, a scale-to-zero Holochain container and an R2 bucket in your own Cloudflare account.

Edge Range read
131⁠–⁠187 ms server-side with 0 container wakes
Cold wake
18.0 s from an R2 checkpoint after container destroy
Delete reclaim
0 ciphertext blobs left in R2 after DELETE

06Why Granis built this

Granis Personal needs a file layer on Holochain. hAppBucket is built as it.

Granis is central intelligence for your life and business. Granis Personal keeps a person's working record in storage that person controls. Its first storage was a private Google Drive folder.

Since 1 Nov 2026 Granis Personal also runs on Holochain, on the founder's own node. There the record lives as private entries on the person's own source chain, the signed log of everything they write, signed by their own key and reached only through a grant they can revoke.

Chat, tasks, finance, documents and health records reached parity with Google Drive on Holochain. Files were the gap: a single file topped out at 17 MiB, a range read pulled the whole file, there were no signed links to share, and deleting a file freed 0 bytes.

hAppBucket closes that gap, and v0.1.0 ships the zero-dependency HappBucketObjectStore adapter ready for Granis Personal's files. It is a general component with 0 Granis logic inside, so any hApp can use it the same way. This covers Granis Personal only: Granis Business runs on different storage.

07Status

Where the build stands on 28 Nov 2026.

  1. M0Holochain app packageAchieved
  2. M1S3 gateway core & live cellAchieved
  3. M2Cloudflare Worker, DO & R2Achieved live
  4. M3rclone, restic & Mode AAchieved
  5. M4HappBucketObjectStore adapterAdapter built
  6. M5Open-source release v0.1.0Released

What each milestone proved