Cal.com integration for online booking on website

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Cal.com integration for online booking on a website

Cal.com is an open-source alternative to Calendly. Can be used as SaaS (cal.com) or self-hosted on your own server. Gives full control over data, branding, and settings.

Self-hosted vs cloud

Parameter cal.com (cloud) Self-hosted
Cost Free / Pro from $12/mo Hosting only
Branding Cal.com logo on widget Fully custom
Data On Cal.com servers On your server
Setup Minutes 2–4 hours

Embedding via npm package

import { getCalApi } from '@calcom/embed-react';
import { useEffect } from 'react';

export function BookingButton() {
  useEffect(() => {
    (async () => {
      const cal = await getCalApi({ namespace: 'consultation' });
      cal('ui', {
        theme:       'light',
        hideEventTypeDetails: false,
        layout:      'month_view',
        styles:      { branding: { brandColor: '#4F46E5' } },
      });
    })();
  }, []);

  return (
    <button
      data-cal-namespace="consultation"
      data-cal-link="your-company/consultation"
      data-cal-config='{"layout":"month_view"}'
      className="btn-primary"
    >
      Book a consultation
    </button>
  );
}

Cal.com API v2

Cal.com provides REST API for programmatic management:

const cal = new CalApi({ apiKey: process.env.CAL_API_KEY });

// Get booked meetings
const bookings = await cal.bookings.list({
  status: 'upcoming',
  take: 50,
});

// Create event programmatically
const event = await cal.bookings.create({
  eventTypeId: 123,
  start: '2025-03-01T10:00:00Z',
  attendee: {
    name:     'Ivan Petrov',
    email:    '[email protected]',
    timeZone: 'Europe/Moscow',
  },
});

Cal.com Webhooks

Route::post('/webhooks/cal', function (Request $request) {
    // Verify signature
    $signature = hash_hmac('sha256', $request->getContent(), config('services.cal.webhook_secret'));
    if (!hash_equals($signature, $request->header('X-Cal-Signature-256'))) {
        abort(401);
    }

    $payload = $request->json();

    match($payload['triggerEvent']) {
        'BOOKING_CREATED'   => CrmLead::createFromCal($payload['payload']),
        'BOOKING_CANCELLED' => CrmLead::cancelFromCal($payload['payload']['uid']),
        default             => null,
    };

    return response('ok');
});

Timeline

Cal.com integration (cloud) with widget and webhook: 2–3 working days. Self-hosted + custom branding: 4–5 days.