Skip to main content

FlowConsole SDK

Project description

FlowConsole SDK

FlowConsole SDK contains the typed DSL for describing systems, components, and flows that the FlowConsole engine renders. It is built with jsii, so the same definitions are published to npm, PyPI, Maven, NuGet, and Go modules.

Install

  • Node.js: npm install @flowconsole/sdk

  • Python (PyPI): pip install flowconsole-sdk

  • .NET: dotnet add package FlowConsole.Sdk

  • Maven:

    <dependency>
      <groupId>flowconsole</groupId>
      <artifactId>sdk</artifactId>
      <version>0.0.1</version>
    </dependency>
    
  • Go: go get github.com/slackmaster9999/flowconsole

Quick start (TypeScript)

When executed inside the FlowConsole runtime (as used by the playground/app), the SDK attaches flow helpers to your entities so you can describe interactions fluently:

import { User, ReactApp, RestApi, Postgres } from '@flowconsole/sdk';

const user: User = { name: 'Customer', description: 'end user' };
const frontApp: ReactApp = { name: 'Customer Dashboard', description: 'React app' };
const restApi: RestApi = { name: 'Backend', description: 'Java REST API' };
const db: Postgres = { name: 'main_db', description: 'Database' };

user
  .sendsRequestTo(frontApp, 'opens in browser')
  .then(frontApp)
  .sendsRequestTo(restApi, 'GET /api/v1/dashboard/:id')
  .then(restApi)
  .sendsRequestTo(db, 'fetch dashboard data');

Python package

  • Package name: flowconsole-sdk, import module: flowconsole.
  • Generated via jsii-pacmak; property names mirror the TypeScript definitions.
  • The package ships the DSL types; use it alongside the FlowConsole engine that evaluates the objects you build.

Building multi-language packages

  1. Install dependencies from the repo root: pnpm install.
  2. Build the TypeScript sources: pnpm --filter @flowconsole/sdk build.
  3. Generate language-specific artifacts (including PyPI): pnpm --filter @flowconsole/sdk package. Artifacts are written to src/sdk/dist/ (for JavaScript) and language subfolders such as dist/python (PyPI wheel/sdist). This README is used as the long description on PyPI.

License

MIT — see src/sdk/LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flowconsole_sdk-0.0.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flowconsole_sdk-0.0.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file flowconsole_sdk-0.0.1.tar.gz.

File metadata

  • Download URL: flowconsole_sdk-0.0.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flowconsole_sdk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 51d2e1142b4d06fa8413ae3b4ce213992ce75e56a2c4a7ecf8c6bead29427a62
MD5 79a67a00563a4c566e29ab7095f4720a
BLAKE2b-256 a7243e6edddc822673e1510012e0cb701aa98667c1ca2af420c28c00aab3a097

See more details on using hashes here.

File details

Details for the file flowconsole_sdk-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flowconsole_sdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae3b6da3a22a56f90b850f8d6bcc174e9547e95fbbcf58b8bbf8a8764eb2a54
MD5 241ef2f03250e6ff39365f140a126f75
BLAKE2b-256 96288e679d682b6b31093260c9610c70a01bc5e41b33ea4fbf45c5d16ca0ece2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page