@s-blog/core
v0.5.5
Published
> **IMPORTANT MIGRATION NOTICE** > > This is the final release under the `@s-blog/core` name. The package has been officially migrated and renamed to **@s-page/core**. > Future updates will be published under the new `@s-page` npm organization. > > Pl
Readme
IMPORTANT MIGRATION NOTICE
This is the final release under the
@s-blog/corename. The package has been officially migrated and renamed to @s-page/core. Future updates will be published under the new@s-pagenpm organization.Please update your dependencies:
@s-page/core
@s-page/core
The pre-built App Shell and UI framework for spage.
What This Package Provides
- Pre-built App Shell — Production-ready
index.html+ hashed JS/CSS assets (React SPA) - UI Components — Post list, post detail with Markdown rendering, photo albums, memo timeline (Ech0 integration), search overlay, language switcher, etc.
- Routing — Pre-configured React Router with code-splitting (lazy-loaded routes)
- i18n — Built-in internationalization (English, Chinese, Japanese)
- JSON Schemas — Validation schemas for
config.jsonandalbum.config.json - Type Definitions — TypeScript types for blog metadata, album data, and site config
How It Works
@s-page/core is the frontend half of spage. It pairs with @s-page/engine (the build engine) to form the complete system:
@s-page/enginebuilds your content (Markdown → manifest, photos → thumbnails, SEO pages)@s-page/coreprovides the App Shell that loads and renders that content at runtime
Users interact with both through simple npm scripts:
npm run dev # Start dev server (powered by @s-page/engine)
npm run build # Full production build (engine copies shell from core, then processes content)Installation
Recommended: Use
npm create spage@latestto scaffold a new project. It sets up both@s-page/coreand@s-page/engineautomatically.
For manual setup or upgrading:
npm install @s-page/core @s-page/engineProject Structure (User's Project)
After scaffolding, a user's project contains only content:
my-blog/
├── posts/ # Markdown posts
├── albums/ # Photo albums (optional)
├── public/ # Static assets (logo, favicon)
├── config.json # Site configuration
├── album.config.json # Album configuration
└── package.json # scripts: { dev, build }All framework code is inside node_modules/@s-page/core and node_modules/@s-page/engine.
Updating
npm update @s-page/core @s-page/engineLicense
MIT © Suzichen
