Synaplan
開源 AI 平台,供企業使用:自行託管的 AI 代理、符合 GDPR 的聊天機器人小工具、RAG 知識庫、WhatsApp 與 Outlook AI、MCP、多模型路由。Docker、Kubernetes 或託管於 Germ
AI 翻譯
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Open-source, self-hosted appointment scheduling for a single company: services, providers, booking pages, calendar conflict checks, and email. Deploy with Docker.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Self-hosted appointment scheduling for a single company with multiple services and multiple providers. Customers pick a service, choose a provider or let the system assign one, and book an open slot. Your team manages availability, bookings, and customers from one dashboard.
Tidetime is open source and runs on your own server. There is no hosted plan, no per-seat pricing, and no third-party analytics.
You need Node.js 20 or newer and a PostgreSQL database. docker compose up -d starts one locally.
git clone https://github.com/Sulaiman-Dauda/Tidetime.git tidetime
cd tidetime
cp .env.example .env
The example file is set up for production, so edit .env before going on. Delete the NODE_ENV=production line, set APP_URL=http://localhost:3100, and set DATABASE_URL=postgres://postgres:postgres@localhost:5432/tidetime (the database docker compose up -d starts). The secrets can stay empty in development.
npm ci
npm run db:migrate
npm run dev
Open http://localhost:3100/setup to create the company and its owner account. From there, invite teammates under Members and assign them to services as providers under Services.
To try a demo company instead, skip /setup and seed the empty database. It creates a sample service with two providers, and you sign in as [email protected] with the password password123. Do not run both: the seed adds its own company, and setup is closed once users exist.
npm run db:seed
Copy .env.example to .env and fill in the values. The essentials:
| Variable | Required | Purpose |
|---|---|---|
APP_URL | Yes | Public URL of the instance, used in links and emails. |
APP_NAME | No | Product name used in browser titles, in emails, and in authenticator apps. The company name set in Settings does not replace it there. Defaults to Tidetime. |
DATABASE_URL | Yes | PostgreSQL connection string. |
AUTH_SECRET | Yes | Random value of at least 32 characters. Encrypts stored credentials and two-factor secrets, and signs OAuth state, RSVP links and spam-check tokens. Sessions do not depend on it. |
CRON_SECRET | Yes | Random value of at least 32 characters. Protects the background jobs endpoint. |
POSTGRES_PASSWORD | Prod | Password for the bundled PostgreSQL container in the production Compose file. |
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET | No | Enable Google Calendar and Google Meet. |
Generate a secret with openssl rand -base64 32. SMTP and Microsoft 365 email are set up in the dashboard after the app is running, not in the environment file.
In production the app validates its configuration on boot and refuses to start with a missing or weak secret.
On a fresh Linux server (root or sudo), one command installs everything (Docker, secrets, firewall, the stack) and prints the address when it is live:
curl -fsSL https://raw.githubusercontent.com/Sulaiman-Dauda/Tidetime/main/install.sh | bash
Prefer to do it by hand? The production Compose file runs PostgreSQL, the standalone Next.js server, a background jobs worker, and Caddy:
cp .env.example .env
# Fill APP_URL, POSTGRES_PASSWORD, AUTH_SECRET, and CRON_SECRET.
# Compose builds DATABASE_URL itself from POSTGRES_PASSWORD.
docker compose -f docker-compose.prod.yml up -d --build
This builds the image from source. To run the published image instead, which also updates the same way as an installer setup, add TIDETIME_IMAGE=ghcr.io/sulaiman-dauda/tidetime:latest to .env and start with docker compose -f docker-compose.prod.yml pull followed by docker compose -f docker-compose.prod.yml up -d.
The app container applies database migrations before it starts. The jobs worker calls the protected cron endpoint on an interval to handle webhook retries and data retention. The application port stays bound to localhost so all remote traffic passes through Caddy, so the instance is reached at http://<your-server-ip> (or https://<your-domain> once a domain is attached).
For domain setup, backups, Microsoft 365 email, and upgrade notes, see docs/DEPLOYMENT.md.
Team members are managed under Members, each with one of four roles:
A provider is a member assigned to a service. These boundaries are enforced in the server queries and mutations, not only in the interface.
Google Calendar and Meet. Google needs the instance on a custom domain with HTTPS, because it rejects plain-HTTP and IP-address redirect URIs. Once the domain is live (Settings, Domain), create Web application OAuth credentials in Google Cloud with the redirect URI https://<your-domain>/api/google-calendar/callback, add the client ID and secret to your environment, and restart. Providers then connect their own calendars from the dashboard.
Microsoft 365. Register an app in Microsoft Entra and connect it from Dashboard, Connections. The same registration covers both mailbox sending and calendar conflict checks. Full steps are in the deployment notes.
Zapier and generic webhooks. Add a Catch Hook URL under Dashboard, Connections, Zapier webhooks and pick which events to send. Each delivery includes:
Content-Type: application/jsonX-Tidetime-Signature-256: sha256=<HMAC>{ triggerEvent, createdAt, payload }Each webhook gets a random signing secret when you add it. The dashboard does not show it yet; read it from the secret column of the webhooks table to verify the signature.
Targets must be publicly routable HTTP or HTTPS URLs, redirects are not followed, requests time out after ten seconds, and failed deliveries retry with backoff.
npm run dev # start the dev server on port 3100
npm run check # lint, type-check, unit tests, and a production build
npm run test # unit tests only
npm run test:e2e # end-to-end tests (Playwright)
npm run db:studio # browse the database with Drizzle Studio
To reset a local database to a clean state:
npm run db:reset -- --confirm <database_name>
npm run db:migrate
npm run db:seed
The reset command refuses to run in production mode, against remote hosts, or without a matching database name.
Issues and pull requests are welcome. Please run npm run check before opening a pull request, and see CONTRIBUTING.md and CODE_OF_CONDUCT.md. Security reports go through SECURITY.md.
Released under the MIT License.