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

complete-react-tools

v0.0.2

Published

Primitivas headless, ultra-ligeras y tipadas para React.

Readme

Complete React tools

Build Status License: MIT types tree-shaking TypeScript

🚀 Primitivas React headless, ultra-ligeras y completamente tipadas

Colección de hooks y componentes sin dependencias diseñados para resolver problemas comunes en aplicaciones React modernas. Cada package está optimizado para performance, bundle size y developer experience.

✨ Características principales

  • 🪶 Ultra-ligeros: <3KB cada package (gzipped)
  • 🎯 Headless: Sin estilos predefinidos, máxima personalización
  • 📦 Tree-shakable: Solo importa lo que usas
  • 🛡️ Type-safe: 100% TypeScript con tipos completos
  • SSR-ready: Compatible con Next.js, Remix, etc.
  • 🔋 Sin dependencias: No añaden peso extra a tu bundle
  • 🎨 API consistente: Mismo patrón de uso en todos los packages

📦 Packages disponibles

| Package | Descripción | Tamaño | npm | | -------------------------------------------------------- | --------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | complete-react-url-state | Estado sincronizado con la URL (querystring) | <2 kB | npm | | complete-react-storage | Estado sincronizado con localStorage/sessionStorage | <1.5 kB | npm | | complete-react-intersect | Hook IntersectionObserver simple y optimizado | <1 kB | npm | | complete-react-toast | Sistema de toasts dinámico y accesible | <3 kB | npm |

🚀 Instalación rápida

Cada package se puede instalar independientemente:

# Estado en URL
npm install complete-react-url-state

# Persistencia en storage
npm install complete-react-storage

# Intersection Observer
npm install complete-react-intersect

# Sistema de toasts
npm install complete-react-toast

💡 Ejemplos de uso

🔗 URL State - Filtros de búsqueda

import { useUrlState } from 'complete-react-url-state';

function SearchPage() {
  const [filters, setFilters] = useUrlState({
    q: '',
    category: 'all',
    page: 1
  });

  return (
    <div>
      <input
        value={filters.q}
        onChange={(e) => setFilters({ q: e.target.value, page: 1 })}
        placeholder="Buscar..."
      />
      {/* URL se actualiza automáticamente: ?q=react&category=all&page=1 */}
    </div>
  );
}

💾 Storage - Configuración persistente

import { useStorage } from 'complete-react-storage';

function UserSettings() {
  const [theme, setTheme] = useStorage('theme', 'light', {
    ttl: 7 * 24 * 60 * 60 * 1000, // 7 días
    crossTab: true // Sincroniza entre pestañas
  });

  return (
    <button onClick={() => setTheme(theme === 'light' ? 'dark' : 'light')}>
      Tema: {theme}
    </button>
  );
}

👁️ Intersection - Lazy loading

import { useInView } from 'complete-react-intersect';

function LazyImage({ src, alt }) {
  const [ref, inView] = useInView({ once: true });

  return (
    <div ref={ref}>
      {inView ? (
        <img src={src} alt={alt} />
      ) : (
        <div className="skeleton" />
      )}
    </div>
  );
}

🍞 Toast - Notificaciones

import { ToastProvider, useToast } from 'complete-react-toast';

function App() {
  return (
    <ToastProvider>
      <MyComponent />
    </ToastProvider>
  );
}

function MyComponent() {
  const toast = useToast();

  const handleSave = async () => {
    try {
      await saveData();
      toast.success('¡Guardado exitosamente!');
    } catch (error) {
      toast.error('Error al guardar');
    }
  };

  return <button onClick={handleSave}>Guardar</button>;
}

🎯 ¿Por qué Complete React tools?

📊 Comparación con alternativas

| Característica | Complete React | Otras librerías | | -------------- | ---------------- | ------------------- | | Bundle size | <3KB por package | 5-15KB típico | | Dependencies | ❌ Zero deps | ⚠️ Múltiples deps | | TypeScript | ✅ Nativo | ⚠️ Tipos opcionales | | Tree-shaking | ✅ Completo | ⚠️ Parcial | | SSR Support | ✅ First-class | ⚠️ Problemático | | API Design | ✅ Consistente | ⚠️ Fragmentado |

🎨 Filosofía de diseño

  • Simplicidad: APIs intuitivas que siguen las convenciones de React
  • Composabilidad: Cada hook hace una cosa y la hace bien
  • Performance: Optimizaciones internas para minimizar re-renders
  • Flexibilidad: Headless por defecto, personalizable al 100%

🛠️ Desarrollo

Configuración del monorepo

# Instalar dependencias
pnpm install

# Build todos los packages
pnpm -r build

# Ejecutar tests
pnpm -r test

# Ejecutar tests en modo watch
pnpm -r test:watch

# Linting
pnpm -r lint

Estructura del proyecto

packages/
├── react-url-state/     # Sincronización con URL
├── react-storage/       # Persistencia en storage
├── react-intersect/     # Intersection Observer
└── react-toast/         # Sistema de toasts

demos/                   # Ejemplos de uso
├── demo-url-state/
├── demo-storage/
├── demo-intersect/
└── demo-toast/

🔗 Recursos

🤝 Contribuir

¡Las contribuciones son bienvenidas! Por favor:

  1. Fork el repositorio
  2. Crea una branch feature (git checkout -b feature/amazing-feature)
  3. Commit tus cambios (git commit -m 'Add amazing feature')
  4. Push a la branch (git push origin feature/amazing-feature)
  5. Abre un Pull Request

Guidelines

  • Añade tests para nuevas funcionalidades
  • Mantén la cobertura de tests >90%
  • Sigue las convenciones de TypeScript
  • Actualiza la documentación correspondiente

📄 Licencia

MIT © Nacho Rodríguez Sanz

🌟 ¿Te gusta el proyecto?

Si estos packages te son útiles, considera:

  • ⭐ Dar una estrella al repositorio
  • 🐛 Reportar bugs o sugerir mejoras
  • 📢 Compartir con la comunidad
  • 🤝 Contribuir con código