@syncropel/fleet
v0.2.0
Published
Headless fleet management for Syncropel hosted instances — the one source of fleet truth (list · quota · subscription · lifecycle suspend/resume/destroy · cross-device join) shared by Syncropel Studio and the Syncropic Console. Auth, the provisioning URL,
Maintainers
Readme
@syncropel/fleet
Headless fleet management for Syncropel hosted instances — the one source of fleet truth (list · quota · subscription · lifecycle · cross-device join) shared by Syncropel Studio and the Syncropic Console.
Vendor-, framework-, and store-agnostic: you inject the auth adapter, the
provisioning URL, lifecycle notifications, and the connection-store join inputs.
Peer-deps react + @tanstack/react-query only.
Use
import { FleetProvider, useFleetView, useSuspendInstance } from '@syncropel/fleet';
<FleetProvider
config={{
auth: { user, isLoaded, getToken }, // your session adapter
provisionUrl: 'https://provision.syncropel.com',
notify, // optional lifecycle toasts
listCredentials, // optional, for the join
}}
>
<YourFleetUI />
</FleetProvider>;
// inside:
const { instances } = useFleetView({ profiles, activeProfileId });
const suspend = useSuspendInstance();License
Apache-2.0 © Syncropic, Inc.
