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

@kanaksan/tamil-calendar-widget

v0.0.5

Published

A reusable React widget for displaying Tamil daily calendar sheets

Readme

Tamil Calendar Widget

A beautiful, lightweight React component for displaying Tamil daily calendar sheets as images.

Features

🎯 Simple Integration - Just one prop for API URL and date
🚀 Smart Caching - Automatic image caching to minimize API calls
Fast Loading - Optimized blob URL handling for better performance
🛡️ Error Handling - Comprehensive error states with meaningful messages
📱 Responsive - Works on all screen sizes
🎨 Customizable - Easy styling with CSS classes and inline styles
📦 Lightweight - Minimal bundle size with zero dependencies
🔒 TypeScript - Full TypeScript support with detailed type definitions

Installation

npm install @kanaksan/tamil-calendar-widget

Quick Start

import React from 'react';
import { TamilCalendarWidget } from '@kanaksan/tamil-calendar-widget';

function App() {
  return (
    <div>
      <h1>Tamil Calendar</h1>
      <TamilCalendarWidget 
        apiUrl="<api-url>"
        date="2025-02-22"
        width={400}
      />
    </div>
  );
}

Getting API Access

To use this widget, you need access to the Tamil Calendar API:

📧 Contact: [email protected]
🌐 Website: https://tamilcalendarwidget.netlify.app/

API Access Tiers:

  • Free Tier: 100 requests/day
  • Pro Tier: 1000 requests/day + historical data
  • Enterprise: Unlimited + custom features

Props

| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | apiUrl | string | ✅ | - | Complete API URL with authentication | | date | string | ✅ | - | Date in YYYY-MM-DD format | | width | number | ❌ | 400 | Image width in pixels | | height | number | ❌ | auto | Image height in pixels | | alt | string | ❌ | "Tamil Daily Calendar" | Alt text for accessibility | | className | string | ❌ | "" | Additional CSS class | | style | CSSProperties | ❌ | {} | Inline styles for container | | onLoad | function | ❌ | - | Callback when image loads | | onError | function | ❌ | - | Callback when error occurs | | showLoader | boolean | ❌ | true | Show loading indicator | | loaderComponent | ReactNode | ❌ | - | Custom loading component | | errorComponent | ReactNode | ❌ | - | Custom error component |

Advanced Usage

Custom Styling

<TamilCalendarWidget 
  apiUrl="https://api.example.com/calendar?token=abc123"
  date="2025-02-22"
  className="my-calendar"
  style={{ borderRadius: '12px', boxShadow: '0 4px 12px rgba(0,0,0,0.15)' }}
/>

Error Handling

<TamilCalendarWidget 
  apiUrl="https://api.example.com/calendar?token=abc123"
  date="2025-02-22"
  onLoad={() => console.log('Calendar loaded successfully')}
  onError={(error) => console.error('Failed to load:', error.message)}
/>

Custom Loading and Error Components

<TamilCalendarWidget 
  apiUrl="https://api.example.com/calendar?token=abc123"
  date="2025-02-22"
  loaderComponent={<div>🔄 Loading your Tamil calendar...</div>}
  errorComponent={<div>❌ Calendar unavailable</div>}
/>

Caching

The widget automatically caches images for 24 hours to improve performance and reduce API calls. You can access the cache manager:

import { imageCache } from '@kanaksan/tamil-calendar-widget';

// Clear all cached images
imageCache.clearCache();

// Clean up expired entries
imageCache.cleanupExpired();

Error Messages

The component provides user-friendly error messages for common scenarios:

  • Network issues: "Network error: Unable to connect to the calendar service"
  • Authentication: "Authentication failed: Invalid API key or token"
  • Not found: "Calendar not found: No calendar available for the selected date"
  • Rate limiting: "Rate limit exceeded: Too many requests"
  • Server errors: "Server error: The calendar service is temporarily unavailable"

TypeScript Support

Full TypeScript definitions included:

import { TamilCalendarWidget, TamilCalendarWidgetProps } from '@kanaksan/tamil-calendar-widget';

const props: TamilCalendarWidgetProps = {
  apiUrl: "https://api.example.com/calendar?token=abc123",
  date: "2025-02-22",
  width: 500,
  onLoad: () => console.log('Loaded!')
};

Browser Support

  • Chrome 60+
  • Firefox 60+
  • Safari 12+
  • Edge 79+

License

MIT © calendar.kanaksan.com


For API access and support, please contact: [email protected]