Skip to content
Nebutra

Sailor

我们自己在用的开源地基,今天就能用。

The open-source platform we build everything on: auth, billing, tenancy, AI routing and the guards that keep a fast-moving codebase honest. Start a company on it with one command.

$ npx create-sailor@latest

Source on GitHub · See the site you get · Licensing for teams

Sailor v2.0.0
AI-Native SaaS Unicorn Template
Resolving Nebutra/Sailor-Template@main…
Downloading template 19.7 MB
Extracting template…
Writing project files…
✓ Template ready (68.6 MB from Nebutra/Sailor-Template@main)
License: MIT — commercial use, closed source, no fee, no attribution.
- Done in 17s · ./acme/
Next:
-> cd ./acme
-> npm install
-> nebutra status → what is live, what needs a key
-> npm dev → http://localhost:3000
A real run of the published CLI, recorded on 27 September 2026 — install and git skipped. The localhost link opens acme.nebutra.com, this exact template deployed.
ความสามารถระดับองค์กร

แกนกลางที่รองรับการกำหนดประเภทและขยายได้เต็มที่

ความปลอดภัยระดับแถวแบบเนทีฟ

ทุกการสอบถามฐานข้อมูลจะถูกกำหนดขอบเขตอย่างเข้มงวดตามบริบทของเทแนนต์ปัจจุบัน

อ่านปรัชญาฐานข้อมูล
query.ts
schema.prisma
middleware.ts
1import { withTenant } from '@nebutra/rls'
2 
3export const getPosts = withTenant(
4 async (ctx) => {
5 const data = await prisma.post.findMany({
6 where: {
7 tenantId: ctx.tenant.id,
8 published: true,
9 },
10 include: { author: true },
11 });
12 return data;
13 }
14);
Terminal— rls-audit

$ npx nebutra rls-audit --strict

✔ 0 cross-tenant leaks detected

14 queries scanned in 0.8s

เกตเวย์ AI ทั่วไป

เปลี่ยนเส้นทางพรอมต์ไปยัง OpenAI, Anthropic หรือโมเดลโอเพนซอร์สได้อย่างราบรื่น

สำรวจตัวจัดการ AI SDK
endpoint.ts
import { createEdgeRouter } from '@nebutra/ai';
// Auto-fallback & latency routing
export const POST = createEdgeRouter({
strategy: 'lowest-latency',
models: ['gpt-5.5', 'claude-sonnet-4.6'],
stream: true
});
Your
SaaS
OpenAIOpenAI
AnthropicAnthropic
GeminiGemini
DeepSeekDeepSeek

การควบคุมการเข้าถึงแบบละเอียด

กำหนดบทบาทผู้ดูแลระบบ สมาชิก และผู้ชม พร้อมโครงสร้างนโยบายในตัว

ดูเอกสาร RBAC
Access Matrix5 rules active
Resource
CN
Admin
LR
Member
TL
Guest
Posts
Billing
Settings
API Keys
Analytics

โครงสร้างพื้นฐานการเรียกเก็บเงินหลายผู้ให้บริการ

การใช้งานแบบวัดปริมาณ Webhook การสมัครสมาชิก และพอร์ตลูกค้าแบบบริการตนเอง

ดูสถาปัตยกรรมเรียกเก็บเงิน
Monthly Recurring Revenue+14.2%

$12,400

MRR

$12.4k

+$1,204

Seats

847

+12

Churn

2.3%

-0.4%