Using Replit’s flexible storage solutions, you can quickly add the perfect data storage your app needs to run. You can use Replit’s database or object storage for apps with the following requirements:

  • A game that needs to save player information such as progress or high scores
  • A content platform that manages media files

What are Replit’s storage and database options

Replit offers the following data storage options:

  • Database: stores structured data such as user profiles, game scores, and product catalogs. You can store or retrieve data by attributes and relationships between data points.

  • Object Storage: stores unstructured data such as images, videos, documents. You can store and retrieve large files and binary data.

Object storage and database comparison

DatabaseObject Storage
Ideal data formatStructured data with relationshipsLarge files (images, videos, documents)
Data modelTables, rows, columnsBuckets, objects
Query languageSQLREST API
ClientsPostgresSQL-compatible clients and ORMsReplit SDKs and GCS client libraries
Billing modelPay for compute time and storage spacePay for bandwidth and storage space

Workspace tools

Learn more about the following Replit tools to set up and manage your app’s data storage:

Getting started

The quickest way to get started with Replit’s storage solutions is to follow one of the tutorials below:

Use cases

The following examples show how the database and object storage tools can support your Replit Apps.

E-commerce app

Store product information, customer profiles, and order history in the database. Use SQL queries to filter products by category, search for items, and manage customer orders.

File sharing app

Share large files such as images, videos, and documents using object storage. Use the Replit Object Storage SDK to upload, download, and move files.

Next steps

  • Database: Learn about the database workspace tool and how to connect your Replit App to a database
  • Object Storage: Learn how to use Replit’s object storage solution