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

@planetaexo/design-system

v0.58.0

Published

Componentes React compartilhados da PlanetaEXO. Gera **três** artefatos principais:

Readme

Design System — PlanetaEXO

Componentes React compartilhados da PlanetaEXO. Gera três artefatos principais:

  • Pacote npm (@planetaexo/design-system) — npm run build:lib (tsup) gera dist/ com ESM/CJS e tipos; exports em package.json; peer dependencies: react, react-dom. Consumo em outros apps (ex.: gestão de reservas) via file:../planetaexo-designsystem ou, quando publicado, versão semver no npm. O script prepare executa build:lib após npm install no clone local.
  • Servidor de desenvolvimento (Next.js) — para visualizar e desenvolver componentes em http://localhost:3000
  • Bundle WordPress (npm run build:wp) — dist/wp/planetaexo-trip-island.js + .css, consumido pelo plugin planetaexo-trip-island no repositório planetaexo-trips

O fluxo WordPress e o pacote npm partilham os mesmos componentes em src/components/; não é necessário runtime WordPress para consumir o pacote no Next.js.


Pré-requisitos

Node.js ≥ 18

Verifique:

node -v   # deve ser v18.x ou superior (recomendado: v20 LTS ou v22 LTS)
npm -v

Se não tiver Node instalado ou precisar gerenciar versões:

  • Windows: baixe o instalador LTS em https://nodejs.org/en/download
  • Alternativa (múltiplas versões): use nvm-windows ou Volta

Setup inicial (primeira vez)

# 1. Clone e entre na pasta
git clone <url-do-repositório>
cd planetaexo-designsystem

# 2. Instale as dependências
npm ci

Use npm ci (não npm install) para garantir as versões exatas travadas no package-lock.json.


Comandos

| Ação | Comando | |------|---------| | Servidor de desenvolvimento (Next.js) | npm run dev | | Biblioteca npm (dist/, para apps externos) | npm run build:lib | | Gerar bundle para WordPress | npm run build:wp | | Build completo (Next.js) | npm run build | | Lint | npm run lint |


Desenvolvimento de componentes

Inicie o servidor:

npm run dev

Acesse: http://localhost:3000

Os componentes ficam em src/components/. O servidor atualiza automaticamente ao salvar.


Gerar o bundle para WordPress

npm run build:wp

Artefatos gerados em dist/wp/:

dist/wp/
  planetaexo-trip-island.js
  planetaexo-trip-island.css
  fonts/               ← se existir, copie também

Copiar para o repositório WordPress

Após o build, copie os arquivos para o repositório planetaexo-trips:

dist/wp/planetaexo-trip-island.js   →  wp-content/plugins/planetaexo-trip-island/assets/trip-island/
dist/wp/planetaexo-trip-island.css  →  wp-content/plugins/planetaexo-trip-island/assets/trip-island/
dist/wp/fonts/ (se existir)         →  wp-content/plugins/planetaexo-trip-island/assets/trip-island/fonts/

Depois, registre o commit atual em wp-content/plugins/planetaexo-trip-island/DS-BUILD.md no repositório WordPress.


Estrutura relevante

src/
  components/         ← componentes React (BookingForm, TripHeader, TripPage…)
  lib/
    planetaexo-trip-data.ts       ← tipos TypeScript do payload WordPress
    wp-trip-payload-to-props.tsx  ← adaptador payload → props React
  wp-entries/
    trip-island.tsx   ← entry point do bundle WordPress (Vite)
dist/
  wp/                 ← saída do build:wp (não commitar; gerado localmente)

Integração com o WordPress

O contrato de dados completo (payload planetaexoTripData, campos ACF, mount point HTML) está documentado em HANDOFF.md neste repositório.

Guia do ambiente WordPress (Docker): veja o README.md do repositório planetaexo-trips.