samuelmtimbo /unit
Next Generation Visual Programming System
★ 4,922⑂ 170👁 54⑃ 128● 0▤ 0
+0
Daily
4,922
stars
170
forks
54
watchers
128
prs
0
issues
0
releases
README
Unit Next Generation Visual Programming System !Unit merge sort example Unit Unit is a General Purpose Visual Programming Language and Environment built with a primary focus on Developer Experience. It is heavily inspired by Live, Data Flow, Reactive, Functional and Object Oriented Programming paradigms. Formally, units are Multi Input Multi Output (MIMO) Finite State Machines (FSM). A program in Unit is represented as a Graph. The Unit Programming Language was developed in close junction to the Unit Programming Environment, which is a Web application built for easy composition of new units. The environment is designed to feel visual and kinesthetic, giving the perception of Direct Manipulation of Live Virtual Objects. The Unit Programming experience is minimalistic, ergonomic, mobile, and can be performed through a variety of input devices, and editing can be partially expressed through Drawing, Gesture and Voice. Unit is similar in concept to the Unix shell. For a seasoned programmer, Unit should feel like the 2D evolution of the Command Line Interface (CLI) where units' (commands) inputs and outputs (stdin/stdout/stderr) can be piped together into a graph (script). Unit can be thought of as a re-exploration of the Unix Philosophy in the context of modern Software Engineering and Web Development. The Unit system is set to grow into a simple and approachable Web Operating System, which is sandboxed by default, enabling a new era of Software Sharing and Collaboration, unifying the currently fragmented Computer Experience. For an introduction to Unit Programming, visit Getting Started. The broader design philosophy behind Unit is discussed in Concept. To jump right into the official Unit Programming Environment, visit unit.land (beta). Check out a collection of public open source units at unit.tools (beta). Development Install npm and git if you haven't already. Clone this repository: git clone [email protected]:samuelmtimbo/unit.git Get into the unit folder: cd unit Install: npm install Setup: npm run setup Start a local unit server: npm start For development mode: npm run watch Server The quickest way to serve a local Unit Environment: npx @_unit/unit Then visit http://localhost:4000 Alternatively, specify a port: npx @_unit/unit --port 8042 Library Unit source code can be used as a general purpose library in any JavaScript project, both on Web and Node.js. sh npm install --save @_unit/unit To install unit globally: sh npm install --global @_unit/unit Usage To render a unit JSON bundle: js import { renderBundle } from '@_unit/unit/client/platform/web/render' const root = document.getElementById('root') const bundle = { spec: { units: { helloworld: { id: 'a9cbed12-9a53-11eb-8c2e-f3146b36128d', }, }, render: true, component: { subComponents: { helloworld: {}, }, children: ['helloworld'], }, }, } const [system, graph]