OSS Agents JP
オープンソース AI エージェント 日本語ガイド
← 一覧へ
Cal.diy
OTHER

Cal.diy

Cal.diy

Next.js・Prisma・tRPCなどモダン技術で構築されたオープンソースのスケジューリングプラットフォーム。セルフホスト可能で、個人用途やカスタマイズが必要な環境向けです。

原文: Scheduling infrastructure for absolutely everyone.
#スケジューリング#セルフホスト#TypeScript#next-auth#nextjs#open-source#postgresql#prisma#t3-stack#tailwindcss#trpc#turborepo
REPO STATS

リポジトリ統計

⭐ Stars
42.5k
🍴 Forks
13.2k
⚠️ Open Issues
1294
🌿 Language
TypeScript
📄 License
MIT
🕒 最終更新
2026.05.10 (2日前)
📅 公開日
2021.03.22
🌿 Branch
main
REFERENCE

公式ドキュメント(README)

本ハブの独自評価は上記「編集部メモ」が一次情報です。以下は GitHub README の参考転載(折りたたみ)。

📖 GitHub README の日本語訳を読む(AI 自動翻訳 / 参考情報)

— AI による自動翻訳 (2026.05.13 更新)。正確な情報は GitHub の原文 をご確認ください。

警告

自己の責任で使用してください。Cal.diy は Cal.com のオープンソースコミュニティエディションであり、独自の Cal.diy インスタンスをセルフホストしたいユーザー向けです。個人的で本番環境以外の使用を厳密に推奨しています。すべてのインストールおよび設定ステップを慎重に確認してください。セルフホスティングには、サーバー管理、データベース管理、および機密データの保護に関する高度な知識が必要です。これらの責任に対して気が進む場合のみ進めてください。

ヒント

商用および企業向けのスケジューリングインフラストラクチャについては、Cal.diy ではなく Cal.com を使用してください。当社がホストするか、ここからオンプレミスのエンタープライズアクセスにお招きします: https://cal.com/sales

Logo

Cal.diy

コミュニティ主導のオープンソーススケジューリングプラットフォーム。
GitHub

ディスカッション · イシュー · 貢献

License Github Stars Commits-per-month Docker Pulls

Cal.diy について

booking-screen

Cal.diy は、コミュニティ主導の完全オープンソーススケジューリングプラットフォームです。すべてのエンタープライズ・商用コードを削除した Cal.com のフォークです。

Cal.diy は100% MIT ライセンスで、専有の「Enterprise Edition」機能はありません。スケジューリングインフラストラクチャを完全にコントロールしたい個人およびセルフホスター向けに設計されており、商用依存関係は一切ありません。

Cal.com との違いは何ですか?

  • エンタープライズ機能なし — Teams、Organizations、Insights、Workflows、SSO/SAML などの EE 限定機能が削除されています
  • ライセンスキーが不要 — すべてがそのまま動作します。Cal.com アカウントやライセンスは不要です
  • 100% オープンソース — コード全体が MIT ライセンスの下で公開されており、「Open Core」の分割はありません
  • コミュニティ保守 — コントリビューションは大歓迎で、このプロジェクトに直接統合されます(CONTRIBUTING.md を参照)

注: Cal.diy はセルフホストプロジェクトです。ホステッド版またはマネージド版はありません。あなた自身のインフラストラクチャで実行します。

構築に使用した技術

はじめに

ローカル環境で実行するには、以下の簡単なステップに従ってください。

前提条件

Cal.diy を実行するために必要なものは以下の通りです。

  • Node.js (バージョン:>=18.x)
  • PostgreSQL (バージョン:>=13.x)
  • Yarn (推奨)

利用可能な統合のいずれかを有効にしたい場合は、それぞれの追加認証情報を取得したいかもしれません。詳細については、下の統合セクションを参照してください。

開発

