4.3.0 • Published 2 days ago

@staticcms/core v4.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

GitHub license npm latest package PRs Welcome

staticjscms.github.io/static-cms

A CMS for static site generators. Give users a simple way to edit and add content to any site built with a static site generator.

DISCLAIMER: This package/repository is under heavy development and as such is very unstable at current. A stable release is targeted for the end of Novemeber and will be labeled 1.0.0. Documentation may not be completely accurate prior to the 1.0.0 release.

Community Chat

How It Works

Static CMS is a single-page app that you pull into the /admin part of your site.

It presents a clean UI for editing content stored in a Git repository.

You setup a YAML config to describe the content model of your site, and typically tweak the main layout of the CMS a bit to fit your own site.

When a user navigates to /admin/ they'll be prompted to log in, and once authenticated they'll be able to create new content or edit existing content.

Read more about Static CMS Core Concepts.

Installation and Configuration

The Static CMS can be used in two different ways.

  • A Quick and easy install, that requires you to create a single HTML file and a configuration file. All the CMS JavaScript and CSS are loaded from a CDN. To learn more about this installation method, refer to the Quick Start Guide
  • A complete, more complex install, that gives you more flexibility but requires that you use a static site builder with a build system that supports npm packages.

static-cms-core

Installation

npm install @staticcms/core

Setup

import React from 'react';
import {
  AzureBackend,
  BitbucketBackend,
  BooleanWidget,
  CodeWidget,
  ColorStringWidget,
  DateTimeWidget,
  FileWidget,
  GitGatewayBackend,
  GitHubBackend,
  GitLabBackend,
  imageEditorComponent,
  ImageWidget,
  ListWidget,
  MapWidget,
  MarkdownWidget,
  StaticCmsCore as CMS,
  NumberWidget,
  ObjectWidget,
  ProxyBackend,
  RelationWidget,
  SelectWidget,
  StringWidget,
  TestBackend,
  TextWidget,
  locales,
  Icon,
  images
} from '@static-cms/static-cms-core';

// Register all the things
CMS.registerBackend('git-gateway', GitGatewayBackend);
CMS.registerBackend('azure', AzureBackend);
CMS.registerBackend('github', GitHubBackend);
CMS.registerBackend('gitlab', GitLabBackend);
CMS.registerBackend('bitbucket', BitbucketBackend);
CMS.registerBackend('test-repo', TestBackend);
CMS.registerBackend('proxy', ProxyBackend);
CMS.registerWidget([
  StringWidget.Widget(),
  NumberWidget.Widget(),
  TextWidget.Widget(),
  ImageWidget.Widget(),
  FileWidget.Widget(),
  SelectWidget.Widget(),
  MarkdownWidget.Widget(),
  ListWidget.Widget(),
  ObjectWidget.Widget(),
  RelationWidget.Widget(),
  BooleanWidget.Widget(),
  MapWidget.Widget(),
  DateTimeWidget.Widget(),
  CodeWidget.Widget(),
  ColorStringWidget.Widget(),
]);
CMS.registerEditorComponent(imageEditorComponent);
CMS.registerEditorComponent({
  id: 'code-block',
  label: 'Code Block',
  widget: 'code',
  type: 'code-block',
});
CMS.registerLocale('en', locales.en);

Object.keys(images).forEach(iconName => {
  CMS.registerIcon(iconName, <Icon type={iconName} />);
});

Contributing

New contributors are always welcome! Check out CONTRIBUTING.md to get involved.

Change Log

This project adheres to Semantic Versioning. Every release is documented on the Github Releases page.

License

Static CMS is released under the MIT License. Please make sure you understand its implications and guarantees.

Netlify CMS

Static CMS is a fork of Netlify CMS focusing on the core product over adding massive new features.

Thanks

