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

@san.devv/sandev-react-calendar

v1.0.5

Published

A **highly customizable React calendar component** designed for productivity apps, attendance tracking, and event management. It features **dynamic day/week views**, time overlays, and modal integrations — all built using **React, TypeScript, Bootstrap**,

Readme

📅 sandev-react-calendar

A highly customizable React calendar component designed for productivity apps, attendance tracking, and event management. It features dynamic day/week views, time overlays, and modal integrations — all built using React, TypeScript, Bootstrap, and date-fns.

sandev-react-calendar banner

✨ Features

  • 🗓️ Day/Week View Switching
    Toggle between detailed daily and weekly timelines.

  • 🎯 Time-Slot Overlay Support
    Highlight time ranges with customizable overlays (great for meetings/schedules).

  • 🎨 Attendance Color Coding
    Apply background color per day to represent status (present, absent, etc.).

  • 💬 Modal Integration
    Easily connect modals for event details, attendance notes, or editing.

  • 🔧 Developer-Friendly & Reusable
    Modular design, TypeScript types, and Bootstrap support for quick integration.

  • 🚀 How to use?
    Pass the your data from events(props).

        <Calendar
            events={attendance}
            setSelectedEvent={setSelectedEvent}
            setShowEventModal={setShowEventModal}
        />
    
  • 📌 Events JSON example

    [{
      id: "1",
      title: "Hackathon",
      date: "2025-07-11",
      endDate: "2025-07-13",
      startTime: "10:00",
      endTime: "17:00",
      badgeColor: "bg-danger",
      description: "3-day coding challenge",
    },...]
    
  • 📅 Attendance JSON example

    [{
      id: "1",
      date: "2025-07-01",
      dayColor: "#ecfda3ff",
      type: "attendance",
      inTime: "10:00",
      outTime: "17:23",
      totalHrs: "8:50",
      description: "Full",
    },...]
    
  • 💬 Sample Modal Code
    You can customize "View Event Details Modal" as you want.

    const [selectedEvent, setSelectedEvent] = useState<Event | null>(null);
    const [showEventModal, setShowEventModal] = useState(false);
    
    return (
            {/* Modal (example) */}
          {showEventModal && selectedEvent && (
            <>
              <div
                className="modal fade show d-block"
                id="kt_modal_add_user"
                role="dialog"
                tabIndex={-1}
                aria-modal="true"
              >
                <div className="modal-dialog">
                  <div className="modal-content">
                    <div className="modal-header py-3">
                      <div className="fw-bolder">
                        <h2>{selectedEvent.title || "Attendance"}</h2>
                      </div>
                      <div
                        className="btn btn-icon btn-sm btn-active-icon-primary"
                        data-kt-users-modal-action="close"
                        onClick={() => setShowEventModal(false)}
                        style={{ cursor: "pointer" }}
                      >
                        <KTIcon iconName="cross" className="fs-1" />
                      </div>
                    </div>
                    <div className="modal-body">
                      <p>
                        <strong>Date:</strong>{" "}
                        {format(parseISO(selectedEvent.date), "MMMM d, yyyy")}
                      </p>
                      {selectedEvent.startTime && (
                        <p>
                          <strong>Time:</strong> {selectedEvent.startTime} -{" "}
                          {selectedEvent.endTime}
                        </p>
                      )}
                      {selectedEvent.description && (
                        <p>
                          <strong>Description:</strong>{" "}
                          {selectedEvent.description}
                        </p>
                      )}
                    </div>
                    <div className="modal-footer py-3">
                      <button
                        type="button"
                        className="btn btn-sm btn-secondary"
                        onClick={() => setShowEventModal(false)}
                      >
                        Close
                      </button>
                    </div>
                  </div>
                </div>
              </div>
              <div className="modal-backdrop fade show"></div>
            </>
          )}
    )
    

📦 Installation

npm install "@san.devv/sandev-react-calendar"