MCPcopy
hub / github.com/calcom/cal.diy

github.com/calcom/cal.diy @v6.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v6.2.0 ↗
20,075 symbols 68,100 edges 7,402 files 676 documented · 3%
README

Logo

Cal.com

The open-source Calendly successor.



<a href="https://cal.com"><strong>Learn more »</strong></a>






<a href="https://github.com/calcom/cal.com/discussions">Discussions</a>
·
<a href="https://cal.com">Website</a>
·
<a href="https://github.com/calcom/cal.com/issues">Issues</a>
·
<a href="https://cal.com/roadmap">Roadmap</a>

Product Hunt Checkly QA Uptime Github Stars Hacker News License Commits-per-month Pricing Jitsu Tracked Checkly Availability

About the Project

booking-screen

Scheduling infrastructure for absolutely everyone

The open source Calendly successor. You are in charge of your own data, workflow, and appearance.

Calendly and other scheduling tools are awesome. It made our lives massively easier. We're using it for business meetings, seminars, yoga classes, and even calls with our families. However, most tools are very limited in terms of control and customization.

That's where Cal.com comes in. Self-hosted or hosted by us. White-label by design. API-driven and ready to be deployed on your own domain. Full control of your events and data.

Recognition

Hacker News

Featured on Hacker News

Featured on Hacker News

Product Hunt

Cal.com - The open source Calendly alternative | Product Hunt Cal.com - The open source Calendly alternative | Product Hunt Cal.com - The open source Calendly alternative | Product Hunt

This project is tested with browserstack

Built With

Contact us

Meet our sales team for any commercial inquiries.

Book us with Cal.com

Stay Up-to-Date

Cal.com officially launched as v.1.0 on the 15th of September 2021 and we've come a long way so far. Watch releases of this repository to be notified of future updates:

cal-star-github

Getting Started

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

Prerequisites

Here is what you need to be able to run Cal.com.

  • 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.com/fork). The code is licensed under AGPLv3, which requires you to provide source code to users who interact with the software over a network. For commercial use without these requirements, acquire a commercial license

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

If you are on Windows, run the following command on gitbash with admin privileges:

git clone -c core.symlinks=true https://github.com/calcom/cal.com.git

See docs for more details.

  1. Go to the project folder

sh cd cal.com

  1. Install packages with yarn

sh yarn

  1. Set up your .env file

  2. Duplicate .env.example to .env

  3. Use openssl rand -base64 32 to generate a key and add it under NEXTAUTH_SECRET in the .env file.
  4. 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):

```sh

Git Bash / WSL

rm packages/prisma/.env && cp .env packages/prisma/.env ```

  1. Setup 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:

sh nvm use

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

sh 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 postgres in your local (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.

In a development environment, run:

sh yarn workspace @calcom/prisma db-migrate

In a production environment, run:

sh yarn workspace @calcom/prisma db-deploy

  1. Run mailhog to view emails sent during development

NOTE: Required when E2E_TEST_MAILHOG_ENABLED is "1"

sh docker pull mailhog/mailhog docker run -d -p 8025:8025 -p 1025:1025 mailhog/mailhog

  1. Run (in development mode)

sh yarn dev

Setting up your first user

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

sh yarn db-studio

  1. Click on the User model to add

Extension points exported contracts — how you extend this code

CRM (Interface)
(no doc) [6 implementers]
packages/types/CrmService.d.ts
IUserDeletion (Interface)
(no doc) [33 implementers]
packages/lib/sync/ISyncService.ts
IAuditActionService (Interface)
(no doc) [15 implementers]
packages/features/booking-audit/lib/actions/IAuditActionService.ts
GoogleCalendarEventInputTransform (Interface)
(no doc) [13 implementers]
apps/api/v2/src/modules/cal-unified-calendars/pipes/google-calendar-event-input-pipe.ts
QueuedFormResponseRepositoryInterface (Interface)
(no doc) [2 implementers]
packages/app-store/routing-forms/lib/queuedFormResponse/QueuedFormResponseRepository.interface.ts
FieldConfig (Interface)
* Configuration for form fields
apps/web/playwright/lib/test-helpers/routingFormHelpers.ts
ProrationInvoiceEmailParams (Interface)
(no doc)
packages/emails/templates/proration-invoice-email.ts
ImportMetaEnv (Interface)
(no doc)
packages/embeds/embed-core/env.d.ts

Core symbols most depended-on inside this repo

create
called by 1810
packages/lib/sync/ISyncService.ts
dayjs
called by 1808
apps/web/playwright/wipe-my-cal.e2e.ts
get
called by 1637
packages/features/calendar-subscription/adapters/AdaptersFactory.ts
set
called by 1198
apps/api/v2/src/modules/redis/redis.service.ts
error
called by 1165
packages/features/webhooks/lib/interface/infrastructure.ts
find
called by 1145
packages/features/ee/billing/repository/teamBillingData/ITeamBillingDataRepository.ts
useLocale
called by 920
packages/lib/hooks/useLocale.ts
classNames
called by 858
packages/ui/classNames.ts

Shape

Function 9,364
Method 5,759
Class 3,575
Interface 1,245
Enum 132

Languages

TypeScript100%

Modules by API surface

packages/testing/src/lib/bookingScenario/bookingScenario.ts71 symbols
packages/features/users/repositories/UserRepository.ts59 symbols
packages/embeds/embed-core/src/embed.ts59 symbols
packages/features/bookings/repositories/BookingRepository.ts58 symbols
packages/app-store/salesforce/lib/CrmService.ts55 symbols
packages/platform/types/event-types/event-types_2024_06_14/outputs/booking-fields.output.ts54 symbols
packages/platform/types/event-types/event-types_2024_06_14/inputs/booking-fields.input.ts45 symbols
packages/app-store/googlecalendar/lib/CalendarService.ts40 symbols
packages/testing/src/lib/bookingScenario/expects.ts39 symbols
apps/api/v2/src/modules/workflows/inputs/workflow-step.input.ts38 symbols
packages/features/profile/repositories/ProfileRepository.ts37 symbols
packages/features/eventtypes/repositories/eventTypeRepository.ts37 symbols

Dependencies from manifests, versioned

@axiomhq/winston1.2.0 · 1×
@babel/core7.26.10 · 1×
@base-ui/react1.0.0 · 1×
@biomejs/biome2.3.10 · 1×
@boxyhq/saml-jackson1.52.2 · 1×
@calcom/app-storeworkspace:* · 1×
@calcom/app-store-cliworkspace:* · 1×
@calcom/atomsworkspace:* · 1×
@calcom/configworkspace:* · 1×
@calcom/dailyvideoworkspace:* · 1×
@calcom/dayjsworkspace:* · 1×
@calcom/emailsworkspace:* · 1×

Datastores touched

calendsoDatabase · 1 repos
testdbDatabase · 1 repos

For agents

$ claude mcp add cal.diy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact