All Projects â†’ design-first â†’ System Runtime

design-first / System Runtime

Licence: apache-2.0
A JavaScript library that runs systems

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to System Runtime

System Designer
A low-code development platform for creating systems
Stars: ✭ 578 (+596.39%)
Mutual labels:  schema, model, system
NoSE
👃 Automated schema design for NoSQL applications
Stars: ✭ 25 (-69.88%)
Mutual labels:  schema, nosql
Vue Rawmodel
RawModel.js plugin for Vue.js v2. Form validation has never been easier!
Stars: ✭ 79 (-4.82%)
Mutual labels:  schema, model
Structure
A simple schema/attributes library built on top of modern JavaScript
Stars: ✭ 292 (+251.81%)
Mutual labels:  schema, model
NoSQLDataEngineering
NoSQL Data Engineering
Stars: ✭ 25 (-69.88%)
Mutual labels:  schema, nosql
godmt
Tool that can parse Go files into an abstract syntax tree and translate it to several programming languages.
Stars: ✭ 42 (-49.4%)
Mutual labels:  schema, model
tyshemo
A javascript runtime data type checking system and morden reactive state management model.
Stars: ✭ 70 (-15.66%)
Mutual labels:  schema, model
Mongoeye
Schema and data analyzer for MongoDB written in Go.
Stars: ✭ 113 (+36.14%)
Mutual labels:  schema, nosql
Westore
更好的小程序项目架构
Stars: ✭ 3,897 (+4595.18%)
Mutual labels:  nosql, model
Sleekdb
Pure PHP NoSQL database with no dependency. Flat file, JSON based document database.
Stars: ✭ 450 (+442.17%)
Mutual labels:  schema, nosql
Trilogy
TypeScript SQLite layer with support for both native C++ & pure JavaScript drivers.
Stars: ✭ 195 (+134.94%)
Mutual labels:  schema, model
Mithril Data
A rich data model library for Mithril javascript framework
Stars: ✭ 17 (-79.52%)
Mutual labels:  schema, model
Framework
Strongly-typed JavaScript object with support for validation and error handling.
Stars: ✭ 136 (+63.86%)
Mutual labels:  schema, model
pocket-cms
☁️ A pocket sized CMS written for nodejs
Stars: ✭ 13 (-84.34%)
Mutual labels:  schema, nosql
Awesome Python Models
A curated list of awesome Python libraries, which implement models, schemas, serializers/deserializers, ODM's/ORM's, Active Records or similar patterns.
Stars: ✭ 124 (+49.4%)
Mutual labels:  schema, model
modelsafe
A type-safe data modelling library for TypeScript
Stars: ✭ 13 (-84.34%)
Mutual labels:  schema, model
Skema
🛰 Skema provides a handy & composable way to validate / transform / purify the input data.
Stars: ✭ 359 (+332.53%)
Mutual labels:  schema, model
Meteor Astronomy
Model layer for Meteor
Stars: ✭ 608 (+632.53%)
Mutual labels:  schema, model
Sql Boot
Advanced REST-wrapper for your SQL-queries (actually not only SQL)
Stars: ✭ 51 (-38.55%)
Mutual labels:  schema, nosql
Typegoose
Typegoose - Define Mongoose models using TypeScript classes.
Stars: ✭ 1,189 (+1332.53%)
Mutual labels:  model

System Runtime

npm Build Status Coverage Status devDependency Status npm

What is System Runtime ?

When you code, you do not create an application, you create in fact a system. System Runtime gives you the APIs to create the model, components and behaviors of your system.

What is a system ?

A system:

  • is defined by a model,
  • is composed by components and
  • reacts to events with actions that we call behaviors.

Image Alt

How does System Runtime work?

Create a system

Use System Runtime APIs to create your system:

// create a system
const system = runtime.system('system');

// add some business logic in the start method
system.on('start', () => console.log('Hello world !'));

// run the system
system.start();

Now you can bundle your system into a JSON object:

// create a bundle
runtime.bundle();

It will return this JSON:

{
  "_id": "154cd18d0210516",
  "name": "system",
  "description": "",
  "version": "0.0.1",
  "schemas": {},
  "models": {},
  "types": {},
  "behaviors": {
    "1ea9c1d5f811ae1": {
      "_id": "1ea9c1d5f811ae1",
      "component": "154cd18d0210516",
      "state": "start",
      "action": "() => console.log('Hello world !')",
      "useCoreAPI": false,
      "core": false
    }
  },
  "components": {}
}

Install the bundle in HTML

Just add a link tag in your HTML to install and start your bundle:

<!-- install your bundle -->
<link rel="system" type="application/json" href="system.json">

Install the bundle in Node.js

Just call install API to install and start your bundle:

// require System Runtime
const runtime = require('system-runtime');

// install your bundle 
runtime.install('system.json');

What contains System Runtime ?

Image Alt

A metamodel

System Runtime contains a metamodel to help you to design your model. The definition of the model is made on a JSON format called MSON, no code is needed.

With MSON you can define types, classes, one to one / one to many relationships and multi inheritance between classes.

MSON is based on UML, so learning it is very easy.

A component factory

System Runtime uses the Model-Driven Architecture approach to create classes based on your design. Use them to instantiate your components.

A NoSQL Database

System Runtime acts as an ODM (Object-Document Mapper) to manage your components as NoSQL Documents.

System Runtime has a micro NoSQL Database that stores your components and you can export/import them into another System Runtime NoSQL Database.

Thanks to System Runtime NoSQL Database, you can compose your system with an another system.

A workflow engine

System Runtime checks at runtime if the signatures of invoked methods are compliant with your model.

With System Runtime your components really behave the way you designed them.

Build

Installation

Clone the repository:

git clone https://github.com/design-first/system-runtime.git

Once you have cloned the repository, install the dependencies:

npm i

Build

Then build System Runtime:

npm run build

It will:

  • build System Runtime core module for the server library and
  • build System Runtime client library on /dist directory

Development

To start System Runtime in development mode:

npm run dev

All the modifications to the source code of System Runtime will rebuild the project.

Documentation

Community

License

Copyright 2021 Erwan Carriou

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Do not use System Runtime if you do not believe in Equality and Diversity.

System Runtime is not for people of hate.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].