@evcraddock/slug-core
v0.1.2
Published
Shared Slugkit API types, constants, and helpers.
Readme
@evcraddock/slug-core
Shared Slugkit API types, constants, and pure helpers used by Slugkit packages, the slug CLI, and template-derived sites.
This package is an implementation convenience, not a compatibility requirement. Slugkit-compatible sites must implement the HTTP API contract; they do not have to depend on this package.
Install
npm install @evcraddock/slug-coreInside the Slugkit monorepo, workspaces consume this package through npm's local workspace linking using the same semver version that is published.
Public exports
SLUGKIT_API_NAMESLUGKIT_API_VERSIONSLUGKIT_API_MAJOR_VERSIONSLUGKIT_API_BASE_PATHSLUGKIT_OPENAPI_PATHSLUGKIT_OPENAPI_URL_PATHSLUGKIT_TEMPLATE_SOFTWARE_NAMESlugkitApiMetadataSlugkitMetaResponseSlugkitErrorCodeSlugkitFieldErrorSlugkitErrorSlugkitErrorResponseSlugkitSuccessResponsenormalizeApiBaseUrlreadSlugkitApiMajorVersioncompareSlugkitApiVersionscreateSlugkitSuccessResponsecreateSlugkitErrorcreateSlugkitErrorResponse
Notes for generated sites
Generated sites may keep local wrapper modules around these exports so site owners can customize behavior or replace package usage later. The package should stay dependency-light and avoid server framework, database, auth, media, and federation dependencies.
