@flowdular/sdk
v0.4.3
Published
Flowdular platform SDK: server, client, UI, data, agents and core modules through separate exports.
Downloads
1,796
Readme
Flowdular SDK
The shared foundation for Flowdular applications: server APIs, client integration, UI components, databases, agents and bundled core modules. Build business modules against one SDK with explicit imports for each part of the platform.
Start a new application
Use Node.js 22.22.2 or newer. The generated workspace uses pnpm.
npm create flowdular@latest my-app
cd my-app
pnpm flowdular doctorThe generator configures the SDK and the Flowdular/Octane build toolchain. To add the SDK to an existing compatible workspace, install it in the package that imports it:
pnpm add @flowdular/sdkImport what you need
// Server-side module code
import { defineEndpoint } from '@flowdular/sdk/server';
import type { ModuleManifest } from '@flowdular/sdk/contracts';// Client-side module code
import { Button } from '@flowdular/sdk/ui';
import '@flowdular/sdk/ui/styles';The SDK ships TypeScript and TSRX source for the Flowdular/Octane toolchain. It has no root import. Keep server and database imports in server code; use client and UI entrypoints in browser code.
What's included
| Area | Import paths |
| --------------------------------------- | ---------------------------------------------------------------- |
| Module contracts and runtime | @flowdular/sdk/contracts, @flowdular/sdk/kernel |
| HTTP endpoints | @flowdular/sdk/server |
| Client integration and translations | @flowdular/sdk/client, @flowdular/sdk/client/i18n |
| Shared UI and styles | @flowdular/sdk/ui, @flowdular/sdk/ui/styles |
| Database contracts and local PostgreSQL | @flowdular/sdk/database, @flowdular/sdk/database-pglite |
| Database test helpers | @flowdular/sdk/database-testing |
| Agents and providers | @flowdular/sdk/harness, @flowdular/sdk/ai-provider |
| Development APIs | @flowdular/sdk/dev-console, @flowdular/sdk/cli-protocol |
| Bundled core modules | @flowdular/sdk/modules/<name>, including modules/auth/server |
Business modules are distributed as source archives through Official Modules. Installing an archive and enabling a module are separate CLI actions.
The coding sandbox is a separate application distributed as @flowdular/sandbox.
Launch it with npx @flowdular/sandbox from your application directory. It depends
on the SDK; installing the SDK alone does not install the sandbox application or
its launcher. The SDK's modules/sandbox export is the platform access/grant
module, not the coding application.
Build a module
Use explicit permissions for endpoints, tenant-bound database access and the shared UI components. Run the generated workspace's checks before delivery:
pnpm verifySee the module guide, database adapters and design system.
Packages and support
- flowdular: workspace CLI.
- create-flowdular: application generator.
- Documentation · Source and issues · Website
Licensed under MIT. Repository documentation and source require repository access while the repositories are private.