@babel/eslint-parser@babel/runtime@codemirror/autocomplete@codemirror/commands@codemirror/language@codemirror/language-data@codemirror/legacy-modes@codemirror/lint@codemirror/search@codemirror/state@codemirror/theme-one-dark@codemirror/view@dnd-kit/core@dnd-kit/sortable@dnd-kit/utilities@emotion/react@emotion/styled@lezer/common@mdx-js/mdx@mdx-js/react@mui/base@mui/material@mui/system@mui/x-date-pickers@reduxjs/toolkit@styled-icons/bootstrap@styled-icons/fa-brands@styled-icons/fluentui-system-regular@styled-icons/heroicons-outline@styled-icons/material@styled-icons/material-outlined@styled-icons/material-rounded@styled-icons/simple-icons@tanstack/react-virtual@udecode/plate@udecode/plate-cursor@udecode/plate-juice@udecode/plate-serializer-md@uiw/codemirror-extensions-langs@uiw/react-codemirrorajvajv-errorsajv-keywordsbufferclean-stackcodemirrorcommon-tagscopy-text-to-clipboardcreate-react-classdate-fnsdeepmergediacriticsescape-htmleslint-config-prettiereslint-plugin-babelfuzzyglobbygotrue-jsgraphqlgraphql-taggray-matterhistoryimmerimmutableiniis-hotkeyjs-base64js-sha256jwt-decodelocalforagelodashmdast-util-gfm-footnotemdast-util-gfm-strikethroughmdast-util-gfm-tablemdast-util-gfm-task-list-itemmicromark-extension-gfm-footnotemicromark-extension-gfm-strikethroughmicromark-extension-gfm-tablemicromark-extension-gfm-task-list-itemmicromark-util-combine-extensionsminimatchnode-polyglotolpath-browserifyprop-typesreactreact-colorreact-dndreact-dnd-html5-backendreact-domreact-frame-componentreact-isreact-markdownreact-polyglotreact-reduxreact-resizable-panelsreact-router-domreact-scroll-syncreact-topbar-progress-indicatorreact-virtualized-auto-sizerreact-waypointreact-windowremark-gfmremark-htmlremark-mdxremark-parsesanitize-filenameschedulersemaphoreslateslate-historyslate-hyperscriptslate-reactstream-browserifystyled-componentssymbol-observableunifiedunist-util-visiturlurl-joinuuidvalidate-colorvfilevfile-messagevfile-statisticswhat-the-diffyaml
4.3.0

2 days ago

4.2.0

2 days ago

4.1.4

9 days ago

4.1.3

2 months ago

4.1.2

3 months ago

4.1.1

3 months ago

4.1.0

3 months ago

4.0.1

4 months ago

4.0.0

4 months ago

4.0.0-beta.17

4 months ago

3.4.8

4 months ago

4.0.0-beta.16

4 months ago

4.0.0-beta.15

5 months ago

4.0.0-beta.14

5 months ago

4.0.0-beta.13

5 months ago

4.0.0-beta.12

5 months ago

3.4.7

5 months ago

3.3.9

7 months ago

3.3.8

7 months ago

3.3.7

7 months ago

3.3.6

7 months ago

3.2.0

8 months ago

3.3.2-dev.1

7 months ago

3.3.2-dev.4

7 months ago

3.3.2-dev.3

7 months ago

3.3.2-dev.2

7 months ago

3.0.0-beta.3

10 months ago

3.0.0-beta.5

10 months ago

3.0.0-beta.4

10 months ago

3.0.0-beta.7

10 months ago

3.0.0-beta.6

10 months ago

3.0.0-beta.9

9 months ago

3.0.0-beta.8

9 months ago

3.1.2

8 months ago

3.1.1

8 months ago

3.1.0

8 months ago

3.4.0

6 months ago

3.0.2

8 months ago

3.0.1

9 months ago

4.0.0-beta.11

5 months ago

3.4.4

6 months ago

4.0.0-beta.10

5 months ago

3.4.3

6 months ago

3.4.2

6 months ago

3.4.1

6 months ago

3.0.0

9 months ago

3.3.10

7 months ago

3.3.11

6 months ago

3.4.6

5 months ago

3.4.5

6 months ago

4.0.0-beta.8

5 months ago

3.3.1

8 months ago

4.0.0-beta.7

5 months ago

3.3.0

8 months ago

4.0.0-beta.6

5 months ago

4.0.0-beta.5

5 months ago

4.0.0-beta.4

6 months ago

3.3.5

7 months ago

4.0.0-beta.3

6 months ago

3.3.4

7 months ago

4.0.0-beta.2

6 months ago

3.3.3

7 months ago

4.0.0-beta.1

6 months ago

3.3.2

7 months ago

4.0.0-beta.0

6 months ago

