{"slug": "awslabs-constructs-for-quicksight-concise-business-intelligence-as-code-no-etl", "title": "awslabs/constructs-for-quicksight: Concise business intelligence as code, no ETL", "summary": "AWS Labs released constructs-for-quicksight version 1.0.0 at stable status, a TypeScript library compiled with jsii that lets developers author Amazon QuickSight dashboards, analyses, datasets, themes and topics as code without ETL. The library provides typed builders over the CloudFormation AWS::QuickSight::* model, a calculated-field expression DSL with type inference, DataPrep v2 and v3 step chains with an offline simulator, a pre-deploy rule engine, and ORM-to-dataset-schema adapters, with one API available in TypeScript, Python, Java, .NET and Go. The @cfq/core package has no CDK dependency and its cfq synth command writes a cfq.out/ directory of CLI-input request bodies, single-resource CloudFormation templates and a dependency-ordered manifest that can be applied via cfq apply, aws cloudformation deploy or the AWS CLI.", "body_md": "Amazon QuickSight dashboards, analyses, datasets, themes and topics are nested JSON documents.\nThis repository is a library for authoring them as code: typed builders over the CloudFormation\n`AWS::QuickSight::*` definition model, a calculated-field expression DSL with type inference,\nDataPrep v2 and v3 step chains with an offline simulator, a rule engine that checks definitions\nbefore deploy, and adapters that turn ORM metadata into dataset schemas.\n\nThe core is TypeScript compiled with jsii, so one API is available in TypeScript, Python, Java,\n.NET and Go. Validation is offline and schema-level: a definition can pass every rule and still be\nrefused by the service (see [Limitations and non-goals](#limitations-and-non-goals)).\n\nStatus: version 1.0.0, stability `stable`. Each release is a GitHub Release of a tag with every\nlanguage's build artifacts attached, and you pin that tag to install from it; see\n[Install](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/install.md) for how to install from a Release, or build and use the packages from a\ncheckout.\n\n`@cfq/cdk` wraps every core resource in a construct that emits the matching `aws-cdk-lib`\n`Cfn*` resource. Define the dashboard once with the `@cfq/core` builders and deploy it with the\nCDK app and pipeline you already have.\n\n`@cfq/core` has no CDK dependency. `cfq synth` runs your app entry with `CFQ_OUTDIR` set, and the\napp's `synth()` writes the `cfq.out/` directory. It holds, per resource, one `--cli-input-json`\nrequest body, one single-resource CloudFormation template and, when the resource has permissions,\na permissions request body. It also holds a manifest with the dependency order and a `.gitignore`\nof `*`. Apply the files with `cfq apply`, which runs the plan through the AWS SDK with the\nservice's consistency waits, with `aws cloudformation deploy`, or with the AWS CLI directly:\n`cfq plan --emit-inputs <dir>` writes the plan's steps in order as numbered\n`aws quicksight <operation> --cli-input-json` files into `<dir>`, a subdirectory of the assembly\ndirectory that it creates, with a `README.md` that lists them and their waits. Every file is the\nstep's resolved request body except the `update-dashboard-published-version` step, which is a\ntemplate: its `VersionNumber` is `0` and must be replaced with the version number that the\npreceding `update-dashboard` response returned before the service accepts it. A `cfq.out/` file\nis a direct CLI input only when the app had an account and region at synth time.\n\nImportant\n\nA plan file inlines data source credentials, the apply result is written beside it, and a run\nthat crashes can leave a `.cfq-<random>.tmp` temporary beside a plan written outside `cfq.out/`.\nNone of them belongs in version control. Add these four lines to your project's `.gitignore`\nbefore the first `cfq plan`.\n\n```\ncfq.out/\n*.plan.json\n*.apply.json\n.cfq-*.tmp\n```\n\nThe two jsii libraries carry one identifier per language. The Python names are the distribution\nnames of the wheels attached to each Release. The Java, .NET and Go names are placeholders until a\nregistry release is decided; [Install](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/install.md) lists them with the install and build\nsteps.\n\n| Language | `@cfq/core` | `@cfq/cdk` | \n|---|---|---|\n| TypeScript | `@cfq/core` | `@cfq/cdk` | \n| Python | `cfq-core` (module`cfq_core` ) | `cfq-cdk` (module`cfq_cdk` ) | \n| Java | `software.amazon.constructsforquicksight:cfq-core` | `software.amazon.constructsforquicksight:cfq-cdk` | \n| .NET | `Cfq.Core` | `Cfq.Cdk` | \n| Go | `github.com/awslabs/constructs-for-quicksight-go/cfqcore` | `github.com/awslabs/constructs-for-quicksight-go/cfqcdk` | \n\nThe Java packages are `software.amazon.constructsforquicksight.core` and\n`software.amazon.constructsforquicksight.cdk`.\n\nThe command line, the MCP server and the widgets are plain TypeScript and run on Node 22.13 or\nlater. The ORM adapters are written in the language of the ORM they read and run on that language's\nruntime; [adapters/README.md](https://github.com/awslabs/constructs-for-quicksight/blob/main/adapters/README.md) names the runtimes.\n\n| Package | What it is | \n|---|---|\n| [`@cfq/cli`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/cli/README.md) | The `cfq` command:`synth` ,`plan` ,`apply` ,`import` and`validate` . | \n| [`@cfq/mcp`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/mcp/README.md) | The `cfq-mcp` stdio server. Its README lists the 11 tools;`apply` exists only with`--allow-apply` . | \n| [`@cfq/widgets`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/widgets/README.md) | The KaTeX and lineage pages for a QuickSight custom-content visual. `@cfq/cdk` bundles it. | \n| [ORM adapters](https://github.com/awslabs/constructs-for-quicksight/blob/main/adapters/README.md) | SQLAlchemy, Prisma, Drizzle, TypeORM, JPA and Hibernate, EF Core, GORM and ent to a dataset schema. | \n\nInstall from a GitHub Release as [Install](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/install.md) describes, or build the packages from a\ncheckout as shown here.\n\nImportant\n\nYou need Node 22.13 or later (`.nvmrc` pins 22) and yarn 1 (classic), plus `constructs` `^10.0.0`\nbeside `@cfq/core`. To run a `.ts` entry, `cfq synth` also needs `ts-node` and `typescript`\nbeside `@cfq/cli`. They are optional peer dependencies, so a plain install does not fetch them;\na `.js` entry needs neither. `cfq plan` and `cfq apply` read AWS credentials from the SDK default\nchain. `cfq synth` and `cfq validate` never call AWS.\n\nFrom the repository root, install and build:\n\n```\nyarn install\nyarn build\n```\n\nWhen you run from a checkout, `cfq` is a shell alias for\n`node /path/to/constructs-for-quicksight/packages/cli/lib/bin/cfq.js`, which the\n[install page](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/install.md) sets up.\n\nWrite an app that builds a `QuickSightApp`. The tested program is\n[`smoke/typescript/quickstart.ts`](https://github.com/awslabs/constructs-for-quicksight/blob/main/smoke/typescript/quickstart.ts), the same app that the\n[quickstart](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/quickstart.md) builds step by step. Its first half declares the app, a data\nsource and a data set with a DataPrep v2 chain:\n\n``` js\nimport {\n  Dashboard,\n  DataPrepV2,\n  DataSet,\n  DataSource,\n  Expressions,\n  Permissions,\n  QsType,\n  QuickSightActions,\n  QuickSightApp,\n  generated,\n} from '@cfq/core';\n\n// The app holds the resources. `cfq synth` sets CFQ_OUTDIR; run on its own, the app writes to ./cfq.out.\nconst app = new QuickSightApp({ awsAccountId: '123456789012', region: 'us-east-1' });\n\nconst warehouse = new DataSource(app, 'Warehouse', {\n  resourceId: 'warehouse',\n  name: 'Warehouse',\n  typeProp: 'ATHENA',\n  parameters: { athenaParameters: { workGroup: 'primary' } },\n});\n\n// A physical table plus a DataPrep v2 chain: keep rows with a positive amount, then add a column.\nconst sales = new DataSet(app, 'Sales', {\n  resourceId: 'sales',\n  name: 'Sales',\n  dataSource: warehouse,\n  catalog: 'AwsDataCatalog',\n  schemaName: 'sales_db',\n  table: {\n    name: 'sales',\n    columns: [\n      { name: 'amount', qsType: QsType.DECIMAL },\n      { name: 'region', qsType: QsType.STRING },\n    ],\n  },\n  dataPrep: DataPrepV2.builder()\n    .filter(Expressions.parse('{amount} > 0'))\n    .createColumns([{ name: 'net_amount', expr: Expressions.parse('{amount} * 0.9') }])\n    .toDataPrep(),\n});\n```\n\nThe file goes on to declare a `Dashboard` with one KPI, then calls `app.synth()`, which validates\nevery resource and writes the assembly. Save the full program as `app.ts` and run:\n\n```\ncfq synth app.ts\ncfq validate --assembly cfq.out\ncfq plan --assembly cfq.out --region us-east-1\n```\n\nFor the full program, `cfq synth` prints the program's own output, then the command's count. These\nare the two lines [the quickstart](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/quickstart.md) records:\n\n```\n3 resources in /path/to/cfq.out\n3 resource(s) in /path/to/cfq.out\n```\n\n`cfq validate` prints one line per finding, then `<n> finding(s), <n> error(s) across <n> resource(s)`.\n`cfq plan` writes `cfq.out/cfq.plan.json` and prints `wrote <file> (<n> steps)`.\n\n`cfq plan` takes the region from `--region`, else from the region the app was built with (the\nmanifest identity), else from `AWS_REGION` or `AWS_DEFAULT_REGION`. The quickstart app sets a\nregion, so `--region` is optional there. `cfq apply --plan cfq.out/cfq.plan.json` checks the plan's\ndigest and then the caller's account (STS `GetCallerIdentity`) before any QuickSight call, asks for\nconfirmation unless you pass `--yes`, and never deletes a resource or revokes a permission.\n\nThe [documentation index](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/README.md) lists every page. The main ones:\n\n- [Install](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/install.md) : package identifiers per language and how to build them.\n- [Quickstart](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/quickstart.md) : a complete app, from synth to apply.\n- [Concepts](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/concepts.md) : the assembly layout, manifest, placeholders and findings.\n- [Rules](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/rules.md) : every rule the engine runs, with its severity.\n- [Limitations](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/limitations.md) : what the library does not do and how that shows up.\n- [Architecture](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/architecture.md) : how the packages fit together.\n- API reference: [`@cfq/core`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/core/API.md) and[`@cfq/cdk`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/cdk/API.md) , generated from the jsii assemblies.\n- [Changelog](https://github.com/awslabs/constructs-for-quicksight/blob/main/CHANGELOG.md) .\n\n- Validation is offline and schema-level. A definition can pass every rule and still be refused by\nthe service, and `cfq apply` then stops at the first failed step.\n- `cfq plan` compares nothing with the deployed state, so every existing resource gets an update\nstep on every plan.\n- `cfq apply` never deletes a resource or revokes a permission. Remove those with the AWS CLI.\n- The generated model is as current as its schema snapshot. A QuickSight property added after the snapshot has no member until the model is regenerated.\n- On Windows the 0600 file mode does nothing, so keep the assembly directory private.\n\nThe [limitations page](https://github.com/awslabs/constructs-for-quicksight/blob/main/docs/limitations.md) lists the rest and how each one shows up.\n\n`packages/core` and `packages/cdk` are jsii libraries managed by projen from the root\n`.projenrc.ts`. `packages/cli`, `packages/widgets`, `packages/mcp` and `packages/schema-gen` are\nplain TypeScript packages sharing `tsconfig.base.json`. `adapters/<language>/` holds the ORM\nadapters, each in its own language, with the helpers the TypeScript adapters share in\n`adapters/typescript/common` and the Go wire helpers in `adapters/go/cfqwire`. `smoke/` holds the\nfive-language smoke programs and `tools/parity/` the parity tool; both are yarn workspaces.\n`docs/` holds the documentation and `docs/measurements/` the records of service behavior that some\nrules cite. The API reference for the two jsii libraries is generated:\n[`packages/core/API.md`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/core/API.md) and [`packages/cdk/API.md`](https://github.com/awslabs/constructs-for-quicksight/blob/main/packages/cdk/API.md).\n\nNode 22 and yarn 1 (classic). `yarn install`, then `yarn build`, `yarn test`, `yarn lint`.\nAfter editing `.projenrc.ts` run `yarn projen`; never edit a file that starts with the projen\nmarker comment. `yarn scrub-check` runs the information-boundary scan by hand through\n`scripts/scrub-check.sh`, before a push and before a release. See [CONTRIBUTING.md](https://github.com/awslabs/constructs-for-quicksight/blob/main/CONTRIBUTING.md)\nand [RELEASE.md](https://github.com/awslabs/constructs-for-quicksight/blob/main/RELEASE.md).\n\nOpen an issue before a larger change, as [CONTRIBUTING.md](https://github.com/awslabs/constructs-for-quicksight/blob/main/CONTRIBUTING.md) asks. Report a\nvulnerability through the routes in [SECURITY.md](https://github.com/awslabs/constructs-for-quicksight/blob/main/SECURITY.md), not in a public issue.", "url": "https://wpnews.pro/news/awslabs-constructs-for-quicksight-concise-business-intelligence-as-code-no-etl", "canonical_source": "https://github.com/awslabs/constructs-for-quicksight", "published_at": "2026-12-01 05:49:50+00:00", "updated_at": "2026-12-01 06:15:14.802691+00:00", "lang": "en", "topics": ["developer-tools", "ai-products", "ai-tools"], "entities": ["AWS Labs", "Amazon QuickSight", "@cfq/core", "@cfq/cdk", "CloudFormation", "jsii", "TypeScript", "Python"], "also_reported_by": [], "takeaway": "@cfq/core 1.0.0 lets teams define QuickSight dashboards, datasets and themes as typed code and emit per-resource --cli-input-json request bodies plus a dependency-ordered manifest via cfq synth, applied with cfq apply, aws cloudformation deploy or the AWS CLI.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/awslabs-constructs-for-quicksight-concise-business-intelligence-as-code-no-etl", "markdown": "https://wpnews.pro/news/awslabs-constructs-for-quicksight-concise-business-intelligence-as-code-no-etl.md", "text": "https://wpnews.pro/news/awslabs-constructs-for-quicksight-concise-business-intelligence-as-code-no-etl.txt", "jsonld": "https://wpnews.pro/news/awslabs-constructs-for-quicksight-concise-business-intelligence-as-code-no-etl.jsonld"}}