npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@garago/calendar

v1.0.3

Published

A React library for integrate a booking calendar linked to Garago

Readme

GaragoCalendar

React Library for Appointment Scheduling linked to Garago

Table of Contents


Introduction

GaragoCalendar is a 100% TypeScript React library designed to integrate an appointment scheduling calendar into your website. This solution is specifically developed to work with the Garago platform, which provides a secure API and administrative interface. Garages can embed the calendar directly on their site without managing the backend. Time slots are fixed at 30 minutes, Sundays are closed, and default text templates (labels, etc.) are provided in French, English, and Dutch.


Features

  • Fixed 30-Minute Time Slots:
    Appointments are offered in fixed 30-minute slots, with Sundays closed.

  • Interactive Calendar:
    Intuitive navigation using arrows and swipe gestures to select dates.

  • Complete Booking Form:
    Collects customer details (name, email, phone, brand, model, VIN, appointment type) with real-time validation.

  • Default Text Templates:
    Pre-configured texts and labels are provided for easy integration and internationalization (French, English, and Dutch).

  • Toast Notifications:
    Integrated toast notifications using sonner.
    Note: To use this feature, install the sonner package from shadcn/ui and include the <Toaster /> component in your global layout (e.g., in app/layout.tsx for Next.js).

  • API Key Authentication:
    Access to the Garago API is secured via an API key that the developer copies directly from the Garago platform.
    Note: The developer only needs to copy their API key from their Garago account and provide it via the apiKey prop.

  • Ready-to-Use Integration:
    Designed for React and Next.js with no additional backend configuration required on the client side.

Installation

Use npm, pnpm, or yarn to install the library:

# Using npm
npm install @garago/calendar

# Using pnpm
pnpm add @garago/calendar

# Using yarn
yarn add @garago/calendar

Usage

Integrating in a Next.js Project

The developer must copy the API key directly from their Garago account and provide it via the apiKey prop.

"use client";

import React from "react";
import { fr } from "date-fns/locale";
import GaragoCalendar from "@garago/calendar";

// The API key must be copied directly from your Garago account
const API_KEY = "YOUR_COPIED_API_KEY";

export default function BookingPage() {
  return (
    <div className="p-8">
      <GaragoCalendar withToaster locale={fr} apiKey={API_KEY} />
    </div>
  );
}

API Key Setup

The Garago platform generates a unique API key. Developers simply copy the API key from their Garago account and supply it to the component:


<GaragoCalendar withToaster locale={fr} apiKey="YOUR_API_KEY" />

No additional client-side configuration is necessary.

Toast Prerequisites

To use toast notifications, install the sonner package from shadcn/ui and include the <Toaster /> component in your global layout (e.g., in app/layout.tsx for Next.js).

Notifications

  • Client Notification: Garago automatically sends an email to the client to inform them that they will be contacted to confirm their appointment.
  • Owner Notification: The garage owner may also receive an email notification if configured in the Garago platform. Otherwise, notifications are only available within the Garago interface.

Props

Below is a detailed explanation of all the props that you can pass to the <GaragoCalendar /> component.

locale

  • Type: Locale (from date-fns)
  • Default: fr
  • Description: The locale object used to format dates in the calendar (e.g., for day names, month names).

translations

  • Type: { [code: string]: Translations }
  • Default: defaultTranslations
  • Description: Un objet qui associe des codes de langue (par exemple, "fr", "en", "nl") à un objet de traductions contenant les textes par défaut (titres, labels, messages, etc.) utilisés dans le calendrier.

appointmentTypes

  • Type: AppointmentTypesProp (either an array of objects or an object mapping locale codes to arrays)
  • Default: defaultTranslations.types
  • Description: Définit les types de rendez-vous disponibles. Il peut être fourni sous forme de tableau d'objets (chacun possédant les propriétés value et label) ou sous forme d'un objet qui associe des codes de langue à ces tableaux.

withToaster

  • Type: boolean
  • Default: false
  • Description: Lorsqu'il est défini sur true, les notifications toast seront activées (à l'aide de la librairie sonner).

apiKey

  • Type: string
  • Required: Yes
  • Description: La clé API que vous devez copier directement depuis votre compte Garago. Cette clé est utilisée pour authentifier les requêtes vers le backend Garago.

Additional Notes

  • If you choose to use a locale other than fr, en-US, or nl, you must provide both the translations and appointmentTypes props with the exact structure expected by the component.
  • The styles and theme are fixed (e.g., bg-orange, text-gray-800) and cannot currently be customized.

License

All rights reserved. This software is proprietary and may be used as-is for commercial or personal purposes, but modification of the source code is strictly prohibited without explicit permission from the owner.