Hosting, database and email in one account

Run your app, its PostgreSQL database and its email from one DASTER account, with one project connection, one server key and one wallet.

Published · DASTER

Last updated

DASTER puts hosting, databases and app email in one account. An organization holds your projects, your team and one wallet. Inside a project, a hosted app gets its database settings by itself, and the same server key sends email over an HTTP API or SMTP. Sign-in, file storage, realtime, push and domains sit in the same project.

A SaaS app usually needs three services from the first week: somewhere to run, a database and an email API for sign-up, receipt and reset messages. Spread over three providers, that means three dashboards, three sets of keys and three bills. This post shows how the same setup looks on DASTER, and where its limits are today.

What is in one DASTER account?

Everything lives in an organization: projects, team, plan and wallet. An App project can hold:

  • Hosting: web services, workers, cron jobs and functions, built from GitHub, a .zip or a public Docker image.
  • Databases: PostgreSQL, a MongoDB-compatible Document Database and a MySQL-compatible SQL Database.
  • Authentication, Storage and Realtime: sign-in for your app's users, file buckets and live events, next to PostgreSQL.
  • App email: sending over HTTP or SMTP, templates, delivery logs, webhooks and receiving at inbound.<your domain>.
  • Marketing email for campaigns to people who opted in, and Push notifications.
  • Domains: connect a domain you own, with a free Let's Encrypt certificate.

Everything runs in Mumbai (ap-south-1). The Dashboard and the API are at https://app.daster.io.

How does one connection reach every service?

You connect an app to a project once. An app you deploy on DASTER receives these variables at every deployment, with no click:

VariableUsed for
DATABASE_URLPostgreSQL, through the session pooler
DASTER_URLThe project's data API
DASTER_SERVER_KEYDatabase, storage, realtime and App email
MYSQL_URLThe SQL Database, when the project has one
MONGODB_URLThe Document Database, when the project has one

An app hosted somewhere else copies one block of variables from Project settings › Connection and pastes it into its environment once. DASTER_URL and the keys work from anywhere; DATABASE_URL works only inside DASTER for now.

How does a SaaS app send email?

Turn on App email in the project, add your sender domain and publish the DKIM, SPF and DMARC records it shows at your DNS provider. Choose Check records; once they are verified, the domain can send.

Then send from your server with the server key, or a narrower key with Sending access from App email › Settings:

HTTP
POST https://app.daster.io/communications/v1/projects/{projectId}/email/send
Authorization: Bearer daster_sk_dev_…
Idempotency-Key: welcome-user-42
Content-Type: application/json

{
  "from": "hello@example.com",
  "to": "user@example.com",
  "subject": "Welcome",
  "text": "Thanks for signing up."
}

The SDK wraps the same call. Give it a key that can send; idempotencyKey is required, so a retry never sends twice:

TypeScript
import { createCommunicationsClient } from '@dasterhq/daster';

const messages = createCommunicationsClient({
  projectId: process.env.DASTER_PROJECT_ID!,
  credential: process.env.DASTER_EMAIL_KEY!,
});

await messages.sendMessage(
  {
    channel: 'email',
    to: 'ada@example.com',
    subject: 'Your receipt',
    text: 'Order 1042 confirmed.',
  },
  { idempotencyKey: 'receipt-1042' },
);

A framework mailer or a WordPress plugin that speaks only SMTP can use smtp.daster.io on port 465 or 587, with the project ID as the username and a key that can send as the password. SMTP messages go through the same queue, limits and Delivery logs as the API.

How much email can I send?

LimitValue
Per project environment200 emails a UTC day, 5,000 a UTC month
Per organization, across all projects200 a day, 5,000 a month

A send past a limit answers 429 email_quota_exceeded, with the limit, the count and when it resets. Metrics shows today and this month.

How is it billed?

One plan and one wallet pay for every project. Usage is measured by DASTER and paid from your plan's included credit first, then promotional credit, then cash. You can set a monthly alert and a hard limit for the organization or one project, and usage past an enforced hard limit is refused. Top-ups are paid in USDT on BNB Smart Chain; card payments are not available yet. Prices are not final: see the pricing page.

What should I know before I start?

  • Databases accept connections only from apps hosted on DASTER today.
  • Browser keys (daster_pk_…) cannot send email. Send from your server.
  • Buying a domain through DASTER is not open yet; connecting one you own works.
  • Every service except Hosting works in the project's Development environment today.

The details are in the docs: App email, Connect once and Send over SMTP.

DASTER is in testing and sign-up is waitlist-only. Join the waitlist and you get access 20 days after you join.

Questions about hosting, database and email on DASTER

Can I use the email API from an app hosted somewhere else?

Yes. Send over HTTP or SMTP with a project key from your server, wherever it runs. Only the database connection string is limited to apps hosted on DASTER today.

Do I need a separate key for email?

No. The project's server key can send and read App email. If you want a key that can only send, create one under App email › Settings with Sending access, optionally limited to one domain.

Can my app receive email too?

Yes. Receiving takes mail sent to addresses at inbound.<your domain> once you add its MX record, and routes it to a webhook or keeps it for the API.

Can I send newsletters from the same account?

Yes, with Marketing email: campaigns to contacts who agreed to receive them, organized in topics and segments. Campaign sends count toward the same email limits.

Does every service need its own bill?

No. One plan and one wallet per organization pay for hosting, databases, email and the rest, and Usage by project shows what each project used.

Next steps