Embeddable booking widget for 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
    1215
  • 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
    1043
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    823
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Embeddable Booking Widget Implementation

Embeddable widget is independent booking system component placeable on any page via single <script> or <iframe> tag. Used when need to add service booking to landing, third-party site or blog without full development.

Two Embedding Approaches

iframe — isolated, secure, doesn't affect page styles. Downside: fixed height or need postMessaging for auto-height.

Web Component / script-inject — natively embedded in DOM, can use page fonts and colors. Requires CSS isolation caution.

iframe with postMessage for height passing recommended.

Embedding Code

Client inserts on their page:

<div id="booking-widget"></div>
<script>
  (function() {
    var iframe = document.createElement('iframe');
    iframe.src = 'https://booking.example.com/widget?service=haircut&theme=light';
    iframe.style.cssText = 'width:100%;border:0;min-height:600px';
    iframe.id = 'booking-iframe';

    window.addEventListener('message', function(e) {
      if (e.origin !== 'https://booking.example.com') return;
      if (e.data.type === 'resize') {
        iframe.style.height = e.data.height + 'px';
      }
    });

    document.getElementById('booking-widget').appendChild(iframe);
  })();
</script>

Widget Inside iframe

// Widget sends its height to parent page
function BookingWidget() {
  const containerRef = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const observer = new ResizeObserver(() => {
      const height = containerRef.current?.scrollHeight ?? 600;
      window.parent.postMessage({ type: 'resize', height }, '*');
    });
    if (containerRef.current) observer.observe(containerRef.current);
    return () => observer.disconnect();
  }, []);

  return (
    <div ref={containerRef} className="booking-widget-root">
      <BookingFlow />
    </div>
  );
}

URL Parameter Customization

?service=123         — specific service
?master=456          — specific specialist
?theme=light|dark    — color scheme
?accent=#4F46E5      — accent color
?locale=en           — language
?primary_color=...   — custom button color

Security

Widget accepts only POST from whitelisted domains. URL parameters used only for display settings, not authorization.

Timeframe

Widget with iframe embedding and URL parameter customization: 4–6 working days.