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

@drakonkat/neural-memory

v2.0.1

Published

MCP Server for Neural Memory - Unified memory with Session Management and Skills Framework

Readme

🧠 Neural Memory v2.0

Sistema MCP (Model Context Protocol) per memorizzazione e recupero contestuale della conoscenza.


🚀 Prova Neural Memory ORA!

Vuoi provarlo subito nel tuo Cline? Aggiungi questa configurazione al tuo cline_mcp_settings.json:

{
  "mcpServers": {
    "neural-memory": {
      "timeout": 120,
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@drakonkat/neural-memory@latest"
      ]
    }
  }
}

Per uso locale (sviluppo)

{
  "mcpServers": {
    "neural-memory": {
      "timeout": 120,
      "type": "stdio",
      "command": "node",
      "args": [
        "./neural-memory/src/index.js"
      ]
    }
  }
}

⚠️ Nota: Sostituisci il path con quello del tuo progetto locale!


Novità v2.0

🎯 Database Unificato

  • No più database separati per progetto! Tutta la memoria risiede in un unico database SQLite
  • Più veloce, più semplice, zero configurazione

📋 Session Management

  • Inizia/riprendi/chiudi sessioni di lavoro
  • Tracciamento automatico: nodi creati, skills apprese, durata
  • Snapshot contesto dettagliato

🎓 Skills Framework

  • Schema rigido per registrare skills con struttura consistente
  • framework, language, filePattern, learnSteps, useCases
  • Suggerimento automatico basato su contesto

📊 Reports HTML

  • Genera report visivi della tua memoria
  • Statistiche, skills più usate, lavoro recente

Quick Start

import { initialize, handleMcpRequest } from 'neural-memory';

// Inizializza il servizio
await initialize();

// Inizia una sessione
const session = await handleMcpRequest('start_session', {
  name: 'Refactoring API Gateway',
  tags: ['backend', 'api']
});

// Registra una skill
await handleMcpRequest('register_skill', {
  name: 'Fastify CRUD API',
  framework: 'fastify',
  language: 'javascript',
  filePattern: '**/*.service.js',
  learnSteps: [
    '1. Inizializzare progetto',
    '2. Creare schema validazione',
    '3. Implementare handler'
  ],
  useCases: [
    'Creare API REST',
    'Gestire errori standardizzati'
  ]
});

// Cerca skills
const skills = await handleMcpRequest('suggest_skills', {
  currentKeywords: ['fastify', 'api'],
  domain: 'javascript'
});

// Salva contesto
await handleMcpRequest('save_context_snapshot', {
  summary: 'Refactoring completato 80%',
  pendingTasks: ['Test integrazione', 'Deploy staging'],
  learnings: ['Prisma richiede migration esplicite']
});

// Chiudi sessione
await handleMcpRequest('end_session', {
  sessionId: session.session_id
});

Tools Disponibili

Session Management

| Tool | Descrizione | |------|-------------| | start_session | Inizia nuova sessione | | resume_session | Riprendi sessione esistente | | end_session | Chiudi sessione | | list_sessions | Lista sessioni con filtri |

Skills Framework

| Tool | Descrizione | |------|-------------| | register_skill | Registra skill (schema rigido) | | apply_skill | Trova e applica skill | | suggest_skills | Suggerisci skills |

Context Management

| Tool | Descrizione | |------|-------------| | save_context_snapshot | Salva snapshot | | restore_context | Recupera contesto | | generate_session_summary | Riassunto sessione |

Node Management

| Tool | Descrizione | |------|-------------| | add_node | Aggiungi nodo | | search_nodes | Cerca nodi (con confidence) | | get_node_context | Contesto nodo | | link_nodes | Collega nodi | | update_node | Aggiorna nodo | | delete_node | Elimina nodo |

Reports

| Tool | Descrizione | |------|-------------| | get_memory_report | Report JSON/HTML | | suggest_nodes | Suggerisci nodi |

Node Types

| Type | Priority | Use Case | |------|----------|----------| | skill | ⭐⭐⭐ | Knowledge skill | | error | ⭐⭐⭐ | Errore risolto | | operation | ⭐⭐ | How-to | | convention | ⭐⭐ | Regole naming | | edge_case | ⭐⭐ | Caso limite | | pattern | ⭐ | Design pattern | | task | ⭐ | Task completato | | generic | ⭐ | Nodo generico |

Confidence Scoring

Il sistema calcola un confidence score (0.0-1.0) per ogni risultato basato su:

  • BM25 Score (35%) - Full-text search ranking
  • Keyword Match (25%) - Sovrapposizione keywords
  • Recency Bonus (10%) - Nodi recenti preferiti
  • Type Score (15%) - Skills/errors più importanti
  • Weight (15%) - Peso manuale

Schema Skill Rigido

{
  "name": "Nome Skill",
  "framework": "fastify|react|prisma|...",
  "language": "javascript|typescript|python|...",
  "filePattern": "**/*.service.js",
  "learnSteps": ["Passo 1", "Passo 2"],
  "useCases": ["Caso 1", "Caso 2"],
  "implementation": "// Codice...",
  "examples": ["file1.js"],
  "prerequisites": ["Prerequisito 1"]
}

Installazione

npm install neural-memory

Database

Il database unificato si trova in:

data/neural-memory-unified.sqlite

License

MIT