4.0.0-beta.9

5 months ago

3.0.0-beta.1

11 months ago

3.0.0-beta.2

11 months ago

2.5.0

11 months ago

2.5.1

11 months ago

2.4.1

11 months ago

2.4.0

11 months ago

2.4.3

11 months ago

2.4.2

11 months ago

2.4.4

11 months ago

2.3.4-dev

12 months ago

2.3.4-dev.10

12 months ago

2.3.4-dev.11

12 months ago

3.0.0-beta.0

11 months ago

2.3.0

12 months ago

2.3.2

12 months ago

2.3.1

12 months ago

2.3.4

12 months ago

2.3.3

12 months ago

2.3.4-dev.4

12 months ago

2.3.4-dev.3

12 months ago

2.3.4-dev.1

12 months ago

2.3.4-dev.8

12 months ago

2.3.4-dev.7

12 months ago

2.3.4-dev.6

12 months ago

2.3.4-dev.0

12 months ago

2.2.0

12 months ago

2.3.3-dev

12 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.11

1 year ago

1.2.14

1 year ago

2.0.0-beta.9

1 year ago

2.0.0-beta.8

1 year ago

2.0.0-beta.7

1 year ago

2.0.0-beta.2

1 year ago

2.0.0-beta.1

1 year ago

2.0.0-beta.0

1 year ago

2.0.0-beta.6

1 year ago

2.0.0-beta.5

1 year ago

2.0.0-beta.4

1 year ago

2.0.0-beta.3

1 year ago

2.0.0-dev.1

1 year ago

2.0.0-dev.0

1 year ago

2.0.0-dev.3

1 year ago

2.0.0-dev.2

1 year ago

2.0.0-rc.0

1 year ago

2.0.0-rc.1

1 year ago

2.1.0

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.0

1 year ago

1.0.0

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.0.0-beta3

1 year ago

1.0.0-beta4

1 year ago

1.0.0-beta.11

1 year ago

1.0.0-beta.12

1 year ago

1.0.0-beta.10

1 year ago

1.0.0-beta.13

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.0-beta.5

1 year ago

1.0.0-beta.6

1 year ago

1.0.0-beta.7

1 year ago

1.0.0-beta.8

1 year ago

1.0.0-beta.9

1 year ago

1.0.0-beta2

1 year ago

1.0.0-beta1

1 year ago

1.0.0-beta0

1 year ago

1.0.0-alpha45

1 year ago

1.0.0-alpha44

1 year ago

1.0.0-alpha43

1 year ago

1.0.0-alpha42

1 year ago

1.0.0-alpha41

1 year ago

1.0.0-alpha40

1 year ago

1.0.0-alpha39

1 year ago

1.0.0-alpha38

1 year ago

1.0.0-alpha37

1 year ago

1.0.0-alpha36

1 year ago

1.0.0-alpha35

1 year ago

1.0.0-alpha34

1 year ago

1.0.0-alpha33

1 year ago

1.0.0-alpha32

1 year ago

1.0.0-alpha31

1 year ago

1.0.0-alpha30

1 year ago

1.0.0-alpha29

1 year ago

1.0.0-alpha28

1 year ago

1.0.0-alpha27

1 year ago

1.0.0-alpha26

2 years ago

1.0.0-alpha25

2 years ago

1.0.0-alpha24

2 years ago

1.0.0-alpha23

2 years ago

1.0.0-alpha22

2 years ago

1.0.0-alpha21

2 years ago

1.0.0-alpha20

2 years ago

1.0.0-alpha19

2 years ago

1.0.0-alpha18

2 years ago

1.0.0-alpha17

2 years ago

1.0.0-alpha16

2 years ago

1.0.0-alpha15

2 years ago

1.0.0-alpha14

2 years ago

1.0.0-alpha12

2 years ago

1.0.0-alpha11

2 years ago

1.0.0-alpha10

2 years ago

1.0.0-alpha9

2 years ago

1.0.0-alpha8

2 years ago

1.0.0-alpha7

2 years ago

1.0.0-alpha6

2 years ago

1.0.0-alpha5

2 years ago

1.0.0-alpha4

2 years ago

1.0.0-alpha3

2 years ago

1.0.0-alpha2

2 years ago

1.0.0-alpha1

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago