Socket
Book a DemoInstallSign in
Socket

@sapphire-cms/github

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapphire-cms/github

Integration of Sapphire CMS with GitHub as persistence and delivery backend.

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
8
-92.66%
Maintainers
1
Weekly downloads
 
Created
Source

npm

GitHub Module

This module provides the ability to Sapphire CMS to persist and deliver content on GitHub repository.

Install

sapphire-cms package install github

or

scms pkg i github

Provided Layers

  • persistence
  • delivery

Examples

Persistence

# ./sapphire-cms.config.yaml

config:
  modules:
    github:
      owner: sapphire-cms
      repo: sapphire-cms.io
      data-branch: master
      data-dir: sapphire-cms-data
      output-branch: master
      output-dir: src/app/generated/cms
      personal-access-token: ${env.GITHUB_PERSONAL_ACCESS_TOKEN}

layers:
  persistence: '@github'

Delivery

# ./sapphire-cms-data/pipelines/docs-to-ts.yaml

name: docs-to-ts
source: docs
target: '@github'
render: '@codegen/typescript'

Parameters

ParameterTypeMandatoryDescription
ownerstringyesGitHub username or organization that owns the target repository.
repostringyesName of the GitHub repository.
personalAccessTokenstringyesGitHub personal access token with repo access permissions for reading and writing content.
dataBranchstringnoBranch where Sapphire CMS stores managed documents. Defaults to 'master'.
dataDirstringnoDirectory within the data branch where documents are stored. Defaults to 'sapphire-cms-data'.
outputBranchstringnoBranch where Sapphire CMS pushes rendered artifacts. Defaults to 'gh-pages'.
outputDirstringnoDirectory within the output branch for rendered artifacts. Defaults to the repository root.

FAQs

Package last updated on 15 Aug 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.