M MSFLib Open FastAPI docs
Modular product platform

Build once. Ship across every product layer.

MSFLib is a modular foundation for teams building modern applications with shared backend infrastructure, secure access control, workspace primitives, and a growing set of cross-platform product modules. It helps teams standardize the building blocks they reuse across multiple apps without sacrificing flexibility.

7+ platforms
FastAPI backend core
React web modules
app/core/config.py
from msflib.core.config import CoreSettings
from msflib.auth.config import AuthSettings
from msflib.account.config import AccountSettings

class AppSettings(WorkspaceSettings, AccountSettings, AuthSettings, CoreSettings):
    SECRET_KEY: str = "your-secret"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8

settings = AppSettings()

Why teams use MSFLib

Shared infrastructure, less duplication, faster delivery.

⚙️

Composable backend

Install only the modules you need, from auth and accounts to workspaces, payments, and AI infrastructure.

🔐

Security by default

Authentication, token flows, scoped configuration, and access-control patterns are built for real product use.

🧩

Cross-platform modules

MSFLib spans backend packages, React frontends, and Flutter foundations.

📈

Production-ready patterns

Shared services, environment-driven settings, event hooks, and seeding help teams scale thoughtfully.

Documentation by platform

Browse the current docs set in the repo, including nested module and package documentation under the main stacks.

Backend fastapi

FastAPI

Core library, auth, accounts, workspaces, policy support, and the backend module architecture.

Starter fastapi-template

FastAPI Template

A ready-made starter app showing how to assemble the shared backend product stack in a real service.

Frontend react

React

Root React workspace docs and the app shell behind the product UI module collection.

Starter react-template

React Template

Template and scaffold docs for creating new React-based MSF apps quickly and consistently.

Utilities typescript

TypeScript

Shared TypeScript utilities and reusable patterns for modern product and library development.

Mobile flutter

Flutter

Mobile app architecture, UI patterns, and shared product infrastructure for cross-platform product work.

Designed as a full product stack

One shared foundation, multiple implementation layers.

Backend

  • FastAPI services and module composition
  • Auth, accounts, workspaces, and policies
  • Configuration, seeding, and event patterns

Frontend

  • React module systems
  • Shared TypeScript utilities
  • UI and product interaction primitives

Platform layers

  • Platform packages and monorepo workflows
  • Flutter app infrastructure
  • Cross-stack consistency and product speed
Choose the right starting point

Use the docs for the stack you are implementing and build from the shared patterns that already exist.

Good starting points

These are the clearest launch points depending on whether you are building backend services, apps, or shared frontend packages.

Start here

FastAPI

Best for backend-first products that need modular auth, workspace management, and service composition.

App starter

Template app

Ideal if you want to see a working app assembled from the shared backend modules and configuration layer.

Frontend

Web modules

Best for product teams building client interfaces around shared React conventions.