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

@onweb/react-lunar-calendar-fr

v0.0.7

Published

Un composant React pour afficher un calendrier lunaire en français avec les phases de la lune et des conseils quotidiens.

Downloads

6

Readme

React Lunar Calendar (FR)

Un composant React pour afficher un calendrier lunaire en français avec les phases de la lune et des conseils quotidiens.

Installation

npm install @onweb/react-lunar-calendar-fr

Configuration Supabase

  1. Créez un projet sur Supabase
  2. Ajoutez les variables d'environnement suivantes à votre projet :
VITE_SUPABASE_URL=votre_url_supabase
VITE_SUPABASE_ANON_KEY=votre_clé_anon_supabase
  1. Exécutez la migration SQL suivante dans votre projet Supabase :
CREATE TABLE IF NOT EXISTS user_profiles (
  id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
  user_id uuid REFERENCES auth.users NOT NULL,
  name text NOT NULL,
  birth_date date NOT NULL,
  created_at timestamptz DEFAULT now(),
  updated_at timestamptz DEFAULT now()
);

ALTER TABLE user_profiles ENABLE ROW LEVEL SECURITY;

CREATE POLICY "Users can read own profile"
  ON user_profiles FOR SELECT
  TO authenticated
  USING (auth.uid() = user_id);

CREATE POLICY "Users can create own profile"
  ON user_profiles FOR INSERT
  TO authenticated
  WITH CHECK (auth.uid() = user_id);

CREATE POLICY "Users can update own profile"
  ON user_profiles FOR UPDATE
  TO authenticated
  USING (auth.uid() = user_id)
  WITH CHECK (auth.uid() = user_id);

CREATE OR REPLACE FUNCTION update_updated_at_column()
RETURNS TRIGGER AS $$
BEGIN
  NEW.updated_at = now();
  RETURN NEW;
END;
$$ language 'plpgsql';

CREATE TRIGGER update_user_profiles_updated_at
  BEFORE UPDATE ON user_profiles
  FOR EACH ROW
  EXECUTE FUNCTION update_updated_at_column();

Configuration Tailwind CSS

  1. Assurez-vous d'avoir Tailwind CSS installé dans votre projet :
npm install -D tailwindcss postcss autoprefixer
  1. Créez ou mettez à jour votre fichier tailwind.config.js :
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './src/**/*.{js,jsx,ts,tsx}',
    './node_modules/@onweb/react-lunar-calendar-fr/dist/**/*.{js,jsx,ts,tsx}'
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
  1. Importez les styles du package dans votre fichier CSS principal :
@import '@onweb/react-lunar-calendar-fr/dist/style.css';

@tailwind base;
@tailwind components;
@tailwind utilities;

Utilisation

Composant autonome

import { LunarCalendar } from '@onweb/react-lunar-calendar-fr';

function App() {
  return (
    <LunarCalendar 
      showHomeLink={true} // Optionnel: affiche/masque le lien d'accueil
      homePath="/" // Optionnel: chemin du lien d'accueil
      className="" // Optionnel: classes CSS additionnelles
    />
  );
}

Application complète avec routage

import { LunarApp } from '@onweb/react-lunar-calendar-fr';

function App() {
  return (
    <LunarApp calendarPath="/mon-calendrier" /> // Le chemin par défaut est "/calendrier"
  );
}

Prérequis

Ce package nécessite les dépendances suivantes dans votre projet :

  • react
  • react-dom
  • react-router-dom
  • @supabase/supabase-js
  • lucide-react
  • tailwindcss
  • postcss
  • autoprefixer

Props

LunarCalendar

| Prop | Type | Default | Description | |------|------|---------|-------------| | showHomeLink | boolean | true | Affiche ou masque le lien de retour à l'accueil | | homePath | string | "/" | Chemin du lien de retour à l'accueil | | className | string | "" | Classes CSS additionnelles pour le conteneur principal |

LunarApp

| Prop | Type | Default | Description | |------|------|---------|-------------| | calendarPath | string | "/calendrier" | Chemin d'accès au calendrier lunaire |

Fonctionnalités

  • Authentification utilisateur avec Supabase
  • Stockage des profils utilisateurs dans Supabase
  • Affichage de la phase lunaire actuelle
  • Navigation entre les jours
  • Calcul de l'illumination lunaire
  • Conseils quotidiens basés sur la phase de la lune
  • Interface en français
  • Design responsive et moderne
  • Intégration avec TailwindCSS
  • Routage configurable

License

MIT