Postgres Database
A relational database for structured data. Includes vector extension support, which means you can store and query embeddings for AI features without any additional setup.
Your app receives DATABASE_URL automatically.
When you deploy with Varity, the platform reads your package.json or requirements.txt and automatically provisions the databases and services your app depends on. You do not write any configuration files.
The services start alongside your app when you deploy. No extra steps needed.
Varity scans your dependency files for known packages and maps them to services:
pg or mongoose)varitykit app deployYou do not configure ports, credentials, or connection strings. Varity handles all of that.
| Dependency | Service Provisioned | Environment Variable Injected |
|---|---|---|
pg | Postgres database | DATABASE_URL |
@prisma/client | Postgres database | DATABASE_URL |
drizzle-orm | Postgres database | DATABASE_URL |
postgres | Postgres database | DATABASE_URL |
ioredis | Redis cache | REDIS_URL |
redis | Redis cache | REDIS_URL |
@vercel/kv | Redis cache | REDIS_URL |
@langchain/ollama | AI model server | OLLAMA_URL |
ollama | AI model server | OLLAMA_URL |
mongoose | MongoDB database | MONGODB_URI |
mongodb | MongoDB database | MONGODB_URI |
mysql | MySQL database | MYSQL_URL |
mysql2 | MySQL database | MYSQL_URL |
@aws-sdk/client-s3 | Object storage (S3-compatible) | MINIO_URL, MINIO_ACCESS_KEY, MINIO_SECRET_KEY |
| Dependency | Service Provisioned | Environment Variable Injected |
|---|---|---|
psycopg | Postgres database | DATABASE_URL |
psycopg2 | Postgres database | DATABASE_URL |
psycopg2-binary | Postgres database | DATABASE_URL |
asyncpg | Postgres database | DATABASE_URL |
redis | Redis cache | REDIS_URL |
ollama | AI model server | OLLAMA_URL |
pymongo | MongoDB database | MONGODB_URI |
pymysql | MySQL database | MYSQL_URL |
boto3 | Object storage (S3-compatible) | MINIO_URL, MINIO_ACCESS_KEY, MINIO_SECRET_KEY |
minio | Object storage (S3-compatible) | MINIO_URL, MINIO_ACCESS_KEY, MINIO_SECRET_KEY |
If your project includes a prisma/schema.prisma file, Varity reads the datasource block to confirm which database to provision:
provider value | Service Provisioned |
|---|---|
postgresql | Postgres database |
mongodb | MongoDB database |
Postgres Database
A relational database for structured data. Includes vector extension support, which means you can store and query embeddings for AI features without any additional setup.
Your app receives DATABASE_URL automatically.
Redis Cache
An in-memory key-value store for caching, sessions, and queues. Ideal for rate limiting, temporary data, and speeding up repeated queries.
Your app receives REDIS_URL automatically.
AI Model Server
A local model runtime so your app can run language models without calling an external API. Useful for apps with on-device inference or privacy requirements.
Your app receives OLLAMA_URL automatically.
MongoDB Database
A document database for flexible, schema-optional data. Good for apps where data shape varies across records.
Your app receives MONGODB_URI automatically.
MySQL Database
A relational database for apps and frameworks that expect MySQL. Auto-provisioned alongside your app when a MySQL client is in your dependencies.
Your app receives MYSQL_URL automatically.
Object Storage
Object storage for files, uploads, and assets. Use it with an S3-compatible SDK or MinIO client. No separate bucket to provision. Auto-wired when your dependencies include an S3 client (@aws-sdk/client-s3, boto3, or minio).
Your app receives MINIO_URL, MINIO_ACCESS_KEY, and MINIO_SECRET_KEY automatically.
If your package.json contains:
{ "dependencies": { "next": "^14.0.0", "@prisma/client": "^5.0.0" }}Running varitykit app deploy will:
@prisma/client and provision a Postgres databaseDATABASE_URL into your app’s runtime environmentYour Prisma client will connect automatically using the injected URL.
If your requirements.txt contains:
fastapiredispymongoRunning varitykit app deploy will:
redis and provision a Redis cachepymongo and provision a MongoDB databaseREDIS_URL and MONGODB_URI into your runtime environmentYour app code reads these variables the same way it would in any environment:
const db = new PrismaClient({ datasources: { db: { url: process.env.DATABASE_URL } }});import osfrom motor.motor_asyncio import AsyncIOMotorClient
client = AsyncIOMotorClient(os.environ["MONGODB_URI"])The object store speaks the S3 protocol, so point any S3 client at the injected endpoint and credentials:
import osimport boto3
s3 = boto3.client( "s3", endpoint_url=os.environ["MINIO_URL"], aws_access_key_id=os.environ["MINIO_ACCESS_KEY"], aws_secret_access_key=os.environ["MINIO_SECRET_KEY"],)You do not need to add these variables to .env files yourself. Varity injects them at deploy time.