Skip to main content

SDKs Overview

Easy AppServer provides SDKs for building applications on the platform.

Available SDKs

Dev Kit

Development toolkit for local app development with hot module replacement (HMR).

Key Features:

  • CLI for starting/stopping development environment
  • Automatic authentication and app registration
  • Vite plugin for cross-origin CSS bundling
  • Process management with health checks
  • Docker shell integration

Package: @easy/dev-kit

Node.js SDK

Backend SDK for building AppServer applications in Node.js and TypeScript.

Key Features:

  • Lifecycle hooks (onCreate, onStartUp, onRegister, onInstall, onUninstall, onDestroy)
  • Type-safe AppContext
  • PostgreSQL database client
  • Certificate and key management
  • Structured logging
  • Graceful shutdown handling
  • ESM and CommonJS support

Package: @easy/appserver-sdk

Frontend SDK

Browser-side SDK for building microfrontend applications.

Key Features:

  • Session context access (user ID, roles, permissions)
  • App settings management
  • Authenticated HTTP fetch
  • Module Federation adapter
  • Iframe adapter
  • Vue 3 integration (plugin, composables)
  • Asset loading utilities

Package: @easy/appserver-frontend-sdk

SDK Comparison

FeatureDev KitNode.js SDKFrontend SDK
RuntimeNode.js CLINode.jsBrowser
PurposeLocal developmentBackend appsMicrofrontends
AuthenticationKratos sessionCertificate-basedSession-based
API AccessGraphQLgRPCHTTP/GraphQL
StateProcess managementServer-sideClient-side
FrameworksViteAny Node.jsVue 3 (others possible)

Getting Started

Dev Kit

pnpm add -D @easy/dev-kit

See Dev Kit Installation

Node.js SDK

npm install @easy/appserver-sdk

See Node.js SDK Installation

Frontend SDK

npm install @easy/appserver-frontend-sdk

See Frontend SDK Installation

Development Workflow

Typical development workflow using the SDKs:

  1. Create app project - Set up your app directory structure
  2. Install SDKs - Add @easy/dev-kit, @easy/appserver-sdk, and/or @easy/appserver-frontend-sdk
  3. Configure dev-kit - Create devkit.config.ts for local development
  4. Implement backend - Use Node.js SDK for lifecycle hooks (if applicable)
  5. Build microfrontend - Use Frontend SDK for Vue integration
  6. Test locally - Run easy-dev start for HMR development
  7. Build and push assets - Build production assets
  8. Register with AppServer - Deploy to staging/production
  9. Install and test - Verify in production environment

See Dev Kit App Setup for a complete local development guide.