---
title: "Storage is now available in Supabase"
description: "Supabase Storage is an object store built as a custom TypeScript/Fastify API server behind Kong, with object metadata and access policies kept in each project's Postgres database and objects stored in S3."
url: "https://swe.quest/articles/storage-is-now-available-in-supabase-a17d1a6604548758"
canonical: "https://supabase.com/blog/supabase-storage"
source: "Supabase"
published: "2021-03-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["storage-systems","postgres","identity-auth","system-design","typescript"]
---

# Storage is now available in Supabase

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2021-03-30, 7 min read, Case study. Original: [https://supabase.com/blog/supabase-storage](https://supabase.com/blog/supabase-storage)

## Summary

Supabase Storage is an object store built as a custom TypeScript/Fastify API server behind Kong, with object metadata and access policies kept in each project's Postgres database and objects stored in S3. Existing servers like Minio, Ceph and Zenko were rejected because they couldn't use Postgres as their datastore, carried features unnecessary on managed backends, and didn't map to Supabase Auth. Authorization uses Postgres Row Level Security on a storage.objects table: if a user can select or delete the row, they can read or delete the object, so policies are written in SQL and listing filters happen in the database. Uploads stream through Node streams to S3 with minimal buffering, trading off knowing the object size upfront, and objects get a default 1-hour Cache-Control header.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- Postgres Row Level Security ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- object storage basics ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Supabase Storage, PostgreSQL, Row Level Security, Amazon S3, Fastify, Kong, Minio

## Related posts

- [Supabase Storage now in Beta](https://swe.quest/articles/supabase-storage-now-in-beta-146dd8398549e2a4.md): Supabase · 2021-07-27 · Medium · 7 min read · Storage systems, Identity & auth, PostgreSQL, JavaScript
  Supabase Storage moves to Beta with range-request streaming for audio/video, whole-bucket public visibility (private by default, to avoid S3-style per-object exposure), directory uploads via the File and Directory Entries API, an RLS policy editor with SQL templates, and a local-filesystem backend so self-hosted setups need no S3.
- [Recreating S3 in Postgres using PostgREST](https://swe.quest/articles/recreating-s3-in-postgres-using-postgrest-d07b4a06448dac82.md): Neon · 2025-05-27 · Medium · 7 min read · PostgreSQL, API design, Identity & auth, SQL
  A simple S3-like file server can be built inside Postgres by storing binary data in a BYTEA table and exposing it through PostgREST's functions-as-RPC via the Neon Data API.
- [Supabase Storage v3: Resumable Uploads with support for 50GB files](https://swe.quest/articles/supabase-storage-v3-resumable-uploads-with-support-for-50gb-files-bff6f0225c2de6f0.md): Supabase · 2023-04-12 · Medium · 7 min read · Storage systems, PostgreSQL, Concurrency, API design
  Supabase Storage v3 adds resumable uploads via the open TUS protocol, raising the max file size to 50GB on Pro plans.
- [Oriole joins Supabase](https://swe.quest/articles/oriole-joins-supabase-c042657249c20a86.md): Supabase · 2024-04-15 · Easy · 3 min read · PostgreSQL, Storage engines, Storage systems
  OrioleDB, a Postgres table storage extension built on the Table Access Method API, is joining Supabase to build a faster drop-in storage engine, advance pluggable storage upstream, and enable decoupled storage and compute.
- [Supabase Storage: major performance, security, and reliability updates](https://swe.quest/articles/supabase-storage-major-performance-security-and-reliability-updates-2ffa30c3ec95bba1.md): Supabase · 2026-03-05 · Medium · 4 min read · Storage systems, PostgreSQL, Performance engineering, Security, Observability
  Supabase Storage replaces its trigger-maintained prefixes table with a hybrid skip-scan algorithm that derives folder structure at read time, and switches from OFFSET to cursor-based pagination, making deep pagination up to 14.8x faster on 60 million rows with no write penalty.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
