Skip to main content

Sankhya CMS

Lit web components (st-*) for building JSON-driven portals, with thin React bindings.

PackageWhat it is
@sankhyatronics/sankhya-cmsThe components. Every base component is implemented once, here, as a Lit element. Also ships the theme CSS and the JSON schema.
@sankhyatronics/sankhya-cms-reactReact wrappers over the elements, plus DynamicRenderer, which renders page JSON.

How it fits together​

  1. Content is plain JSON: a list of nodes such as { "type": "Hero", "title": "…" }. See Page JSON.
  2. Components are custom elements, so they work in any framework or none. See Components.
  3. A renderer turns JSON into elements. The React package ships one; another binding only has to map each JSON type to its element (the map is exported as componentTags).
  4. Theming is CSS custom properties. See Theming.

Start with Getting started.