🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@stately-cloud/schema

Package Overview
Dependencies
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stately-cloud/schema

Schema Language for StatelyDB, a document database built on top of DynamoDB with Elastic Schema that allows you to change your data model any time with automatic backwards compatibility.

latest
Source
npmnpm
Version
0.34.4
Version published
Maintainers
5
Created
Source

StatelyDB Schema Language

StatelyDB is a document database built on top of DynamoDB. It uses Elastic Schema to allow you to update your data model at any time, with automatic backwards and forwards compatibility.

This is a TypeScript domain-specific language (DSL) for generating StatelyDB Schemas. You use schemas to define the shape of your data model in StatelyDB, including validation, types, and other database configuration such as key paths and indexes. You can also use migrations to change your data model, automatically preserving backwards and forwards compatibility with existing schema versions. It is meant to be used with the stately CLI, e.g. stately schema put index.ts.

How it's used

  • Follow our Getting Started guide to install the Stately CLI.
  • Run stately schema init myschema to create a new schema in the folder myschema.
  • Develop your schema in TypeScript (.ts) files. These import from @stately-cloud/schema to get types and builder functions.
  • Run stately schema validate myschema/index.ts to check your schema.
  • Run stately schema put --schema-id 12345 --message "an update message" myschema/index.ts to upload the schema to your store.
  • Run stately schema generate --language typescript --schema-id 12345 <output-dir> to generate typed models for your schema.

Keywords

database

FAQs

Package last updated on 12 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