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, and Agent can automatically set up and integrate both solutions:
  • 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.
  • App Storage: stores unstructured data such as images, videos, documents. You can store and retrieve large files and binary data.

App Storage and database comparison

DatabaseApp Storage
Ideal data formatStructured data with relationshipsLarge files (images, videos, documents)
Data modelTables, rows, columnsBuckets, files
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.
screenshot of an E-commerce app

File sharing app

Share large files such as images, videos, and documents using App Storage. Use the Replit App Storage SDK to upload, download, and move files.
screenshot of a file sharing app

Next steps

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