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

@imperiohub/lp-templates

v0.2.6

Published

Centralized landing page templates for ImperioHub SaaS platform

Readme

@imperiohub/lp-templates

Versión actual: 0.2.4

Paquete centralizado de templates para landing pages del ecosistema ImperioHub SaaS.

📦 Instalación

npm install @imperiohub/lp-templates

🎯 ¿Qué es este paquete?

Un sistema unificado que proporciona:

  • Schemas de templates: Estructura de datos estandarizada
  • Validación con Zod: Validación runtime de contenido
  • Componentes React: UI pre-diseñada para renderizar landing pages
  • TypeScript types: Type safety completo en todo el ecosistema
  • Sistema de temas SCSS: Variables CSS customizables por landing

🚀 Guías de Uso

Para Backend (Node.js + Prisma)

Guía completa paso a paso para integrar los templates en tu backend:

👉 Guía de Backend

Incluye:

  • Instalación y setup inicial
  • Cómo crear/validar landing pages
  • Seeds de templates en Prisma
  • Validación de contenido con Zod
  • Manejo de errores
  • Testing

Para Frontend Cliente (React)

Guía para renderizar landing pages en aplicaciones de cliente:

👉 Guía de Cliente

Incluye:

  • Setup de estilos CSS/SCSS
  • Renderizar landing pages dinámicamente
  • Customización de temas
  • Server-side rendering (SSR)
  • Optimización de performance

📚 Estructura del Proyecto

@imperiohub/lp-templates/
├── dist/                      # Build output
│   ├── schemas/              # Schemas + validadores (sin React)
│   ├── components/           # Componentes React
│   ├── generator/            # Utilidades Prisma (sin React)
│   └── lp-templates.css      # Estilos compilados
├── docs/                     # Documentación
│   ├── README-BACKEND.md    # Guía para backend
│   └── README-CLIENTE.md    # Guía para frontend cliente
└── src/                      # Código fuente

🎨 Templates Disponibles

| Template | Slug | Descripción | |----------|------|-------------| | Menu Template | menu | Landing page para menús de restaurantes con categorías, items y precios | | Hero con Beneficios | servicios-hero-beneficios | Landing de servicios con título hero y lista de ventajas | | Home Page V1 | home-page-v1 | Home page genérica con bloques de navegación |

🔄 Exports Modulares

El paquete ofrece imports modulares para optimizar el bundle size:

// ✅ Solo schemas y validadores (SIN React - para Node.js)
import {
  menuTemplate,
  validateContent
} from '@imperiohub/lp-templates/schemas';

// ✅ Solo componentes React (CON React - para frontend)
import {
  MenuTemplate,
  TemplateRenderer
} from '@imperiohub/lp-templates/components';

// ✅ Solo generator para Prisma (SIN React - para seeds)
import {
  initializeTemplates
} from '@imperiohub/lp-templates/generator';

⚡ Quick Start

Backend (Validar contenido)

import { validateContent, menuTemplate } from '@imperiohub/lp-templates/schemas';

const content = {
  headerTitle: 'Mi Restaurante',
  headerSubtitle: 'Comida casera',
  // ... más campos
};

try {
  const validContent = validateContent(content, menuTemplate);
  // ✅ Content validado y tipado
} catch (error) {
  // ❌ Error de validación
  console.error(error.errors);
}

Frontend Cliente (Renderizar landing)

import '@imperiohub/lp-templates/dist/lp-templates.css';
import { TemplateRenderer } from '@imperiohub/lp-templates/components';

function LandingPage({ slug, content }) {
  return <TemplateRenderer templateSlug={slug} content={content} />;
}

🛠️ Scripts de Desarrollo

npm run build        # Compilar el paquete
npm run verify       # Verificar que el build es correcto
npm run typecheck    # Verificar tipos TypeScript
npm run lint         # Linter
npm run dev          # Modo desarrollo con Vite

📖 Documentación Completa

🆕 Changelog

v0.2.4 (Diciembre 2025)

  • ✅ Reestructuración de documentación en carpeta docs/
  • ✅ README principal simplificado con links a guías específicas

v0.2.3 (Diciembre 2025)

  • FIX CRÍTICO: Archivos .d.ts intermedios ahora se copian correctamente
  • ✅ Script de verificación de build (npm run verify)
  • ✅ Generación correcta de todos los archivos de tipos

Ver changelog completo

🤝 Contribuir

Para agregar un nuevo template, consulta la sección "Crear un Nuevo Template" en la guía de backend.

📄 Licencia

MIT © ImperioHub