Pure infrastructure generation logic for Fjall. Detects application patterns (Next.js, Payload CMS, Remix, etc.) and generates the AWS CDK resources, IAM policies, and config required to deploy them.
This package contains no AWS SDK calls — it is a deterministic transformer from application source + config to a resource plan. Consumed by @fjall/cli and the Fjall webapp deployment worker.
Installation
npm install @fjall/generator
Usage
import { generateResourcePlan } from "@fjall/generator";
const plan = generateResourcePlan({
appPath: "./my-app",
config: fjallConfig,
});