セットアップ

  1. リポジトリをクローンします(またはフォーク

    git clone https://github.com/calcom/cal.diy.git

    Windows を使用している場合は、以下のコマンドを Git Bash で管理者権限で実行してください: git clone -c core.symlinks=true https://github.com/calcom/cal.diy.git

  2. プロジェクト フォルダに移動します

    cd cal.diy
  3. yarn でパッケージをインストールします

    yarn
  4. .env ファイルを設定します

    • .env.example.env にコピーします
    • openssl rand -base64 32 を使用してキーを生成し、.env ファイルの NEXTAUTH_SECRET の下に追加します。
    • openssl rand -base64 24 を使用してキーを生成し、.env ファイルの CALENDSO_ENCRYPTION_KEY の下に追加します。

Windows ユーザー向け: Prisma エラー(unexpected character / in variable name)を回避するため、packages/prisma/.env シンボリックリンクを実ファイルのコピーに置き換えてください:

# Git Bash / WSL
rm packages/prisma/.env && cp .env packages/prisma/.env
  1. Node を設定します ドキュメントの指示に従ってプロジェクトの要件を満たさない Node バージョンを使用している場合、「nvm」(Node Version Manager)を使用するとプロジェクトが必要とするバージョンで Node を使用できます:

    nvm use

    まず特定のバージョンをインストールしてから使用する必要があるかもしれません:

    nvm install && nvm use

    nvm はこちらからインストールできます。

yarn dx で高速に開始

  • Docker と Docker Compose のインストールが必要です
  • いくつかのテストユーザーを含むローカル Postgres インスタンスを起動します - 認証情報はコンソールに出力されます
yarn dx

作成されたデフォルト認証情報:

メール パスワード ロール
free@example.com free 無料ユーザー
pro@example.com pro プロユーザー
trial@example.com trial トライアルユーザー
admin@example.com ADMINadmin2022! 管理者ユーザー
onboarding@example.com onboarding オンボーディング未完了

これらの認証情報のいずれかを使用して http://localhost:3000 にサインインできます

ヒント:シード済みユーザーの完全なリストと詳細を表示するには、yarn db-studio を実行して http://localhost:5555 にアクセスしてください

開発のヒント

  1. シェル スクリプトに export NODE_OPTIONS="--max-old-space-size=16384" を追加して、Node プロセスのメモリ制限を増やすことができます。または、アプリケーションを実行する前にターミナルでこれを実行できます。16384 を Node プロセスに割り当てたい RAM の量に置き換えてください。

  2. .env ファイルに NEXT_PUBLIC_LOGGER_LEVEL={level} を追加して、すべての tRPC クエリとミューテーションのログ出力の詳細度を制御できます。
    {level} は以下のいずれかです:

    0 = silly
    1 = trace
    2 = debug
    3 = info
    4 = warn
    5 = error
    6 = fatal

    .env ファイルで NEXT_PUBLIC_LOGGER_LEVEL={level} を設定すると、そのレベル以上のログが有効になります。仕組みは以下の通りです:

    ロガーは指定されたレベル以上のログをすべて含みます。例えば:\

    • NEXT_PUBLIC_LOGGER_LEVEL=2 に設定した場合、レベル 2(debug)以上からログします。つまり、レベル 2(debug)、3(info)、4(warn)、5(error)、6(fatal)がログされます。\
    • NEXT_PUBLIC_LOGGER_LEVEL=3 に設定した場合、レベル 3(info)以上からログします。つまり、レベル 3(info)、4(warn)、5(error)、6(fatal)がログされますが、レベル 2(debug)とレベル 1(trace)は無視されます。\
echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env

例えば、ロガーのレベルを info に設定する場合です。

Gitpod セットアップ

  1. 以下のボタンをクリックして、このプロジェクトを Gitpod で開きます。

  2. これにより、必要な依存関係がすべてインストール済みの、ブラウザで完全に構成されたワークスペースが開きます。

Gitpod で開く

手動セットアップ

  1. .env ファイル内の環境変数を設定してください。<user><pass><db-host><db-port> を適用可能な値に置き換えてください。

    DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
    
    DATABASE_URL の設定方法が分からない場合は、こちらの手順に従ってクイックローカル DB を作成してください。
    1. ダウンロードして PostgreSQL をローカルにインストールしてください(まだの場合)。

    2. createDB <DB name> を実行して独自のローカル DB を作成してください。

    3. 作成した DB で psql シェルを開いてください: psql -h localhost -U postgres -d <DB name>

    4. psql シェル内で \conninfo を実行してください。すると以下の情報が表示されます。 image

    5. すべての情報を抽出して DATABASE_URL に追加してください。URL は以下のようになります: postgresql://postgres:postgres@localhost:5432/Your-DB-Name。ポートは設定可能であり、5432 である必要はありません。

    ローカル DB を作成したくない場合は、railway.app、Northflank、render などのサービスを使用することもできます。

  2. .env から DATABASE_URL をコピーして .env.appStore に貼り付けてください。

  3. Prisma スキーマを使用してデータベースをセットアップしてください(packages/prisma/schema.prisma に含まれています)。

    開発環境では以下を実行してください:

    yarn workspace @calcom/prisma db-migrate

    本番環境では以下を実行してください:

    yarn workspace @calcom/prisma db-deploy
  4. 開発中に送信されたメールを表示するために mailhog を実行してください。

    注: E2E_TEST_MAILHOG_ENABLED が「1」の場合は必須です。

    docker pull mailhog/mailhog
    docker run -d -p 8025:8025 -p 1025:1025 mailhog/mailhog
  5. 実行してください(開発モード)

    yarn dev

最初のユーザーをセットアップする

方法 1
  1. Prisma Studio を開いてデータベースコンテンツを確認または変更してください:

    yarn db-studio
  2. User モデルをクリックして新しいユーザーレコードを追加してください。

  3. emailusernamepassword フィールドを入力し、metadata を空の {} に設定してください(BCrypt でパスワードを暗号化することを忘れずに)。その後 Save 1 Record をクリックして最初のユーザーを作成してください。

    新しいユーザーはデフォルトで TRIAL プランに設定されています。packages/prisma/schema.prisma ファイルでこの動作をニーズに合わせて調整することをお勧めします。

  4. ブラウザを http://localhost:3000 で開き、作成したばかりの最初のユーザーでログインしてください。

方法 2

以下を実行してローカル DB をシードしてください:

cd packages/prisma
yarn db-seed

上記のコマンドはローカル DB をダミーユーザーで埋めます。

E2E テスト

環境変数 NEXTAUTH_URL を正しい値に設定してください。ローカルで実行している場合は、.env.example のドキュメントに記載されているように、値は http://localhost:3000 である必要があります。

# In a terminal just run:
yarn test-e2e

# To open the last HTML report run:
yarn playwright show-report test-results/reports/playwright-html-report

問題の解決

E2E テストブラウザがインストールされていない

npx playwright install を実行してテストブラウザをダウンロードし、yarn test-e2e 実行時に以下のエラーを解決してください:

📖 GitHub README の原文を読む(English / 参考情報)

— GitHub から取得した原文。完全版は GitHub へ。

Warning

Use at your own risk. Cal.diy is the open source community edition of Cal.com and it is intended for users who want to self-host their own Cal.diy instance. It is strictly recommended for personal, non-production use. Please review all installation and configuration steps carefully. Self-hosting requires advanced knowledge of server administration, database management, and securing sensitive data. Proceed only if you are comfortable with these responsibilities.

Tip

For any commercial and enterprise-ready scheduling infrastructure, use Cal.com, not Cal.diy; hosted by us or get invited to on-prem enterprise access here: https://cal.com/sales

Logo

Cal.diy

The community-driven, open-source scheduling platform.
GitHub

Discussions · Issues · Contributing

License Github Stars Commits-per-month Docker Pulls

About Cal.diy

booking-screen

Cal.diy is the community-driven, fully open-source scheduling platform — a fork of Cal.com with all enterprise/commercial code removed.

Cal.diy is 100% MIT-licensed with no proprietary "Enterprise Edition" features. It's designed for individuals and self-hosters who want full control over their scheduling infrastructure without any commercial dependencies.

What's different from Cal.com?

  • No enterprise features — Teams, Organizations, Insights, Workflows, SSO/SAML, and other EE-only features have been removed
  • No license key required — Everything works out of the box, no Cal.com account or license needed
  • 100% open source — The entire codebase is licensed under MIT, no "Open Core" split
  • Community-maintained — Contributions are welcome and go directly into this project (see CONTRIBUTING.md)

Note: Cal.diy is a self-hosted project. There is no hosted/managed version. You run it on your own infrastructure.

Built With

Getting Started

To get a local copy up and running, please follow these simple steps.

Prerequisites

Here’s what you need to run Cal.diy.

  • Node.js (Version: >=18.x)
  • PostgreSQL (Version: >=13.x)
  • Yarn (recommended)

If you want to enable any of the available integrations, you may want to obtain additional credentials for each one. More details on this can be found below under the integrations section.

Development

Setup

  1. Clone the repo (or fork https://github.com/calcom/cal.diy/fork)

    git clone https://github.com/calcom/cal.diy.git

    If you are on Windows, run the following command in Git Bash with admin privileges: git clone -c core.symlinks=true https://github.com/calcom/cal.diy.git

  2. Go to the project folder

    cd cal.diy
  3. Install packages with yarn

    yarn
  4. Set up your .env file

    • Duplicate .env.example to .env
    • Use openssl rand -base64 32 to generate a key and add it under NEXTAUTH_SECRET in the .env file.
    • Use openssl rand -base64 24 to generate a key and add it under CALENDSO_ENCRYPTION_KEY in the .env file.

Windows users: Replace the packages/prisma/.env symlink with a real copy to avoid a Prisma error (unexpected character / in variable name):

# Git Bash / WSL
rm packages/prisma/.env && cp .env packages/prisma/.env
  1. Set up Node If your Node version does not meet the project's requirements as instructed by the docs, "nvm" (Node Version Manager) allows using Node at the version required by the project:

    nvm use

    You first might need to install the specific version and then use it:

    nvm install && nvm use

    You can install nvm from here.

Quick start with yarn dx

  • Requires Docker and Docker Compose to be installed
  • Will start a local Postgres instance with a few test users - the credentials will be logged in the console
yarn dx

Default credentials created:

Email Password Role
free@example.com free Free user
pro@example.com pro Pro user
trial@example.com trial Trial user
admin@example.com ADMINadmin2022! Admin user
onboarding@example.com onboarding Onboarding incomplete

You can use any of these credentials to sign in at http://localhost:3000

Tip: To view the full list of seeded users and their details, run yarn db-studio and visit http://localhost:5555

Development tip

  1. Add export NODE_OPTIONS="--max-old-space-size=16384" to your shell script to increase the memory limit for the node process. Alternatively, you can run this in your terminal before running the app. Replace 16384 with the amount of RAM you want to allocate to the node process.

  2. Add NEXT_PUBLIC_LOGGER_LEVEL={level} to your .env file to control the logging verbosity for all tRPC queries and mutations.
    Where {level} can be one of the following:

    0 for silly
    1 for trace
    2 for debug
    3 for info
    4 for warn
    5 for error
    6 for fatal

    When you set NEXT_PUBLIC_LOGGER_LEVEL={level} in your .env file, it enables logging at that level and higher. Here's how it works:

    The logger will include all logs that are at the specified level or higher. For example: \

    • If you set NEXT_PUBLIC_LOGGER_LEVEL=2, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged. \
    • If you set NEXT_PUBLIC_LOGGER_LEVEL=3, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \
echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env

for Logger level to be set at info, for example.

Gitpod Setup

  1. Click the button below to open this project in Gitpod.

  2. This will open a fully configured workspace in your browser with all the necessary dependencies already installed.

Open in Gitpod

Manual setup

  1. Configure environment variables in the .env file. Replace <user>, <pass>, <db-host>, and <db-port> with their applicable values

    DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
    
    If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick local DB
    1. Download and install PostgreSQL locally (if you don't have it already).

    2. Create your own local db by executing createDB <DB name>

    3. Now open your psql shell with the DB you created: psql -h localhost -U postgres -d <DB name>

    4. Inside the psql shell execute \conninfo. And you will get the following info. image

    5. Now extract all the info and add it to your DATABASE_URL. The url would look something like this postgresql://postgres:postgres@localhost:5432/Your-DB-Name. The port is configurable and does not have to be 5432.

    If you don't want to create a local DB. Then you can also consider using services like railway.app, Northflank or render.

  2. Copy and paste your DATABASE_URL from .env to .env.appStore.

  3. Set up the database using the Prisma schema (found in packages/prisma/schema.prisma)

    In a development environment, run:

    yarn workspace @calcom/prisma db-migrate

    In a production environment, run:

    yarn workspace @calcom/prisma db-deploy
  4. Run mailhog to view emails sent during development

    NOTE: Required when E2E_TEST_MAILHOG_ENABLED is "1"

    docker pull mailhog/mailhog
    docker run -d -p 8025:8025 -p 1025:1025 mailhog/mailhog
  5. Run (in development mode)

    yarn dev

Setting up your first user

Approach 1
  1. Open Prisma Studio to look at or modify the database content:

    yarn db-studio
  2. Click on the User model to add a new user record.

  3. Fill out the fields email, username, password, and set metadata to empty {} (remembering to encrypt your password with BCrypt) and click Save 1 Record to create your first user.

    New users are set on a TRIAL plan by default. You might want to adjust this behavior to your needs in the packages/prisma/schema.prisma file.

  4. Open a browser to http://localhost:3000 and login with your just created, first user.

Approach 2

Seed the local db by running

cd packages/prisma
yarn db-seed

The above command will populate the local db with dummy users.

E2E-Testing

Be sure to set the environment variable NEXTAUTH_URL to the correct value. If you are running locally, as the documentation within .env.example mentions, the value should be http://localhost:3000.

# In a terminal just run:
yarn test-e2e

# To open the last HTML report run:
yarn playwright show-report test-results/reports/playwright-html-report

Resolving issues

E2E test browsers not installed

Run npx playwright install to download test browsers and resolve the error below when running yarn test-e2e: