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

bakery-planner

v0.4.0

Published

Baker planner

Readme

Bakery Planner

A web component built with Lit for planning bakery production schedules. It displays a grid-based timeline of production steps for baked goods (e.g., Baguettes, Croissants) and allows users to add, edit, or delete steps interactively.

Features

  • Displays a time-based grid showing production steps for multiple baked goods.
  • Supports interactive editing of steps (e.g., Petrissage, Autolyse, Cuisson) with a form.
  • Configurable start time and production data via properties.
  • Read-only mode for viewing schedules without editing.
  • Responsive design with customizable styles.

Installation

  1. Ensure you have a JavaScript project with a module bundler (e.g., Vite, Webpack).
  2. Install the required dependencies:
npm install lit
  1. Copy the bakery-planner component files (including bakery-planner.ts, lib/styles.ts, lib/form.ts, and lib/interface.ts) into your project.

  2. Import and use the component in your application:

import './path/to/bakery-planner.ts';

Usage

Add the <bakery-planner> custom element to your HTML and configure it with attributes or properties.

Example

<bakery-planner startTime="04:00" readOnly></bakery-planner>

Or programmatically in JavaScript:

const planner = document.createElement('bakery-planner');
planner.startTime = '04:00';
planner.readOnly = true;
planner.productions = [
  {
    name: 'Baguettes',
    start: 2,
    steps: [
      {letter: 'P', cases: 1},
      {letter: 'A', cases: 3},
      {letter: 'C', cases: 3},
    ],
  },
  {
    name: 'Croissants',
    start: 3,
    steps: [
      {letter: 'P', cases: 1},
      {letter: 'B', cases: 1},
    ],
  },
];
document.body.appendChild(planner);

Properties

| Property | Type | Default | Description | | ------------- | -------------- | --------- | ------------------------------------------ | | readOnly | boolean | false | If true, disables editing features. | | startTime | string | '04:00' | Start time for the grid (format: HH:mm). | | productions | Production[] | See code | Array of production objects with steps. |

Production Object

Each production object in the productions array has the following structure:

interface Production {
  name: string; // Name of the baked good (e.g., "Baguettes")
  start: number; // Starting slot index
  steps: Step[]; // Array of steps
}

interface Step {
  letter: BakeryStep | null; // Step identifier (e.g., 'P' for Petrissage)
  cases: number; // Duration in 15-minute slots
}

Development

Prerequisites

  • Node.js and npm
  • A modern browser
  • Familiarity with Lit and TypeScript

Running Locally

  1. Clone the repository or copy the component files.
  2. Install dependencies:
npm install
  1. Start a development server (e.g., using Vite):
npm run dev

Building

To build the component for production:

npm run build

Notes

  • Ensure the bakery-form component (lib/form.ts) is properly implemented, as it is referenced in the code.
  • Styles are defined in lib/styles.ts and applied via Lit's static styles property.
  • The grid assumes 15-minute time slots, with 7.5 hours of total duration (30 slots).

Contributing

Contributions are welcome! Please submit a pull request or open an issue for bugs, feature requests, or improvements.

License

MIT License