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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cesar-richard/projito-components

v1.1.3

Published

![Version](https://img.shields.io/npm/v/@cesar-richard/projito-components) ![License](https://img.shields.io/npm/l/@cesar-richard/projito-components) ![Downloads](https://img.shields.io/npm/dm/@cesar-richard/projito-components)

Downloads

1,102

Readme

Projito Components

Version License Downloads

Une bibliothèque React moderne pour afficher et suivre en temps réel les tâches GitHub de vos projets.

🚀 Fonctionnalités

  • 📊 Affichage des tâches GitHub par priorité (P0 à P3)
  • ⚡ Mises à jour en temps réel via WebSocket
  • 🎨 Thème personnalisable (Material-UI)
  • 🔄 Synchronisation automatique avec GitHub
  • 📱 Design responsive
  • 🌗 Mode sombre par défaut

📦 Installation

NPM

npm install @cesar-richard/projito-components

Yarn

yarn add @cesar-richard/projito-components

🔧 Configuration

Backend Requirements

Votre backend doit exposer :

  • Une API REST pour la récupération initiale des données
  • Un endpoint WebSocket pour les mises à jour en temps réel

Configuration minimale

import { ProjectDetailComponent } from '@cesar-richard/projito-components';
function App() {
return (
<ProjectDetailComponent
projectId="123"
backendUrl="https://your-api.com"
wsBackendUrl="wss://your-api.com"
/>
);
}

Configuration avancée

import { ProjectDetailComponent } from '@cesar-richard/projito-components';
import { createTheme } from '@mui/material';
const customTheme = createTheme({
palette: {
mode: 'light',
primary: {
main: '#1976d2',
},
},
});
function App() {
return (
<ProjectDetailComponent
projectId="123"
backendUrl="https://your-api.com"
wsBackendUrl="wss://your-api.com"
initialData={optionalInitialData}
theme={customTheme}
/>
);
}

📝 Props

| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | projectId | string | ✅ | - | ID du projet GitHub à afficher | | backendUrl | string | ❌ | https://projito.crichard.fr | URL de l'API backend | | wsBackendUrl | string | ❌ | wss://projito.crichard.fr | URL du WebSocket | | initialData | object | ❌ | null | Données initiales pour le rendu SSR | | theme | object | ❌ | darkTheme | Thème Material-UI personnalisé |

🔌 WebSocket Events

Le composant écoute les événements WebSocket suivants :

{
type: 'project_update',
project_id: string,
data: {
// Données du projet mises à jour
}
}

🎨 Personnalisation du thème

Le composant utilise Material-UI et peut être personnalisé via le prop theme :

const customTheme = createTheme({
palette: {
mode: 'dark',
primary: {
main: '#90caf9',
},
secondary: {
main: '#f48fb1',
},
},
});

🛠️ Développement

src/
├── lib/
│ ├── index.js # Point d'entrée principal
│ └── ProjectDetailComponent.jsx
├── components/
│ └── Issue.jsx # Composant de rendu des tâches
└── hooks/
└── useWebSocket.js # Hook de gestion WebSocket

🤝 Contribution

Les contributions sont les bienvenues ! N'hésitez pas à :

  1. Fork le projet
  2. Créer une branche (git checkout -b feature/amazing-feature)
  3. Commit vos changements (git commit -m 'feat: add amazing feature')
  4. Push sur la branche (git push origin feature/amazing-feature)
  5. Ouvrir une Pull Request

📄 Licence

MIT © César Richard

🙏 Remerciements