Rayfin

SDK

Choose the right @microsoft/rayfin-* package, keep package versions in lockstep, and find each SDK reference page.

Rayfin packages are split by capability. Most applications install only a few packages directly; the rest arrive as transitive dependencies.

Keep every @microsoft/rayfin-* package on the same exact version. Rayfin 1.36 promotes @microsoft/fabric-user-data-functions in the catalog for Functions authoring; use the matching Rayfin release version for that package too.

Changed in 1.36

Install packages at one version

All @microsoft/rayfin-* packages ship in lockstep. Do not mix @microsoft/rayfin-client@1.36.2 with @microsoft/rayfin-core@1.35.1, or a CLI from a different Rayfin release.

Packages in the Rayfin catalog that do not use the @microsoft/rayfin-* name, such as @microsoft/fabric-user-data-functions, are also published at the Rayfin release version.

npm install @microsoft/rayfin-core@1.36.2 @microsoft/rayfin-client@1.36.2

Add capability packages at the same exact version:

npm install @microsoft/rayfin-storage@1.36.2
npm install @microsoft/fabric-user-data-functions@1.36.2

Which package do I need?

I want to...Package
Define entities, fields, relationships, permissions, validation, and experimental storage folders@microsoft/rayfin-core
Query and mutate data with the typed GraphQL client@microsoft/rayfin-data
Use one configured client for data, auth, functions, and connectors@microsoft/rayfin-client
Sign users out, inspect sessions, and manage auth state@microsoft/rayfin-auth
Add Microsoft Fabric SSO and direct Entra-token sign-in@microsoft/rayfin-auth-provider-fabric
Call Rayfin Functions@microsoft/rayfin-functions
Author Rayfin Functions with udf.func(), RayfinContext, AudienceType, and generated types@microsoft/fabric-user-data-functions — documented under Functions; no SDK reference page. Changed in 1.36
Route local Functions calls from Vite while rayfin dev is running@microsoft/rayfin-local-dev — see Develop locally.
Store and serve files with experimental Storage@microsoft/rayfin-storage Experimental
Query Fabric SQL analytics endpoints, warehouses, SQL databases, and semantic models through connectors@microsoft/rayfin-connectors
Type a Fabric SQL-backed connector entity@microsoft/rayfin-connector-fabric-graphql
Type and run a Fabric semantic model connector@microsoft/rayfin-connector-fabric-semanticmodel
Maintain an existing Kusto connector@microsoft/rayfin-connector-kusto
Embed a Rayfin app outside the Fabric portal@microsoft/rayfin-embed-host New in 1.36
Persist app state in Fabric@microsoft/rayfin-app-state-fabric
Read lower-level HTTP, error, and utility types@microsoft/rayfin-lib

How the packages compose

@microsoft/rayfin-core is mostly build-time. Your rayfin/data/ and rayfin/storage/ classes import it so the CLI can generate backend configuration.

The client packages run in the browser, Functions runtime, Node.js scripts, or connector runtime. @microsoft/fabric-user-data-functions is the function-authoring surface documented in the Functions section. @microsoft/rayfin-local-dev provides development adapters such as Vite routing for local Functions calls under rayfin dev.

Experimental subpath exports

Use stable package roots for new code unless a page explicitly says otherwise.

PackageSubpathWhat remains there
@microsoft/rayfin-core/experimentalStorage-only exports: blob, StorageObject, bytes, kb, mb, gb, ContentTypes, and storage option types. Connector symbols were removed from this subpath in 1.36.
@microsoft/rayfin-client/experimentalExtendableRayfinClient and service plugin helper types; ConnectorsRayfinClient is still re-exported here for compatibility but is also exported from the stable root in 1.36.

Version notes

  • Keep the CLI, SDK packages, connector packages, and catalog packages on one Rayfin release version.
  • Install lower-level packages directly only when your code imports them. For example, @microsoft/rayfin-data, @microsoft/rayfin-auth, and @microsoft/rayfin-lib are dependencies of @microsoft/rayfin-client.
  • Storage is experimental and remains behind the storage feature gate or services.storage.enabled: true.
  • Connectors are generally available in 1.36, but rayfin up connector apply is still preview and Kusto authoring is held back for new connectors.
  • When you need the exact signature for the version installed in a project, use rayfin docs get or rayfin docs search from that project root instead of relying on a cached API shape.

In this section

Something wrong on this page?Report an issueEdit this page

On this page