Show HN: Nuvix – 开源版 Supabase 和 Appwrite,支持 3 种模式,自动 RLS
3 分•作者: ravikantsaini•8 个月前
我独自一人用 TypeScript 构建了一个完整的后端即服务平台,旨在解决我对 Supabase 和 Appwrite 的不满。<p>问题所在
- Supabase:过于僵化。单一模式,缺乏灵活性。
- Appwrite:过于宽松。没有行级安全策略(RLS),安全性需要手动配置。<p>解决方案:三种模式类型
| 类型 | 用例 | 安全性 |
|------------|------------------------------------|----------------|
| `Document` | 快速原型开发(Appwrite 风格) | 手动配置 |
| `Managed` | 安全的应用程序(自动 RLS + 权限) | *默认安全* |
| `Unmanaged`| 充分发挥 SQL 威力(原始 Postgres) | 无需配置 |<p>### 杀手级功能
- *比 PostgREST 更好的 API*:无需外键即可连接表,按嵌套列进行过滤
- *仪表盘*(类似于 Supabase Studio)—— 完整的 CRUD 操作、RLS 编辑器、文件浏览器
- *类型安全的 SDK*——零配置,完全自动补全
- *Bun 运行时*——比 Node.js 更快
- *两分钟内自托管*,使用 Docker<p>```bash
git clone <a href="https://github.com/Nuvix-Tech/nuvix" rel="nofollow">https://github.com/Nuvix-Tech/nuvix</a>
cd nuvix && docker compose up -d
```
查看原文
I built a full backend-as-a-service platform — solo, in TypeScript — to fix what I hated about Supabase and Appwrite.<p>The Problem
- Supabase: Too rigid. One schema model. No flexibility.
- Appwrite: Too loose. No RLS. Security is manual.<p>The Solution: 3 Schema Types
| Type | Use Case | Security |
|------------|-----------------------------------|----------|
| `Document` | Rapid prototyping (Appwrite-style) | Manual |
| `Managed` | Secure apps (auto RLS + permissions) | *Secure by default* |
| `Unmanaged`| Full SQL power (raw Postgres) | None |<p>### Killer Features
- *APIs better than PostgREST*: Join tables *without FKs*, filter by nested columns
- *Dashboard* (like Supabase Studio) – full CRUD, RLS editor, file browser
- *Type-safe SDK* – zero config, full autocomplete
- *Bun runtime* – faster than Node.js
- *Self-host in 2 minutes* with Docker<p>```bash
git clone <a href="https://github.com/Nuvix-Tech/nuvix" rel="nofollow">https://github.com/Nuvix-Tech/nuvix</a>
cd nuvix && docker compose up -d
```