1.0.1 • Published 6 months ago

@kapeta/dsl-editor v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

Kapeta DSL editor

Kapeta DSL Editor is a web-based editor for Kapeta DSL, also defined here.

The editor is based on Monaco Editor, and exposed as a set of React components for use in the Kapeta editor panels.

Installation

npm install @kapeta/dsl-editor

Usage

import { ConfigurationEditor } from '@kapeta/dsl-editor';

const App = () => {
    const [value, setValue] = useState<string>('my code');
    return <ConfigurationEditor value={value} onChange={handleChange} />;
};

Kapeta DSL

Kapeta DSL is a domain-specific language for defining Kapeta entities and assets, such as data models and API endpoints.

The language is defined in the Kapeta DSL specification, written in Peggy.