Site Kit SDK

Build in code. Hand over an editable site.

Convert Next.js, HTML, or WordPress evidence into SnabbSajt's structured format. Open source, local, and deliberately keyless.

Start from Next.js

Map rendered routes and component content to typed pages and sections. React code stays outside the import.

Start from HTML

Extract the real content and links. Scripts, iframes, custom CSS, and unsafe markup are left behind.

Validate and pack

Run the same schemas and limits as the production importer, then create a checksum-protected zip.

Reconcile WordPress

Combine the public site with a WXR export. Keep pages, posts, media, metadata, and old-URL decisions without running PHP or plugins.

Import as a draft

SnabbSajt validates everything again and creates a new unpublished, normally editable website.

No API key

Local first. Server-verified on import.

Authoring, validation, inspection, and packing run on your machine. A signed-in SnabbSajt user imports the zip through Settings. Keys only make sense if we later ship a hosted CI or upload API.

npx @snabbsajt/cli@0.2.0 site import html https://example.com -o ./site
npx @snabbsajt/cli@0.2.0 site validate ./site
npx @snabbsajt/cli@0.2.0 site import approve ./site --yes
npx @snabbsajt/cli@0.2.0 site pack ./site -o site.zip

The pinned npm commands become available after the 0.2.0 registry release.

Agent skills

Install once, then verify every update

The CLI installs versioned import, build, and review skills for Codex and Claude Code. Project-local is the safe default; checksums catch drift.

npx @snabbsajt/cli@0.2.0 skills install --agent auto