Mortar 给你什么

8 个 capability 模块 + 控制平面。全部开源。详细 5×(5+5) primitive×feature 结构看 架构

核心模块

auth

终端用户注册 / 登录 / API key 颁发

db

Postgres 表 + 行 CRUD,走 mortar.from()

storage

文件上传 / 下载 / 签名 URL(OSS / COS / 本地)

realtime

基于 Postgres LISTEN 的 SSE 行变更订阅

function

FC / SCF / Lambda 上的 serverless 函数(按 CPU-min 计费)

usage

按租户的 credit 流水 + dashboard

扩展模块

cron

定时函数调用

queue

Postgres 背靠的后台 job queue

customdomain

自带 hostname + ACME TLS

dbbranch

预览 / staging 的 Postgres schema 分支