
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@sapphire-cms/core
Advanced tools
The environment-agnostic, lightweight, and embeddable engine of Sapphire CMS.
The Core is the heart of Sapphire CMS. It encapsulates the full complexity of content management while remaining completely agnostic of its runtime environment. This design makes it highly portable and easy to e mbed in any JavaScript-based platform.
Built to run wherever JavaScript runs - from traditional servers to serverless and edge environments - the Core delegates all interaction with the outside world to pluggable layers, provided by a rich ecosystem of official and community modules.
While most Sapphire CMS capabilities come from external modules, the Core ships with a built-in default module. This built-in module provides a few out-of-the-box layers, including:
content
admin
render
The default content layer provides the essential field types and validators expected from any modern CMS. It enables powerful and flexible content modeling out of the box.
check
- A simple boolean field accepting yes/no values.group
- A special field type that groups multiple fields together.number
- A field that stores numeric values only.reference
- A field used to reference other documents within the CMS.rich-text
- Stores large chunks of formatted text, designed for core document content.tag
- Allows attaching custom tags to documents.text
- A field for labels or short unformatted text values.For a complete guide to field types, check the official documentation.
between
- Ensures that a field’s numeric value falls within a specified range.integer
- Ensures that the field value is an integer.required
- Ensures the value for the field is provided.Full details and usage examples can be found in the field validators documentation.
The default admin layer is a no-op (no operation) implementation that performs no administrative functions on the running CMS instance.
It is useful in scenarios where administration should be explicitly disabled - for example, when running a bundled Sapphire CMS in serverless environment.
The default render layer includes a single basic renderer named json
, which outputs documents as raw JSON.
Usage example:
# ./sapphire-cms-data/pipelines/docs-to-ts.yaml
name: docs-to-ts
source: docs
target: '@node'
render: 'json'
FAQs
Core of Sapphire CMS.
The npm package @sapphire-cms/core receives a total of 4 weekly downloads. As such, @sapphire-cms/core popularity was classified as not popular.
We found that @sapphire-cms/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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.