Rayfin

Reference overview

Landing page for the complete Rayfin reference — CLI commands, configuration schema, SDK packages, rules for coding agents, known limitations, deprecations, and troubleshooting.

This section is exhaustive, precise detail rather than task-first guidance — reach for it when you need an exact flag, option, signature, or error message rather than an explanation of how a feature works. If you're learning a concept for the first time, the Data, Auth, or Deploy guides are a better starting point.

In this section

  • CLI — every rayfin command, subcommand, and flag.
  • Configuration — the rayfin.yml schema and every environment variable the CLI and runtime read or write.
  • SDK — API reference for every @microsoft/rayfin-* package: decorators, client construction, the query API, and auth.
  • Rules for coding agents — the condensed do/don't list for generating Rayfin code that works.
  • Known limitations — current constraints in the data client, DAB, relationships, auth, and schema apply, each with a workaround.
  • Deprecations — how to silence deprecation warnings in application code, Node.js, and browser apps.
  • Errors — a symptom → cause → fix index gathered from every troubleshooting section in the guide.

Tip

Check Known limitations before generating entities, queries, or permission decorators — several common mistakes (missing @text() length, missing permission decorators, findByPk instead of findById) are constraints, not bugs, and are documented there with the correct pattern.

Package overview

Every package that ships as part of Rayfin, from catalog.json:

PackageKindWhat it does
@microsoft/rayfin-coreSDKCode-first decorators for data model definition. The CLI reads this metadata to generate Data API Builder configuration.
@microsoft/rayfin-dataSDKDAB-compliant data client for GraphQL access patterns against the generated DAB endpoint.
@microsoft/rayfin-authSDKAuthentication helpers: session and token management, sign-in flows for Rayfin Builder apps.
@microsoft/rayfin-clientSDKHigh-level Rayfin client entrypoint composing auth and data APIs behind a single configured client.
@microsoft/rayfin-libSDKShared HTTP and client utilities used by higher-level Rayfin SDKs.
@microsoft/rayfin-functionsSDKTypeScript helpers for function-style workflows on top of Rayfin core.
@microsoft/rayfin-storageSDKType-safe blob storage client for Rayfin storage backends.
@microsoft/rayfin-auth-provider-fabricSDKMicrosoft Fabric token provider for Rayfin auth flows.
@microsoft/rayfin-cliToolCommand-line interface: scaffolding, configuration, deployment, and the rayfin docs command group for offline-friendly agent grounding.
@microsoft/rayfin-mcpToolModel Context Protocol server exposing Rayfin docs as list_docs, search_docs, get_doc, and discover_packages tools.
@microsoft/rayfin-docsToolDocs indexing/discovery library powering the CLI and MCP server. Merges installed package docs via the rayfinDocs package.json convention.
@microsoft/rayfin-guideGuideCross-cutting builder guides — getting started, auth overview, data permissions, CLI commands.
@microsoft/rayfin-host-docsHostHost service reference docs for Rayfin .NET hosting components (WebService, Auth, Storage, DataApi, Function).
@microsoft/create-rayfinToolApp scaffolding tool for bootstrapping new Rayfin projects via npm create rayfin@latest.
PromptDiagnose a Rayfin deploy error
My rayfin project just failed to deploy with `npx rayfin up` and printed a 400 error whose message includes "Dialect is required when Data module is enabled". Read https://rayfin.ai/docs/reference/errors.md and https://rayfin.ai/docs/reference/known-limitations.md to find the matching entry, then fix my rayfin/rayfin.yml so the data service has an explicit dialect and redeploy.
Something wrong on this page?Report an issueEdit this page

On this page