
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
@weave-md/core
Advanced tools
Weave Markdown language contract - spec, schemas, types, and pure helpers
The language contract for Weave Markdown - spec, schemas, types, and pure helpers.
This package contains:
spec/) - Normative prose defining Weave Markdownschema/) - Machine-readable schemas for AST and graph structures@weave-md/core has no filesystem access and no rendering side effects. It provides:
parseNodeUrl(href: string) - Parse node: URLs into structured referencesformatNodeUrl(ref: NodeRef) - Format references back to node: URLsbuildGraph(sections: Section[], links: Link[]) - Build document graph with node connectionsdetectCycles(graph: Graph) - Detect circular references in the document graphpnpm add @weave-md/core
import { parseNodeUrl, formatNodeUrl, buildGraph, SPEC_VERSION } from '@weave-md/core';
// Parse node URLs
const ref = parseNodeUrl('node:intro?display=footnote');
console.log(ref); // { id: 'intro', display: 'footnote' }
// Format node URLs
const url = formatNodeUrl({ id: 'intro', display: 'footnote' });
console.log(url); // 'node:intro?display=footnote'
// Build document graph
const graph = buildGraph(sections, links);
console.log(graph.nodes); // Graph nodes with incoming/outgoing connections
console.log(SPEC_VERSION); // '0.1.0'
import { GalleryBlock, MathBlock, VideoBlock } from '@weave-md/core/weave-format';
const gallery: GalleryBlock = {
type: 'gallery',
urls: ['image1.jpg', 'image2.jpg'],
columns: 3,
gap: 8,
aspect: '16:9'
};
@weave-md/parse - AST generation (depends on core)@weave-md/validate - Document-level validation (depends on core)@weave-md/basic - CLI, rendering, export (depends on parse + validate)AGENTS.md provides a concise syntax reference for AI coding agents that need to write Weave Markdown content. Copy it to your project's content directory so agents can reference it when generating Weave MD.
MIT
FAQs
Weave Markdown language contract - spec, schemas, types, and pure helpers
We found that @weave-md/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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.