
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@packkit/core
Advanced tools
The versioned Packkit platform contract + primitives + conformance suite. Language-agnostic; browser-safe by default.
The versioned Packkit platform contract — primitives, protocol, and an executable conformance suite. Language-agnostic; browser-safe by default.
packkit-core owns the universal Packkit protocol and nothing language-specific.
It knows nothing about npm, package.json, pyproject.toml, frameworks, or provider
APIs. Language generators (create-packkit, create-packkit-py, …) implement its
contract; MCP, the web configurator, and providers consume it.
| Import | Contents | Environment |
|---|---|---|
@packkit/core | Types, PACKKIT_PROTOCOL_VERSION, contentHash, validateRelativePath, classifyChange, deployment-contract types + validateDeploymentContract, PackkitGenerator/ManifestDiffer interfaces, createGeneratorRegistry | browser-safe — imports no node:* (asserted in CI) |
@packkit/core/node | writeGeneratedProject (filesystem) | Node |
@packkit/core/testing | runGeneratorConformanceSuite, runEmbeddedLifecycleConformance, and their check lists | dev/test |
A generator advertises a protocol version (separate from this package's semver) and the capabilities it actually implements, so consumers degrade gracefully:
import type { PackkitGenerator } from '@packkit/core';
const gen: PackkitGenerator = {
id: 'python',
language: 'python',
version: '1.0.0',
maturity: 'stable',
protocol: {
version: 1,
capabilities: ['generate', 'deployment-contract', 'project-definition', 'baseline-upgrade'],
},
listPresets() {
/* … */
},
getSchema() {
/* … */
},
createProject(input) {
/* … */
},
// …
};
The load-bearing seam is ManifestDiffer: core does the language-independent
file-level three-way diff; each generator plugs in its own manifest semantics
(package.json for JS, pyproject.toml for Python) — so npm concepts never leak
into core.
Core owns the language-neutral lifecycle so a host integrates once and supports every generator. All of these operate on the protocol shapes, never a manifest:
calculateGeneratedProjectDigest(project) — a stable, browser-safe identity digest
(config + files); the same project yields the same digest across CLI, embedded,
MCP, web, and a replayed definition.extendGeneratedProject(project, { files }) — layer host-owned files with explicit
add/replace intent, collision detection, path safety, and provenance that
survives definition export → replay. Structured manifest merges (package.json,
pyproject.toml) stay inside each generator.computeProjectUpgrade + the common UpgradeResult envelope — one file-level
upgrade vocabulary (unchanged / new-generated / removed-from-template /
template-only-change / user-only-change / both-changed); a generator attaches
its structured manifest diff via plan.manifest.PackkitGenerator + a generator registry,
or the thin createPackkit({ generators }) facade (listGenerators / generate /
extend / digest / exportDefinition / replay / upgrade, resolving the owning
generator from a project's own metadata). Select by generator id and drive JS,
Python, and future generators through one lifecycle — for portals, agent hosts, and
multi-language tooling.create-packkit/embedded,
the Python equivalent) when you deliberately want its richer, language-aware
features. Still fully compatible with the universal contract.@packkit/core/node. Generation and
upgrade planning stay side-effect free; writing is an explicit, separate step.A shared CI ensures every repo runs tests; the conformance suites define what they must prove. Every generator runs both:
import {
runGeneratorConformanceSuite,
runEmbeddedLifecycleConformance,
} from '@packkit/core/testing';
import { it } from 'vitest'; // or node:test
runGeneratorConformanceSuite(myGenerator, (name, fn) => it(name, fn));
runEmbeddedLifecycleConformance(myGenerator, (name, fn) => it(name, fn));
Generation asserts: stable identity & protocol · unique preset/option ids · valid schema · safe, deterministic output · valid deployment contracts · definition round-trip. Lifecycle asserts: digest stability · replay determinism · host-extension survival · the common upgrade envelope with user-edit preservation — gated on advertised capabilities. Passing them — not merely satisfying the TypeScript interface — is what makes a generator part of the platform. Both JavaScript and Python pass today.
Node.js >= 20 (the browser entry runs anywhere).
MIT © DanMat
FAQs
The versioned Packkit platform contract + primitives + conformance suite. Language-agnostic; browser-safe by default.
The npm package @packkit/core receives a total of 197 weekly downloads. As such, @packkit/core popularity was classified as not popular.
We found that @packkit/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.