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

@conorheffron/booking-sys-frontend

v3.5.3

Published

React + TypeScript frontend for Booking System

Readme

Booking System Frontend

Build and deploy container app to Azure Web App - booking-sys

Node.js CI

Node.js Package

  • See 'booking-sys-frontend' npmjs package at https://www.npmjs.com/package/@conorheffron/booking-sys-frontend
  • See 'booking-sys-frontend' GitHub package at https://github.com/conorheffron/booking-sys/pkgs/npm/booking-sys-frontend

This is the React + TypeScript frontend for the Booking System, migrated from traditional static assets and templates.

Prerequisites

  • Node.js (v24 (LTS) recommended)
  • npm (comes with Node.js 11)

Project Structure (Frontend Skeleton)

frontend
├── index.html
├── jest.config.js
├── package-lock.json
├── package.json
├── public
├── setupTests.ts
├── src
│   ├── assets
│   │   ├── favico.png
│   │   ├── icon.svg
│   │   └── robot-logo.png
│   ├── components
│   │   ├── Navbar.tsx
│   │   ├── Utils.tsx
│   │   ├── __mocks__
│   │   │   └── fileMock.js
│   │   ├── __tests__
│   │   │   ├── Navbar.test.tsx
│   │   │   ├── Utils.test.tsx
│   │   │   └── appVersionCache.test.tsx
│   │   └── appVersionCache.tsx
│   ├── css
│   │   └── style.css
│   ├── main.tsx
│   ├── pages
│   │   ├── BookingPage.tsx
│   │   ├── EditReservationPage.tsx
│   │   ├── ErrorPage.tsx
│   │   ├── ReservationsPage.tsx
│   │   └── __tests__
│   │       ├── BookingPage.test.tsx
│   │       ├── EditReservationPage.test.tsx
│   │       ├── ErrorPage.test.tsx
│   │       └── Reservationspage.test.tsx
│   └── styles
│       └── style.module.css
├── test.tsx
├── tsconfig.json
├── typings
│   └── custom
│       └── import-png.d.ts
└── vite.config.ts

Installation

  1. Navigate to the frontend directory:

    cd booking-sys/frontend
  2. Install dependencies:

    npm install

Running the Development Server

To start the frontend in development mode (with hot reloading):

npm run dev

This will start the app at http://localhost:5173 (or another port if 5173 is taken).

Building for Production

To create a production build:

npm run build

The optimized build will be output to the dist/ folder.

Preview the Production Build

After building, you can preview the production build locally:

npm run preview

Project Structure

  • src/ - React source code (components, pages, styles)
  • public/ - Static assets (images, favicon, etc.)

Environment Variables

If needed, copy .env.example to .env and update any environment variables.


Feel free to open issues or pull requests for improvements!

Frontend Tests

  1. Run all tests.
(base) frontend % npm run test

> [email protected] test
> jest

 PASS  ./test.tsx
 PASS  src/components/__tests__/Utils.test.tsx

Test Suites: 2 passed, 2 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        2.844 s
Ran all test suites.
  1. Run specific test suite for a compoenent (Utils.ts).

(base) frontend % npm run test -- frontend/src/components/__tests__/Utils.test.ts

> [email protected] test
> jest frontend/src/components/__tests__/Utils.test.ts

 PASS  src/components/__tests__/Utils.test.tsx
  getSlots
    ✓ should return all 30-minute intervals from 09:00 AM to 07:00 PM (inclusive) (4 ms)
    ✓ should return a fresh array each time (1 ms)
  getCSRFToken
    ✓ should fetch CSRF token from /api/csrf/ (4 ms)
    ✓ should throw if response is not as expected (1 ms)

Test Suites: 1 passed, 1 total
Tests:       4 passed, 4 total
Snapshots:   0 total
Time:        1.95 s
Ran all test suites matching /frontend\/src\/components\/__tests__\/Utils.test.ts/i.
  1. Run specific test by test name or title.
npm run test -- -t="calls fetchReservations again when Refresh button is clicked"
  1. Run all tests with coverage report.
npm run test -- --coverage