@skymass/skymass
v0.3.50
Published
SkyMass UI-as-a-Service client
Downloads
489
Readme
SkyMass
Node client for SkyMass UI-as-a-Service
This is alpha software.
Build polished, secure and dynamic web applications in minutes — without leaving your IDE or touching frontend code.
SkyMass replaces the frontend stack with a cloud UI Server to let you handle data access, application logic and UI in a single backend.
SkyMass UI-as-a-Service gives you...
- An extensive, world-class UI component library
- Built-in workflows for Auth, Access Control, data onboarding, ...
- Security — directly access private data and APIs without exposure to the world
- Convenience — use your favorite IDE and any public or private package
Quick Start
Create a directory, initialize a node project and install @skymass/skymass using npm or yarn...
mkdir skymass & cd skymass
npm init -y
npm install @skymass/skymass
Open your favorite IDE and copy/paste the following:
import { SkyMass } from '@skymass/skymass';
const sm = new SkyMass({ key: process.env["SKYMASS_KEY"] });
sm.page("/hello_world", async (ui) => {
const name = ui.string("name", {
label: "Please type your name"
});
ui.show(`Hello ${name.val || "World"}!`);
});
Save as hello.mjs
and start it using:
SKYMASS_KEY=<your_skymass_key> npx nodemon hello.mjs
Open the output URL to view your first SkyMass app!
License
SkyMass Node Client is MIT Licensed.