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

@tunghtml/strapi-plugin-time-slot-picker

v1.1.0

Published

A Strapi custom field plugin for selecting time slots across multiple dates with an intuitive UI

Readme

Strapi Plugin Time Slot Picker

A custom field plugin for Strapi v5 that allows users to select time slots across multiple dates with an intuitive and beautiful UI.

Time Slot Picker License

Features

  • 🎯 Visual Time Slot Selection - Intuitive UI for selecting time slots
  • 📅 Multi-Date Support - Select slots across multiple dates
  • Morning/Afternoon Grouping - Organized slot layout
  • 🎨 Strapi Design System - Consistent with Strapi's UI
  • 💾 JSON Storage - Clean data structure
  • ⚙️ Configurable - Customize time slots via Content Type Builder

Installation

npm install @tunghtml/strapi-plugin-time-slot-picker

or

yarn add @tunghtml/strapi-plugin-time-slot-picker

Configuration

Add the plugin to your config/plugins.js:

module.exports = {
  // ...
  "time-slot-picker": {
    enabled: true,
    resolve: "./node_modules/@tunghtml/strapi-plugin-time-slot-picker",
  },
};

Usage

1. Add Field to Content Type

  1. Go to Content-Type Builder
  2. Select a content type or create a new one
  3. Click Add another field
  4. Select Custom tab
  5. Choose Time Slot Picker
  6. Configure the field name
  7. Click Finish and Save

2. Configure Time Slots (Optional)

In the Advanced Settings of the field, you can configure:

Morning Slots (one per line):

8:00-9:00
9:00-10:00
10:00-11:00
11:00-12:00
12:00-13:00

Afternoon Slots (one per line):

13:00-14:00
14:00-15:00
15:00-16:00
16:00-17:00
17:00-18:00

If not configured, default slots will be used.

3. Use in Content Manager

When creating/editing entries:

  • Use the date picker to select a date
  • Click "Add Date" to add it
  • Select time slots by clicking on them
  • Use the checkbox in the header to select all slots for a date
  • Click the trash icon to remove a date

Data Structure

The plugin stores data in JSON format:

{
  "days": [
    {
      "date": "2026-06-18",
      "slots": ["8:00-9:00", "9:00-10:00", "11:00-12:00"]
    },
    {
      "date": "2026-06-19",
      "slots": ["13:00-14:00", "14:00-15:00"]
    }
  ]
}

API Usage

// GET request
const response = await fetch("/api/your-content-type/1");
const data = await response.json();

// Access time slots
const timeSlots = data.data.attributes.yourFieldName;
console.log(timeSlots.days); // Array of days with selected slots

Requirements

  • Strapi v5.0.0 or higher
  • Node.js 18.x or higher
  • React 18.x or higher

License

MIT

Author

Tung Le (@tunghtml)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Issues

If you encounter any issues, please report them at: https://github.com/finnwasabi/strapi-plugin-time-slot-picker/issues