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 |
| 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 |
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.
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"])You do not need to add these variables to .env files yourself. Varity injects them at deploy time.