Skip to main content

Arianet BaaS

Arianet Backend As A Service (Arianet BaaS for short) is a ready-made backend for your app: a managed Postgres Database that comes with a REST API, user sign-in (Auth), file storage (Storage), live channels (Realtime) and server-side code (Edge Functions), all behind one Endpoint. There is no server to run and no API to write: you create Tables, add security Policies and connect straight from your web or mobile app.

The Arianet BaaS client protocol is compatible with common Postgres/BaaS client libraries. An app written against them runs on Arianet BaaS once you change its URL and key.

Project list in the Arianet BaaS panel

Components​

Each Project is a separate Database with these parts, all on one address, https://<ref>.baas.arianet.app, each under its own path:

PartPathWhat it does
Database<ref>.db.baas.arianet.app:5432A full Postgres Database with Tables, Views, Functions, Triggers and the allowed Extensions; direct connection with psql and ORMs, daily backups
REST API/rest/v1An automatic read/write API for every Table and View in the public Schema; RLS decides access
Auth/auth/v1Sign-up and sign-in for your app's users with email and password, magic link, one-time code (OTP) and anonymous sign-in and sign-in with Google, GitHub and other providers; MFA; standard JWT tokens
Storage/storage/v1Files in public or private Buckets, with Policies on files, Signed URLs, resumable uploads, image transformation and S3 access
Realtime/realtime/v1Websocket channels for Broadcast, Presence and live Database changes
Edge Functions/functions/v1Runs your TypeScript/JavaScript code on the server

<ref> is the Project's 20-character id (lowercase letters and digits), assigned at creation and never changed.

Region​

Projects are currently created in Region thr-1 (Tehran 1): a datacenter inside Iran, with the lowest latency for users in Iran and no dependency on international links. A Project's Region is chosen at creation and never changes; its Database and files stay there.

Free Plan​

The Free Plan is for getting started and small projects. Its limits:

ItemFree Plan limit
Projects per account2
Database500 MB
Storage (files)1 GB
Size of one file50 MB
Egress (outbound traffic) per month5 GB
MAU (monthly active Auth users)50,000
Automatic pauseafter 7 days without a request
Concurrent Database connections20
Requests per second per Project50
Longest SQL statement through the API8 seconds
SMS codes (SMS OTP)none
  • Free Plan limits are hard: at 100 %, file uploads (Storage), traffic (Egress) or new user sign-ups (MAU) are refused until the month ends. Details in Usage and limits.
  • Warnings at 80 % and 100 %: for each item (Database, Storage, Egress, MAU) you get one notice at 80 % and one at 100 % per month.
  • The usage period is the calendar month in UTC; Egress and MAU start from zero every month.
  • Automatic pause: a free Project that receives no request for 7 days is paused. Its data is kept, and the next request brings it back within a few seconds (details).

Paid Plans (Pro and Team) with higher limits are coming soon. On a paid Plan, going over a limit does not stop the service; the extra usage is billed separately.

Where to start​