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

memoria-dev-cli

v1.0.1

Published

CLI para sincronizar memórias de desenvolvimento - Memoria Bank

Downloads

192

Readme

Memoria CLI

CLI oficial para sincronizar memórias de desenvolvimento com o Memoria Bank.

Instalação

Via npm (recomendado)

npm install -g memoria-dev-cli

Via npx (sem instalar)

npx memoria-dev-cli <comando>

Instalação local

# Clone o repositório
git clone <repo-url>
cd cli

# Instale dependências
npm install

# Link global
npm link

Configuração

Após instalar, configure suas credenciais:

memoria login

Você precisará da sua API Key, disponível em: Configurações → Integrações → API Key

Comandos

Autenticação

# Configurar credenciais
memoria login

# Verificar status da conexão
memoria status

# Remover credenciais
memoria logout

Gerenciar Memórias

# Listar memórias
memoria list
memoria ls -n 20  # Mostrar 20 memórias

# Baixar todas as memórias
memoria pull                        # JSON
memoria pull -f claude -o context.md  # Formato Claude

# Criar nova memória (modo interativo)
memoria push -i

# Criar memória diretamente
memoria push -t "Implementar auth" -g "Sistema de login" --files "src/auth.ts"

# Criar com template
memoria push --template feature -t "sistema de notificações"
memoria push --template bugfix -t "login não funciona no Safari"

Templates

# Ver templates disponíveis
memoria templates

Templates:

  • feature - ✨ Nova Feature
  • bugfix - 🐛 Correção de Bug
  • refactor - 🔄 Refatoração
  • performance - ⚡ Otimização
  • security - 🔒 Segurança
  • docs - 📝 Documentação

Sincronização

# Sincronizar arquivo local com o servidor
memoria sync memories.json

# Exportar para Claude
memoria export -o CLAUDE_CONTEXT.md

Formato do arquivo de sync

[
  {
    "task": "Implementar autenticação",
    "goal": "Permitir login com email",
    "files": ["src/auth.ts", "src/components/Login.tsx"],
    "tags": ["auth", "feature"],
    "status": "completed"
  }
]

Integração com Git Hooks

Post-commit hook

# .git/hooks/post-commit
#!/bin/bash
COMMIT_MSG=$(git log -1 --pretty=format:"%s")
FILES=$(git diff-tree --no-commit-id --name-only -r HEAD | tr '\n' ',' | sed 's/,$//')

memoria push -t "$COMMIT_MSG" --files "$FILES" --tags "git-commit"

Pre-push hook

# .git/hooks/pre-push
#!/bin/bash
memoria pull -o .memoria-backup.json
echo "Memórias sincronizadas antes do push"

Workflow Recomendado

  1. Início do dia: memoria pull para ter contexto local
  2. Durante desenvolvimento: memoria push -i após cada tarefa
  3. Fim do dia: memoria export para backup
  4. Nova conversa com Claude: Use o arquivo exportado como contexto

Variáveis de Ambiente

# Alternativa ao comando login
export MEMORIA_API_KEY="sua-api-key"

Troubleshooting

"API key não configurada"

Execute memoria login e insira sua API key.

"Erro de conexão"

Verifique sua conexão com a internet e se a API key está correta.

"Permissão negada"

Verifique se você tem permissão de escrita no diretório atual.

Suporte

  • Documentação: https://docs.memoria.dev
  • Issues: https://github.com/memoria/cli/issues