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

@manufosela/marked-calendar

v2.0.0

Published

Interactive calendar web component for tracking moods, habits, or marking dates

Readme

@manufosela/marked-calendar

Interactive calendar web component for tracking moods, habits, or marking dates. Built with Lit.

Installation

npm install @manufosela/marked-calendar

Usage

import '@manufosela/marked-calendar';
<marked-calendar
  name="My Year Tracker"
  save-data
  weekends
  change-view
></marked-calendar>

Features

  • Year and month views
  • Customizable legend/mood colors
  • LocalStorage persistence
  • Weekend highlighting
  • Holiday support
  • Multi-language (English/Spanish)
  • Keyboard accessible
  • CSS custom properties for theming

Attributes

| Attribute | Type | Default | Description | | ------------- | ------- | ---------------- | -------------------------------- | | name | String | Year in Pixels | Calendar title | | lang | String | en | Language: en or es | | view | String | year | View mode: year or month | | year | Number | Current year | Display year | | month | Number | Current month | Display month (0-11) | | save-data | Boolean | false | Enable interactive mode | | weekends | Boolean | false | Highlight/block weekends | | change-view | Boolean | true | Allow view switching |

Methods

| Method | Description | | -------------------------- | ---------------------------------- | | setMarkedDays(days) | Set marked days programmatically | | getMarkedDays() | Get all marked days | | clearData() | Clear all marked days |

Events

| Event | Detail | Description | | ---------------------------- | ----------------------------- | ------------------------ | | marked-calendar-change | { year, month, day, value } | Fired when day is marked | | marked-calendar-view-change| { view, year, month } | Fired on view change |

Custom Legend

Define custom colors and labels:

<marked-calendar save-data>
  <ul id="legend">
    <li code="#22c55e" label="✓">Completed</li>
    <li code="#ef4444" label="✗">Missed</li>
    <li code="#f59e0b" label="½">Partial</li>
  </ul>
</marked-calendar>

Holidays

Define holidays that will be blocked:

<marked-calendar save-data weekends>
  <ul id="holidays">
    <li title="New Year">1/1</li>
    <li title="Christmas">25/12</li>
    <li title="Labor Day">1/5</li>
  </ul>
</marked-calendar>

Programmatic Usage

const calendar = document.querySelector('marked-calendar');

// Set marked days
calendar.setMarkedDays([
  { day: '1/1', value: 1 },
  { day: '2/1', value: 2 },
  { day: '15/3', value: 3 }
]);

// Get marked days
const days = calendar.getMarkedDays();
console.log(days);

// Clear all
calendar.clearData();

// Listen for changes
calendar.addEventListener('marked-calendar-change', (e) => {
  console.log('Day marked:', e.detail);
});

CSS Custom Properties

| Property | Default | Description | | ------------------- | ---------- | ------------------ | | --calendar-bg | #f8fafc | Background color | | --calendar-border | #e2e8f0 | Border color | | --cell-size | 1.25rem | Day cell size |

Views

Year View (default)

Shows all 12 months in a compact grid. Click month letters to switch to month view.

Month View

Traditional calendar grid with weekday headers. Navigate between months with arrows.

Default Legend

| Color | Label | Title | | ------- | ----- | ------ | | White | ✕ | Clear | | Green | 😃 | Great | | Blue | 😊 | Good | | Gray | 😐 | Okay | | Orange | 😕 | Meh | | Red | 😢 | Bad |

License

Apache-2.0