Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stately-cloud/schema

Package Overview
Dependencies
Maintainers
0
Versions
19
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

  • 0.15.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

StatelyDB Schema Language

This is a TypeScript domain-specific language (DSL) for generating Stately 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. It is meant to be used with the stately CLI, e.g. stately schema put index.ts.

How it's used

  1. Create a package.json and add a dependency on @stately-cloud/schema (e.g. npm init, npm i @stately-cloud/schema)
  2. Create a tsconfig.json for your schema. This is necessary to get good autocomplete in VSCode.
  3. Create your schema files, each of which is a TypeScript (.ts) file. These import from @stately-cloud/schema to get types and builder functions, and export their types.
  4. Run stately schema validate index.ts to check your schema.
  5. Run stately schema put --schema-id 12345 --message "an update message" index.ts to upload the schema to your store.
  6. Run stately schema generate --language typescript index.ts --out <output-dir> to generate typed models for your schema.

FAQs

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc