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

magalu-mcp-dashboard

v0.1.0

Published

Dashboard for Magalu MCP Server

Readme

Magalu Dashboard

Dashboard web para gerenciar todas as funcionalidades da API Magalu Marketplace.

Tecnologias

  • ⚡ Vite
  • ⚛️ React 18
  • 📘 TypeScript
  • 🎨 Tailwind CSS
  • 🧩 shadcn/ui
  • 🔄 React Query
  • 🛣️ React Router

Funcionalidades

📦 Produtos

  • Listar todos os SKUs
  • Criar novos produtos
  • Editar produtos existentes
  • Gerenciar preços
  • Controlar estoque
  • Visualizar scores de otimização

📋 Pedidos

  • Listar pedidos
  • Filtrar por status
  • Ver detalhes de pedidos
  • Gerenciar entregas
  • Consultar notas fiscais

🎫 SAC

  • Listar tickets de atendimento
  • Filtrar por status
  • Ver detalhes de tickets
  • Atualizar status

❓ Perguntas & Respostas

  • Listar perguntas de clientes
  • Filtrar por status (respondidas/não respondidas)
  • Responder perguntas
  • Filtrar por produto

💬 Chat com Cliente

  • Listar conversas ativas
  • Ver histórico de mensagens
  • Enviar mensagens
  • Filtrar por status

⚙️ Configurações

  • Configurar API Key
  • Configurar Seller ID
  • Alternar entre Sandbox e Production

Instalação

cd Magalu/dashboard
npm install

Configuração

Crie um arquivo .env baseado no .env.example:

cp .env.example .env

Edite o .env:

VITE_API_URL=https://sandbox.api.magalu.com

Desenvolvimento

npm run dev

O dashboard estará disponível em http://localhost:5173

Build para Produção

npm run build

Os arquivos otimizados estarão na pasta dist/.

Preview da Build

npm run preview

Estrutura do Projeto

dashboard/
├── src/
│   ├── components/
│   │   ├── ui/           # Componentes shadcn/ui
│   │   └── Layout.tsx    # Layout principal
│   ├── pages/
│   │   ├── Products.tsx      # Página de produtos
│   │   ├── Orders.tsx        # Página de pedidos
│   │   ├── Tickets.tsx       # Página de SAC
│   │   ├── Questions.tsx     # Página de perguntas
│   │   ├── Conversations.tsx # Página de chat
│   │   └── Settings.tsx      # Página de configurações
│   ├── lib/
│   │   ├── api.ts        # Cliente HTTP
│   │   └── utils.ts      # Utilitários
│   ├── App.tsx           # Componente principal
│   ├── main.tsx          # Entry point
│   └── index.css         # Estilos globais
├── index.html
├── vite.config.ts
├── tailwind.config.js
└── package.json

Uso

  1. Acesse a página de Configurações
  2. Configure sua API Key e Seller ID
  3. Escolha o ambiente (Sandbox ou Production)
  4. Salve as configurações
  5. Navegue pelas diferentes seções usando o menu lateral

Credenciais

As credenciais são armazenadas no localStorage do navegador:

  • magalu_token - API Key
  • magalu_seller_id - Seller ID
  • magalu_env - Ambiente (sandbox/production)

Endpoints da API

Todos os endpoints seguem o padrão da API Magalu:

  • Produtos: /v1/portfolio/skus
  • Pedidos: /v1/orders
  • SAC: /v1/sac/tickets
  • Perguntas: /v1/questions
  • Chat: /v1/conversations

Customização

Cores

Edite as variáveis CSS em src/index.css para personalizar o tema.

Componentes

Os componentes UI estão em src/components/ui/ e podem ser customizados conforme necessário.

Troubleshooting

Erro de CORS

Configure o CORS no backend ou use um proxy durante o desenvolvimento.

Credenciais inválidas

Verifique se a API Key e Seller ID estão corretos na página de Configurações.

Ambiente incorreto

Certifique-se de estar usando o ambiente correto (Sandbox para testes).

Licença

MIT