Compatibility and upgrades
Flexkit’s framework quickstarts cover Next.js, Astro, and TanStack Start. Each application needs its framework adapter, React integration, @flexkit/studio and @flexkit/schema, the single @flexkit/studio/styles.css stylesheet, and a server-capable deployment.
Package consolidation
Install only @flexkit/studio and @flexkit/schema, plus @flexkit/cli. Desk, Asset Manager, Explorer, and AI are built into @flexkit/studio; the @flexkit/desk, @flexkit/asset-manager, @flexkit/explorer, and @flexkit/ai packages are deprecated and should be removed. When upgrading an application from the separate packages:
- Remove the four app packages and their stylesheet imports; keep
@flexkit/studio/styles.css. - Import
defineConfiganddefineEntityfrom@flexkit/schemainflexkit.config.ts, deleteflexkit.studio.tsx, and dropbasePath,extensions,commands, andiconfrom the configuration. - Replace
hiddenandreadOnlycallbacks with booleans, and replace icon components with Lucide icon names such as'Tag'. - Mount
<FlexkitStudio projectIds={['your-project-id']} basename="/studio" />;basenamereplacesbasePath, and the host no longer imports the configuration. - Run
flexkit deploy. Studio renders the deployed schema, so an updated configuration is invisible until it is deployed.
Record your release set
Keep the installed framework, React, @flexkit/studio, @flexkit/schema, and CLI versions in your lockfile and release notes. A repository checkout version is not proof that the same package was published or deployed to your project.
Upgrade workflow
- Review package release notes and exported type changes.
- Upgrade in a development application with a separate test project.
- Build the client and server routes together.
- Deploy the schema, then verify login, deep links, data reads/writes, scoped fields, and the app rail.
- Check custom tools and any code using Studio hooks against the installed public types.
- Deploy the required schema and application changes in the intended order.
If a documented export is absent, inspect the installed package version and entry point before using private source imports as a workaround. Report a reproducible mismatch through support.
Locally validated framework builds
The shared tutorial configuration builds with Next.js 16.3.1, Astro 7.1.6 with React integration 6.0.2 and a Node adapter, and TanStack Start/Router 1.132.0 with Vite 7.1.7. These build checks use React 19.2.7 and the package set in the quickstarts. Authentication, schema deployment, and saved-data verification additionally require a live project.
CLI configuration loading
The CLI loads flexkit.config.ts (.js and .mjs are also accepted). A .tsx or .jsx configuration is refused with migration guidance: the configuration is pure data and must not import React or Studio code. At deploy time the CLI compiles each attribute’s validation to JSON Schema and rejects fragments it cannot express (refine, transform, z.date, and similar) at schema[i].attributes[j].validation, and rejects entities that reference a menu group missing from menuGroups. See schema configuration for the supported validation subset.