Implementation:0xK3vin MegaMemory Package Lockfile
| Knowledge Sources | |
|---|---|
| Domains | Build, Dependencies, Reproducibility |
| Last Updated | 2026-10-27 14:00 GMT |
Overview
Concrete lockfile (package-lock.json) that pins the full transitive dependency tree of the megamemory@1.6.2 package for reproducible installs and supply-chain integrity.
Description
The Package Lockfile (package-lock.json) is an npm lockfile (lockfileVersion: 3) generated and maintained by npm. It is not edited by hand. It records the resolved URL, integrity hash, and license for every transitive dependency of the megamemory package, ensuring that npm ci produces a byte-for-byte identical node_modules tree across machines and CI runs.
Top-level dependencies pinned:
- @modelcontextprotocol/sdk — MCP server SDK
- @xenova/transformers — local ONNX embeddings
- libsql — SQLite-compatible database client
- picocolors — terminal color output
- zod — schema validation
Dev dependencies pinned:
- @types/node, @vitest/coverage-v8, tsx, typescript, vitest
The lockfile is consumed by the .github/workflows/publish.yml CI workflow, which runs npm ci (a command that requires this file and fails if it is missing or out of sync with package.json).
Usage
This file is referenced when you need to:
- Reproduce an install: npm ci reads package-lock.json to install the exact pinned versions
- Audit the dependency tree: Inspect which transitive versions are resolved and their integrity hashes
- Reason about supply chain: Verify licenses and resolved URLs for every package
- Publish a release: The CI publish workflow depends on this file for a clean install before building
Code Reference
Source Location
- Repository: 0xK3vin_MegaMemory
- File: package-lock.json
- Lines: 1-3898 (entire file)
Signature
{
"name": "megamemory",
"version": "1.6.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "megamemory",
"version": "1.6.2",
"license": "MIT",
"dependencies": { /* @modelcontextprotocol/sdk, @xenova/transformers, libsql, picocolors, zod */ },
"bin": { "megamemory": "dist/index.js" },
"devDependencies": { /* @types/node, @vitest/coverage-v8, tsx, typescript, vitest */ },
"engines": { "node": ">=18" }
},
"node_modules/...": { /* one entry per transitive dep with resolved URL + integrity */ }
}
}
Import
# Not imported in code; consumed by npm tooling.
npm ci # installs exactly what package-lock.json pins
I/O Contract
Inputs
| Name | Type | Required | Description | ||||
|---|---|---|---|---|---|---|---|
| package.json | JSON manifest | Yes | The source manifest; lockfile must stay in sync with it | npm registry | network | Yes | Resolved URLs point to the npm registry |
Outputs
| Name | Type | Description | |||
|---|---|---|---|---|---|
| node_modules/ | directory tree | Exact pinned dependency tree installed by npm ci | integrity | SHA-512 hashes | Per-package integrity hashes for tamper detection |
Usage Examples
Clean Install (CI)
# npm ci deletes node_modules and installs exactly from the lockfile
npm ci
# added 247 packages in 4s
Audit the Dependency Tree
# List all pinned packages and their resolved versions
npm ls --all
# megamemory@1.6.2
# ├─ @modelcontextprotocol/sdk@1.12.1
# ├─ @xenova/transformers@2.17.2
# ├─ libsql@0.5.22
# ├─ picocolors@1.1.1
# └─ zod@3.24.2
Regenerate After Dependency Change
# After editing package.json, regenerate the lockfile
npm install
# This updates package-lock.json to match the new package.json
# Commit both files together so they stay in sync