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

@oneie/plugin-booking

v0.1.0

Published

ONE booking — appointment scheduling widget served from one.ie, Google Calendar + email confirmations

Readme

@oneie/plugin-booking

ONE booking widget — appointment scheduling served from one.ie. Google Calendar sync and email confirmations handled server-side. Zero booking source code ships to your repo.

Install

npm install @oneie/plugin-booking

one.config.ts

import { defineOne } from '@oneie/frontend'
import { booking } from '@oneie/plugin-booking'

export default defineOne({
  plugins: [
    booking({
      ws: 'my-workspace',
      agent: 'my-booking-agent',
      duration: 30,
      calendar: 'google',
      confirmEmail: true,
    }),
  ],
})

Usage

Full booking flow — OneBooking

Drop the full booking widget onto any page. Handles slot selection, form capture, calendar write, and confirmation email in one flow.

---
import { OneBooking } from '@oneie/plugin-booking/OneBooking.astro'
---

<OneBooking
  ws="my-workspace"
  agent="my-booking-agent"
  duration={30}
  calendar="google"
  confirmEmail={true}
/>

Inline availability checker — OneAvailability

Lighter widget showing open slots for a specific date. Useful for embedding a day-view picker inline before redirecting to the full booking flow.

---
import OneAvailability from '@oneie/plugin-booking/OneAvailability.astro'
---

<OneAvailability
  ws="my-workspace"
  date="2026-07-01"
  duration={30}
/>

date defaults to today when omitted.

Example booking page

---
// src/pages/book.astro
import Layout from '@/layouts/Layout.astro'
import OneBooking from '@oneie/plugin-booking/OneBooking.astro'
---

<Layout title="Book a call">
  <main class="max-w-xl mx-auto py-16 px-4">
    <h1 class="text-2xl font-semibold mb-8">Book a call</h1>
    <OneBooking
      ws="acme"
      agent="sales"
      duration={30}
      calendar="google"
      confirmEmail={true}
    />
  </main>
</Layout>

ONE workspace setup

Before the widget will show real availability, connect Google Calendar in your workspace settings:

  1. Go to one.ie → your workspace → Settings → Integrations.
  2. Connect Google Calendar and grant read/write access.
  3. Optionally connect an email provider for confirmation emails.
  4. Set your availability hours and buffer time in Settings → Booking.

The widget reads availability and writes confirmed appointments entirely server-side — your Google credentials never touch the browser.

Options

| Prop | Type | Default | Description | |------|------|---------|-------------| | ws | string | — | Workspace slug (required) | | agent | string | — | Agent slug to handle the booking flow | | duration | number | 30 | Appointment duration in minutes | | calendar | 'google' \| 'ical' \| 'both' | 'google' | Calendar integration | | timezone | string | browser timezone | IANA timezone string | | confirmEmail | boolean | true | Send confirmation email to the booker | | endpoint | string | — | Override the default API endpoint | | integrity | string | — | SRI hash for version pinning |

Subresource Integrity (SRI)

Pin a specific widget version and verify its integrity:

<OneBooking
  ws="my-workspace"
  integrity="sha384-<hash>"
/>

Generate the hash after downloading the pinned script:

curl -s https://one.ie/b/[email protected] | openssl dgst -sha384 -binary | openssl base64 -A