@altertable/data-app 0.71.0 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CONTRIBUTING.md +21 -14
  2. package/README.md +2 -1
  3. package/REFERENCE.md +5 -1
  4. package/dist/chunks/index-vhaec7m5.js.map +2 -2
  5. package/dist/types/core/config.d.ts +8 -9
  6. package/docs/app-authoring.md +16 -0
  7. package/docs/client.md +1 -1
  8. package/docs/hosted-apps.md +12 -8
  9. package/docs/local-data-apps.md +1 -1
  10. package/docs/react.md +1 -1
  11. package/docs/server-bun.md +1 -1
  12. package/docs/stories-and-export.md +1 -1
  13. package/docs/views.md +1 -1
  14. package/package.json +1 -2
  15. package/examples/starter-data-app/index.tsx +0 -193
  16. package/examples/starter-local-data-app/.bun-version +0 -1
  17. package/examples/starter-local-data-app/.node-version +0 -1
  18. package/examples/starter-local-data-app/.oxfmtrc.json +0 -4
  19. package/examples/starter-local-data-app/.oxlintrc.json +0 -33
  20. package/examples/starter-local-data-app/AGENTS.md +0 -22
  21. package/examples/starter-local-data-app/README.md +0 -56
  22. package/examples/starter-local-data-app/app.ts +0 -28
  23. package/examples/starter-local-data-app/bunfig.toml +0 -2
  24. package/examples/starter-local-data-app/package.json +0 -35
  25. package/examples/starter-local-data-app/src/App.tsx +0 -8
  26. package/examples/starter-local-data-app/src/assets.d.ts +0 -1
  27. package/examples/starter-local-data-app/src/data-context.ts +0 -21
  28. package/examples/starter-local-data-app/src/favicon.svg +0 -13
  29. package/examples/starter-local-data-app/src/index.html +0 -14
  30. package/examples/starter-local-data-app/src/main.tsx +0 -7
  31. package/examples/starter-local-data-app/src/operations.ts +0 -6
  32. package/examples/starter-local-data-app/src/server.ts +0 -6
  33. package/examples/starter-local-data-app/tsconfig.json +0 -21
package/CONTRIBUTING.md CHANGED
@@ -10,16 +10,17 @@ bun run check
10
10
 
11
11
  ## Find the code
12
12
 
13
- | Task | Location |
14
- | --------------------------------------- | -------------------------------------------------------------- |
15
- | Operations, validation, and data state | `packages/data-app/src/core` |
16
- | Browser clients and navigation | `packages/data-app/src/client` |
17
- | Request authorization and local serving | `packages/data-app/src/server`, `packages/data-app-bun/src` |
18
- | Iframe hosting and bootstrap | `packages/data-app-embed`, `packages/data-app-worker` |
19
- | React bindings and UI | `packages/data-app-react/src` |
20
- | Consumer examples | `examples/starter-local-data-app`, `examples/starter-data-app` |
21
- | Public guides | `docs` |
22
- | Build, package checks, and releases | `scripts` |
13
+ | Task | Location |
14
+ | --------------------------------------- | ----------------------------------------------------------- |
15
+ | Static source manifest tooling | `packages/data-app-manifest` |
16
+ | Operations, validation, and data state | `packages/data-app/src/core` |
17
+ | Browser clients and navigation | `packages/data-app/src/client` |
18
+ | Request authorization and local serving | `packages/data-app/src/server`, `packages/data-app-bun/src` |
19
+ | Iframe hosting and bootstrap | `packages/data-app-embed`, `packages/data-app-worker` |
20
+ | React bindings and UI | `packages/data-app-react/src` |
21
+ | Consumer examples | `packages/data-app-examples/templates` |
22
+ | Public guides | `docs` |
23
+ | Build, package checks, and releases | `scripts` |
23
24
 
24
25
  Keep browser entries free of server implementations and credentials. Core,
25
26
  client, server, and embed remain independent of React. Implementations import
@@ -43,11 +44,17 @@ fallbacks minimal.
43
44
 
44
45
  ## Workspace packages
45
46
 
46
- The root is private. Publishable packages live in `packages/`; examples remain
47
- private workspaces. `scripts/packages.ts` lists packages in dependency order.
47
+ The root is private. Publishable packages live in `packages/`; the local starter remains a private workspace. Canonical templates live in
48
+ `packages/data-app-examples/templates` and ship only in `@altertable/data-app-examples`. `scripts/packages.ts` lists packages in dependency order.
48
49
  Run `bun run build` from the root to build JavaScript, declarations, explicit
49
50
  styles, the embed bootstrap, the bundled preview host, and the standalone Worker.
50
51
  Package-level builds require their dependencies to have been built first.
52
+ Scaffolding tools consume the examples package catalog and `copyExample()`;
53
+ template selection and destination handling belong to the caller.
54
+
55
+ `@altertable/data-app-manifest` owns TypeScript 5 for static source extraction.
56
+ Keep compiler dependencies in this tooling package; runtime packages must not
57
+ depend on it. Root tooling and declaration builds use TypeScript 7.
51
58
 
52
59
  Every package declares its own runtime dependencies and peers. Cross-package
53
60
  builds externalize dependencies to preserve shared module identity. The Worker,
@@ -80,7 +87,7 @@ Update the relevant guide when changing public behavior. In documentation prose,
80
87
  write functions as `functionName()` and components as `<ComponentName>`. Keep JSDoc for
81
88
  constraints, ownership, units, and runtime boundaries; leave implementation
82
89
  explanations in the code. App instructions belong in the consuming app's
83
- `AGENTS.md`; see the [local starter](https://github.com/altertable-ai/data-app/tree/main/examples/starter-local-data-app)
90
+ `AGENTS.md`; see the [local starter](https://github.com/altertable-ai/data-app/tree/main/packages/data-app-examples/templates/starter-local-data-app)
84
91
  and [hosted authoring](docs/hosted-apps.md).
85
92
 
86
93
  `bun run check` builds first and runs all required source, Markdown, local link, package, and starter
@@ -132,7 +139,7 @@ against a mocked Altertable API
132
139
  started with Testcontainers and stopped on exit. Public API tests use their own deterministic consumer fixtures.
133
140
 
134
141
  Run `bun run dev:file <path>` to preview a single-file data app such as
135
- `examples/starter-data-app/index.tsx` from anywhere on disk, or `bun run dev:dir <path>`
142
+ `packages/data-app-examples/templates/starter-data-app/index.tsx` from anywhere on disk, or `bun run dev:dir <path>`
136
143
  for a local data app directory with `src/server.ts`. Both resolve `@altertable/data-app`
137
144
  and React from this checkout's package builds, so the app needs no install. Run `bun run build`
138
145
  after package changes. File previews replace the app iframe on edits and preserve
package/README.md CHANGED
@@ -30,7 +30,8 @@ UI or `@altertable/data-app-embed` to host an app. This package requires no Reac
30
30
 
31
31
  ## Documentation
32
32
 
33
- Start with [app authoring](docs/app-authoring.md). Guides, starters, and
33
+ Start with [app authoring](docs/app-authoring.md). Use the installed,
34
+ [release-matched starters](docs/app-authoring.md#use-release-matched-starters). Guides and
34
35
  [agent instructions](AGENTS.md) ship with this package.
35
36
 
36
37
  ## License
package/REFERENCE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @altertable/data-app API reference
2
2
 
3
3
  Generated from the published type declarations by `bun run build`; do not
4
- edit. Each of the 417 public exports has one heading line, then
4
+ edit. Each of the 421 public exports has one heading line, then
5
5
  one line per prop, option, or field, so one search returns everything about a
6
6
  name:
7
7
 
@@ -351,6 +351,7 @@ ConnectionOperation.run: (context: OperationContext, input: Record<string, never
351
351
  ConnectionOperation.checks: readonly [Record<string, never>, ...Record<string, never>[]]
352
352
  ConnectionOperation.policy: { maxQueryRows: number; maxDurationMs: number; maxResponseBytes?: number | undefined; }
353
353
  ConnectionOperation.queryNames: { readonly connection: 'connection'; }
354
+ copyExample (function, @altertable/data-app-examples): (id: DataAppExampleId, destination: string): Promise<void> — Copy a starter into a new directory; reject existing destinations.
354
355
  createAnnotationClient (function, @altertable/data-app/client): (transport: MessageTransport): { requestSendAnnotations(options?: { signal?: AbortSignal | undefined; } | undefined): Promise<null>; reportAnnotationEditorState(state: { hasUnsavedChanges: boolean; }, options?: { ...; } | undefined): Promise<...>; addAnnotation(draft: DataAppAnnotationDraft, option… — Deliver annotations to the authenticated host. Acknowledgement means retained, not sent to an agent.
355
356
  createDataAppNavigation (function, @altertable/data-app/client): (options: {…}): DataAppNavigation — Attach app URL behavior to an already authenticated bridge.
356
357
  createDataAppNavigation.options.bridge: { logger: DataAppLogger; request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>; transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<...>; ... 6 more ...; fail(cause?: unknown): void; }
@@ -480,6 +481,8 @@ DataAppError (class, @altertable/data-app/client)
480
481
  DataAppError.code: string
481
482
  DataAppError.requestId?: string
482
483
  DataAppError.…: plus props inherited from built-in
484
+ DataAppExampleId (type, @altertable/data-app-examples): = 'starter-data-app' | 'starter-local-data-app' — Stable identifier for a canonical starter.
485
+ dataAppExamples (const, @altertable/data-app-examples): readonly [{ readonly id: 'starter-data-app'; readonly title: 'Hosted data app'; readonly description: 'A single-file React app for hosted execution.'; readonly mode: 'hosted'; }, { readonly id: 'starter-local-data-app'; readonly title: 'Local data app'; readonly description: 'A Bun and React projec… — Canonical starters available to scaffolding tools. IDs are stable across releases.
483
486
  DataAppHost (type, @altertable/data-app-embed)
484
487
  DataAppHost.dispose: () => void
485
488
  DataAppHost.setPresentation: (presentation?: DataAppPresentation | undefined) => void
@@ -978,6 +981,7 @@ getDataAppNavigation (function, @altertable/data-app/client): (frame: Window): D
978
981
  getDataAppNavigation.frame.…: plus props inherited from built-in
979
982
  getDataAppTransport (function, @altertable/data-app/client): (frame: Window): { logger: DataAppLogger; request: (message: RoutedMessage, signal?: AbortSignal | undefined) => Promise<unknown>; transport: (operation: string, input: unknown, signal?: AbortSignal | undefined) => Promise<...>; ... 6 more ...; fail(cause?: unknown): void; } | undefined — The bootstrap installs this before executing app code. URL apps can install an explicit connection.
980
983
  getDataAppTransport.frame.…: plus props inherited from built-in
984
+ getExampleDirectory (function, @altertable/data-app-examples): (id: DataAppExampleId): string — Absolute source directory. Use copyExample() to restore npm-excluded filenames.
981
985
  GettingStarted (component, @altertable/data-app-react/ui): (props: {…}) — Query-backed connection state and next steps for a newly created app. Mount within `DataAppProvider` and register `connection: connectionCheck(app.queries)` on the server.
982
986
  GettingStarted.dataContext: DataContext
983
987
  GlossaryDefinition (component, @altertable/data-app-react/ui): (props: GlossaryDefinitionProps)
@@ -2,9 +2,9 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/core/config.ts"],
4
4
  "sourcesContent": [
5
- "import {\n bindDimensionSource,\n type DimensionSourceConfig,\n type DimensionSourceQueryName,\n type SourceDimensionVariable,\n} from './dimension-source.ts';\n/**\n * App configuration shared by browser and server.\n * @module @altertable/data-app\n */\nimport { defineOperation, type OperationDefinition } from './contract.ts';\nimport type { AppearanceOptions } from './appearance.ts';\nimport {\n snapshotQueries,\n type QueryDefinitions,\n type CheckedQueries,\n type QuerySnapshot,\n} from './queries.ts';\nexport type {\n QueryDefinitions,\n QueryParameterValue,\n QueryParameter,\n QueryValueType,\n QueryField,\n QueryProjections,\n QueryRow,\n} from './queries.ts';\n\nexport type DataAppConfig<Queries extends QueryDefinitions = QueryDefinitions> =\n {\n title: string;\n /** Display labels; scope does not grant data access. */\n scope: { organization: string; environment: string };\n /** Explain what the app helps readers explore. */\n description: string;\n /** Omit to use the standard appearance. */\n appearance?: AppearanceOptions;\n /** Shared date display defaults. Reporting views and individual fields may override the time zone. */\n dateFormatting?: { locale?: string; timeZone?: string };\n /** Named SQL statements with typed parameters and result projections. */\n queries: Queries;\n };\n\n/** An app declaration with operations bound to its query registry. */\nexport type DataAppDefinition<\n Queries extends QueryDefinitions = QueryDefinitions,\n> = Readonly<Omit<DataAppConfig<Queries>, 'queries'>> & {\n readonly queries: QuerySnapshot<Queries>;\n defineDimension<const Type extends 'string' | 'number'>(\n config: DimensionSourceConfig<Type> & {\n source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>> };\n }\n ): SourceDimensionVariable<{ string: string; number: number }[Type]>;\n defineOperation<Input, Output>(\n operation: OperationDefinition<Input, Output, Queries>\n ): ReturnType<typeof defineOperation<Input, Output, Queries>>;\n};\n\n/**\n * Define the app's query source of truth while preserving exact query and parameter names.\n * Use `app.defineOperation()` to bind operations to these queries. Pass the app once\n * to `mountDataApp({ app, component })` or `<DataAppProvider app={app}>`.\n * The app owns an immutable snapshot of its registry; later input mutations do not change it.\n * This declaration does not execute queries or mount UI. Static apps use `queries: {}`.\n *\n * Declare exactly one module-level const initialized with `defineDataApp({ ... })` in the app's\n * declaration source. For the future backend extractor, the argument is read before bundling\n * by resolving the named `defineDataApp` import from `@altertable/data-app`, including aliases.\n * Variable name is arbitrary;\n * export only for imports by other modules. The argument must be a direct object literal\n * containing schema-valid objects, arrays, strings (including templates without interpolation),\n * finite signed numbers, booleans, and null. No spreads, computed keys, references, calls,\n * or callbacks inside it. Extraction must validate data without evaluating app code.\n * TypeScript checks the shape, not AST syntax. Keep executable composition outside the call.\n *\n * SQL passes unchanged to the backend, which interprets placeholders such as `$orgId`.\n * Declare each parameter's type and optional defaultValue.\n * Values are finite numbers, strings, booleans, or null, never SQL fragments or identifiers.\n * Host queryParams supply protected values; callers cannot override them.\n */\nexport function defineDataApp<const Queries extends QueryDefinitions>(\n config: DataAppConfig<Queries> & { queries: CheckedQueries<Queries> }\n): DataAppDefinition<Queries> {\n const queries = snapshotQueries<Queries>(config.queries);\n return Object.freeze({\n ...config,\n queries,\n defineDimension<const Type extends 'string' | 'number'>(\n config: DimensionSourceConfig<Type> & {\n source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>> };\n }\n ) {\n return bindDimensionSource<Type>(config, queries);\n },\n defineOperation<Input, Output>(\n operation: OperationDefinition<Input, Output, Queries>\n ) {\n return defineOperation<Input, Output, Queries>({\n ...operation,\n queries: queries as unknown as CheckedQueries<Queries>,\n });\n },\n });\n}\n\nexport function dataAppTitle(\n config: Pick<DataAppConfig, 'title' | 'scope'>\n): string {\n return `${config.title} • ${config.scope.organization}/${config.scope.environment} • Altertable app`;\n}\n"
5
+ "import {\n bindDimensionSource,\n type DimensionSourceConfig,\n type DimensionSourceQueryName,\n type SourceDimensionVariable,\n} from './dimension-source.ts';\n/**\n * App configuration shared by browser and server.\n * @module @altertable/data-app\n */\nimport { defineOperation, type OperationDefinition } from './contract.ts';\nimport type { AppearanceOptions } from './appearance.ts';\nimport {\n snapshotQueries,\n type QueryDefinitions,\n type CheckedQueries,\n type QuerySnapshot,\n} from './queries.ts';\nexport type {\n QueryDefinitions,\n QueryParameterValue,\n QueryParameter,\n QueryValueType,\n QueryField,\n QueryProjections,\n QueryRow,\n} from './queries.ts';\n\nexport type DataAppConfig<Queries extends QueryDefinitions = QueryDefinitions> =\n {\n title: string;\n /** Display labels; scope does not grant data access. */\n scope: { organization: string; environment: string };\n /** Explain what the app helps readers explore. */\n description: string;\n /** Omit to use the standard appearance. */\n appearance?: AppearanceOptions;\n /** Shared date display defaults. Reporting views and individual fields may override the time zone. */\n dateFormatting?: { locale?: string; timeZone?: string };\n /** Named SQL statements with typed parameters and result projections. */\n queries: Queries;\n };\n\n/** An app declaration with operations bound to its query registry. */\nexport type DataAppDefinition<\n Queries extends QueryDefinitions = QueryDefinitions,\n> = Readonly<Omit<DataAppConfig<Queries>, 'queries'>> & {\n readonly queries: QuerySnapshot<Queries>;\n defineDimension<const Type extends 'string' | 'number'>(\n config: DimensionSourceConfig<Type> & {\n source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>> };\n }\n ): SourceDimensionVariable<{ string: string; number: number }[Type]>;\n defineOperation<Input, Output>(\n operation: OperationDefinition<Input, Output, Queries>\n ): ReturnType<typeof defineOperation<Input, Output, Queries>>;\n};\n\n/**\n * Define the app's query source of truth while preserving exact query and parameter names.\n * Use `app.defineOperation()` to bind operations to these queries. Pass the app once\n * to `mountDataApp({ app, component })` or `<DataAppProvider app={app}>`.\n * The app owns an immutable snapshot of its registry; later input mutations do not change it.\n * This declaration does not execute queries or mount UI. Static apps use `queries: {}`.\n *\n * Declare the app once at module scope using the named import from `@altertable/data-app`.\n * Import aliases are allowed. Prefer a `const` initializer; top-level variable\n * initializers, default exports, and standalone calls are supported.\n * Use literal objects, arrays, strings (including templates without interpolation),\n * finite signed numbers, booleans, and null. Parentheses, `as`, and `satisfies` are\n * allowed. Keep executable composition outside the call; omit spreads, computed keys,\n * references, and callbacks. Extraction reads literals without executing app code.\n * TypeScript and runtime query rules own configuration validation.\n *\n * SQL passes unchanged to the backend, which interprets placeholders such as `$orgId`.\n * Declare each parameter's type and optional defaultValue.\n * Values are finite numbers, strings, booleans, or null, never SQL fragments or identifiers.\n * Host queryParams supply protected values; callers cannot override them.\n */\nexport function defineDataApp<const Queries extends QueryDefinitions>(\n config: DataAppConfig<Queries> & { queries: CheckedQueries<Queries> }\n): DataAppDefinition<Queries> {\n const queries = snapshotQueries<Queries>(config.queries);\n return Object.freeze({\n ...config,\n queries,\n defineDimension<const Type extends 'string' | 'number'>(\n config: DimensionSourceConfig<Type> & {\n source: { query: DimensionSourceQueryName<Queries, NoInfer<Type>> };\n }\n ) {\n return bindDimensionSource<Type>(config, queries);\n },\n defineOperation<Input, Output>(\n operation: OperationDefinition<Input, Output, Queries>\n ) {\n return defineOperation<Input, Output, Queries>({\n ...operation,\n queries: queries as unknown as CheckedQueries<Queries>,\n });\n },\n });\n}\n\nexport function dataAppTitle(\n config: Pick<DataAppConfig, 'title' | 'scope'>\n): string {\n return `${config.title} • ${config.scope.organization}/${config.scope.environment} • Altertable app`;\n}\n"
6
6
  ],
7
- "mappings": ";;;;;;;AAgFO,SAAS,cAAqD,CACnE,QAC4B;AAAA,EAC5B,MAAM,UAAU,gBAAyB,OAAO,OAAO;AAAA,EACvD,OAAO,OAAO,OAAO;AAAA,OAChB;AAAA,IACH;AAAA,IACA,eAAuD,CACrD,QAGA;AAAA,MACA,OAAO,oBAA0B,QAAQ,OAAO;AAAA;AAAA,IAElD,eAA8B,CAC5B,WACA;AAAA,MACA,OAAO,iBAAwC;AAAA,WAC1C;AAAA,QACH;AAAA,MACF,CAAC;AAAA;AAAA,EAEL,CAAC;AAAA;AAGI,SAAS,aAAY,CAC1B,QACQ;AAAA,EACR,OAAO,GAAG,OAAO,WAAW,OAAO,MAAM,gBAAgB,OAAO,MAAM;AAAA;",
7
+ "mappings": ";;;;;;;AA+EO,SAAS,cAAqD,CACnE,QAC4B;AAAA,EAC5B,MAAM,UAAU,gBAAyB,OAAO,OAAO;AAAA,EACvD,OAAO,OAAO,OAAO;AAAA,OAChB;AAAA,IACH;AAAA,IACA,eAAuD,CACrD,QAGA;AAAA,MACA,OAAO,oBAA0B,QAAQ,OAAO;AAAA;AAAA,IAElD,eAA8B,CAC5B,WACA;AAAA,MACA,OAAO,iBAAwC;AAAA,WAC1C;AAAA,QACH;AAAA,MACF,CAAC;AAAA;AAAA,EAEL,CAAC;AAAA;AAGI,SAAS,aAAY,CAC1B,QACQ;AAAA,EACR,OAAO,GAAG,OAAO,WAAW,OAAO,MAAM,gBAAgB,OAAO,MAAM;AAAA;",
8
8
  "debugId": "2D478F750D53861564756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -46,15 +46,14 @@ export type DataAppDefinition<Queries extends QueryDefinitions = QueryDefinition
46
46
  * The app owns an immutable snapshot of its registry; later input mutations do not change it.
47
47
  * This declaration does not execute queries or mount UI. Static apps use `queries: {}`.
48
48
  *
49
- * Declare exactly one module-level const initialized with `defineDataApp({ ... })` in the app's
50
- * declaration source. For the future backend extractor, the argument is read before bundling
51
- * by resolving the named `defineDataApp` import from `@altertable/data-app`, including aliases.
52
- * Variable name is arbitrary;
53
- * export only for imports by other modules. The argument must be a direct object literal
54
- * containing schema-valid objects, arrays, strings (including templates without interpolation),
55
- * finite signed numbers, booleans, and null. No spreads, computed keys, references, calls,
56
- * or callbacks inside it. Extraction must validate data without evaluating app code.
57
- * TypeScript checks the shape, not AST syntax. Keep executable composition outside the call.
49
+ * Declare the app once at module scope using the named import from `@altertable/data-app`.
50
+ * Import aliases are allowed. Prefer a `const` initializer; top-level variable
51
+ * initializers, default exports, and standalone calls are supported.
52
+ * Use literal objects, arrays, strings (including templates without interpolation),
53
+ * finite signed numbers, booleans, and null. Parentheses, `as`, and `satisfies` are
54
+ * allowed. Keep executable composition outside the call; omit spreads, computed keys,
55
+ * references, and callbacks. Extraction reads literals without executing app code.
56
+ * TypeScript and runtime query rules own configuration validation.
58
57
  *
59
58
  * SQL passes unchanged to the backend, which interprets placeholders such as `$orgId`.
60
59
  * Declare each parameter's type and optional defaultValue.
@@ -42,6 +42,22 @@ Choose the execution path:
42
42
  | Data app (hosted / remote / cloud) | [Single-file authoring](hosted-apps.md) |
43
43
  | Local data app | [Local authoring](local-data-apps.md) |
44
44
 
45
+ ### Use release-matched starters
46
+
47
+ Install `@altertable/data-app-examples` at the same exact version as
48
+ `@altertable/data-app`. Use its installed templates when authoring an app:
49
+
50
+ - Hosted app: `node_modules/@altertable/data-app-examples/templates/starter-data-app/index.tsx`.
51
+ - Local app: `node_modules/@altertable/data-app-examples/templates/starter-local-data-app`.
52
+ Use `copyExample()` from the examples package to copy the local starter and
53
+ restore its `.gitignore`; see the installed examples package's README.
54
+
55
+ Browse the latest [hosted starter](https://github.com/altertable-ai/data-app/blob/main/packages/data-app-examples/templates/starter-data-app/index.tsx)
56
+ and [local starter](https://github.com/altertable-ai/data-app/tree/main/packages/data-app-examples/templates/starter-local-data-app)
57
+ on GitHub. These browsing links track `main`; the installed templates match your SDK release.
58
+
59
+ ### Compose the app
60
+
45
61
  Lead with a supported finding and expose the relevant fields as filter variables. Use a date filter for questions worth exploring over time,
46
62
  or a fixed period snapshot for a deliberate historical analysis.
47
63
 
package/docs/client.md CHANGED
@@ -37,7 +37,7 @@ See [contracts](contract.md), [server handlers](server.md), and
37
37
 
38
38
  ## Browser-owned operations for bundle apps
39
39
 
40
- Start with the complete [single-file example](../examples/starter-data-app/index.tsx)
40
+ Start with the complete [single-file example](app-authoring.md#use-release-matched-starters)
41
41
  and [data app authoring guide](hosted-apps.md).
42
42
  Bundle apps pass their operation registry as a value:
43
43
 
@@ -1,15 +1,19 @@
1
1
  # Author a data app
2
2
 
3
- Follow the [shared authoring flow](app-authoring.md) using [index.tsx](../examples/starter-data-app/index.tsx) for a hosted / remote / cloud data app. Keep the app in
3
+ Follow the [shared authoring flow](app-authoring.md) using [index.tsx](app-authoring.md#use-release-matched-starters) for a hosted / remote / cloud data app. Keep the app in
4
4
  one file with public package imports; omit server files, HTML, credentials, and
5
5
  relative or app-alias imports.
6
6
 
7
- Declare exactly one top-level const initialized with `defineDataApp({ ... })`, imported
8
- from `@altertable/data-app`. Keep executable composition outside its literal argument.
9
- For the future backend extractor, use schema-valid literals without spreads, computed keys,
10
- references, calls, or template interpolation. Extraction will read and validate the argument
11
- before bundling, without evaluating app code or parsing SQL. Import aliases and any variable
12
- name are allowed; export only for other modules. Static apps use `queries: {}`.
7
+ Declare the app once at module scope with the named `defineDataApp` import from
8
+ `@altertable/data-app`. Prefer `const app = defineDataApp({ ... })`; import aliases
9
+ and any variable name are allowed. Export only for other modules.
10
+
11
+ Keep the argument literal: objects, arrays, strings (including templates without
12
+ interpolation), finite signed numbers, booleans, and null. Parentheses, `as`, and
13
+ `satisfies` are allowed. Keep executable composition outside the call; omit spreads,
14
+ computed keys, references, and callbacks. Static apps use `queries: {}`.
15
+ TypeScript checks configuration shape. Static extraction reads the literal data
16
+ without executing app code or interpreting SQL.
13
17
 
14
18
  Replace the sample app declaration, operations, filters, data context, CSV export, and story with
15
19
  an exploration of the source data you inspected. The starter uses two SQL
@@ -25,7 +29,7 @@ For execution details, see [browser-owned operations](client.md#browser-owned-op
25
29
 
26
30
  1. Combine the app's operations and parsers, data context, views, story,
27
31
  CSV export, app declaration, and browser entry into one `index.tsx`, following the
28
- [single-file starter](../examples/starter-data-app/index.tsx).
32
+ [single-file starter](app-authoring.md#use-release-matched-starters).
29
33
  2. Replace the HTTP client with `createDataClient({ operations })`, using the
30
34
  operation registry as a value. See [browser-owned operations](client.md#browser-owned-operations-for-bundle-apps)
31
35
  for execution through the host.
@@ -1,6 +1,6 @@
1
1
  # Author a local data app
2
2
 
3
- Start from the CLI scaffold or the [local starter](https://github.com/altertable-ai/data-app/tree/main/examples/starter-local-data-app).
3
+ Start from the CLI scaffold or the [local starter](app-authoring.md#use-release-matched-starters).
4
4
  Use the starter's README for setup and its AGENTS.md to find app-owned files.
5
5
  Replace the connectivity screen with the exploration, CSV export, and story from the
6
6
  [shared authoring flow](app-authoring.md).
package/docs/react.md CHANGED
@@ -37,4 +37,4 @@ Use `@altertable/data-app-react` for declared views, bound widgets, and layouts.
37
37
  | Host an iframe from React | [React embed](react-embed.md) |
38
38
 
39
39
  Start with [app authoring](app-authoring.md) and the
40
- [single-file starter](../examples/starter-data-app/index.tsx).
40
+ [single-file starter](app-authoring.md#use-release-matched-starters).
@@ -1,7 +1,7 @@
1
1
  # Local Bun server
2
2
 
3
3
  Use this Bun server for local data apps. Start from the CLI scaffold or
4
- [local data app starter](https://github.com/altertable-ai/data-app/tree/main/examples/starter-local-data-app).
4
+ [local data app starter](app-authoring.md#use-release-matched-starters).
5
5
 
6
6
  Import `serveLocalApp()` and `localLakehouse()` from
7
7
  `@altertable/data-app-bun`. This entry requires Bun; install `@types/bun`
@@ -8,7 +8,7 @@ or pass a direct `CsvExport` object.
8
8
  ## Present data with stories
9
9
 
10
10
  Set `story` on `<DataApp>` to enable **Present story** in the toolbar.
11
- For custom shells, `@altertable/data-app-react/ui` provides `<PresentStory>`; see [direct UI composition](ui.md). Start from the [data app starter](../examples/starter-data-app/index.tsx).
11
+ For custom shells, `@altertable/data-app-react/ui` provides `<PresentStory>`; see [direct UI composition](ui.md). Start from the [data app starter](app-authoring.md#use-release-matched-starters).
12
12
 
13
13
  Return one to four findings with a headline, a visual, and registered source
14
14
  evidence. Set `evidence` to the registered dataset or metric binding. The app
package/docs/views.md CHANGED
@@ -41,7 +41,7 @@ to derive their bindings. Other input shapes require typed
41
41
  inside the operation rather than replacing the selections in the view input.
42
42
  The operation and `ActivityWidgets` are app-owned. The bound widgets derive
43
43
  loading content from their source; see [widgets](widgets.md) and the
44
- [complete starter](../examples/starter-data-app/index.tsx). Define
44
+ [complete starter](app-authoring.md#use-release-matched-starters). Define
45
45
  [filters](variables.md), [context and evidence](data-context.md), and
46
46
  [story and datasets](stories-and-export.md) for the app's question.
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altertable/data-app",
3
- "version": "0.71.0",
3
+ "version": "0.72.0",
4
4
  "description": "Portable definitions, contracts, formatting, browser clients, and request handlers for Altertable data apps.",
5
5
  "keywords": [
6
6
  "altertable",
@@ -28,7 +28,6 @@
28
28
  "README.md",
29
29
  "LICENSE",
30
30
  "docs",
31
- "examples",
32
31
  "AGENTS.md",
33
32
  "CONTRIBUTING.md",
34
33
  "REFERENCE.md"
@@ -1,193 +0,0 @@
1
- import { formatMetric } from '@altertable/data-app/format';
2
- import { createDataClient } from '@altertable/data-app/client';
3
- import { defineDataApp } from '@altertable/data-app';
4
- import { parseCount } from '@altertable/data-app/contract';
5
- import {
6
- createDataContext,
7
- createDataHooks,
8
- DataApp,
9
- DataSection,
10
- DataValue,
11
- TableWidget,
12
- Grid,
13
- Stack,
14
- TextContent,
15
- injectDataAppStyles,
16
- mountDataApp,
17
- MetricWidget,
18
- searchVariable,
19
- } from '@altertable/data-app-react';
20
-
21
- const dataApp = defineDataApp({
22
- title: 'Sample counts',
23
- description: 'Explore sample counts by group.',
24
- scope: { organization: 'demo', environment: 'sample' },
25
- appearance: { theme: 'system' },
26
- queries: {
27
- sampleCountsByGroup: {
28
- projections: {
29
- group_name: { type: 'string' },
30
- sample_count: { type: 'number' },
31
- },
32
- statement: `
33
- WITH sample_counts(group_name, sample_count) AS (VALUES ('Alpha', 2200000), ('Beta', 0))
34
- SELECT group_name, sample_count FROM sample_counts
35
- WHERE $groupName = '' OR group_name = $groupName
36
- ORDER BY group_name LIMIT $limit`,
37
- params: {
38
- groupName: { type: 'string', defaultValue: '' },
39
- limit: { type: 'number', defaultValue: 10 },
40
- },
41
- },
42
- },
43
- });
44
- function parseSampleCountFilter(value: unknown) {
45
- if (
46
- !value ||
47
- typeof value !== 'object' ||
48
- !('groupName' in value) ||
49
- typeof value.groupName !== 'string' ||
50
- value.groupName.length > 40
51
- )
52
- throw new Error('Expected a group name of at most 40 characters.');
53
- return { groupName: value.groupName };
54
- }
55
- const operations = {
56
- sampleCountsByGroup: dataApp.defineOperation({
57
- input: parseSampleCountFilter,
58
- checks: [
59
- { groupName: '' },
60
- { groupName: 'Alpha' },
61
- { groupName: 'missing' },
62
- ],
63
- policy: { maxQueryRows: 10, maxDurationMs: 15000 },
64
- async run({ query }, { groupName }) {
65
- const queryResult = await query('sampleCountsByGroup', { groupName });
66
- return queryResult.rows.map(row => ({
67
- groupName: row.group_name,
68
- sampleCount: parseCount(row.sample_count),
69
- }));
70
- },
71
- }),
72
- };
73
- const queryNames = operations.sampleCountsByGroup.queryNames;
74
- const sampleDataContext = createDataContext(queryNames)({
75
- description:
76
- 'Two SQL VALUES rows demonstrate the host query path. Replace them with inspected source data before publishing findings.',
77
- glossary: {
78
- sampleCount: {
79
- term: 'Sample count',
80
- definition:
81
- 'A fixture value: Alpha is 2,200,000 and Beta is a measured zero.',
82
- queryNames: [queryNames.sampleCountsByGroup],
83
- },
84
- },
85
- });
86
- const { defineDataView } = createDataHooks(createDataClient({ operations }));
87
- const sampleCountsView = defineDataView({
88
- dataContext: sampleDataContext,
89
- operation: 'sampleCountsByGroup',
90
- variables: {
91
- groupName: searchVariable({
92
- key: 'group',
93
- label: 'Group',
94
- defaultValue: '',
95
- }),
96
- },
97
- describeInput: ({ groupName }) =>
98
- groupName ? `group ${groupName}` : 'all groups',
99
- isEmpty: sampleCounts => sampleCounts.length === 0,
100
- emptyFallback: {
101
- title: 'No matching groups',
102
- description: 'Try Alpha, Beta, or clear the group filter.',
103
- },
104
- });
105
- const sampleCounts = sampleCountsView.dataset({
106
- name: 'Sample counts',
107
- select: rows => rows,
108
- rowKey: row => row.groupName,
109
- columns: {
110
- groupName: { label: 'Group', value: row => row.groupName },
111
- sampleCount: { value: row => row.sampleCount, format: { kind: 'count' } },
112
- },
113
- evidence: {
114
- id: 'counts-by-group',
115
- glossaryIds: ['sampleCount'],
116
- },
117
- });
118
- const totalSamples = sampleCountsView.metric(
119
- {
120
- id: 'total-samples',
121
- glossaryId: 'sampleCount',
122
- label: 'Total samples',
123
- format: { kind: 'count', compact: true },
124
- },
125
- rows => ({ current: rows.reduce((sum, row) => sum + row.sampleCount, 0) })
126
- );
127
- const sampleContent = sampleCountsView.content(result => (
128
- <Stack aria-label="Sample results">
129
- <TextContent>
130
- <p>
131
- Showing <DataValue scope={result.scope} />
132
- </p>
133
- </TextContent>
134
- <Grid columns={2}>
135
- <MetricWidget
136
- metric={totalSamples}
137
- source={result}
138
- description="Sum of the fixture counts in the selected groups."
139
- />
140
- <TableWidget
141
- dataset={sampleCounts}
142
- source={result}
143
- title="Counts by group"
144
- description="Alpha and Beta demonstrate measured values, including zero."
145
- pagination={false}
146
- />
147
- </Grid>
148
- </Stack>
149
- ));
150
- function App() {
151
- return (
152
- <DataApp
153
- view={sampleCountsView}
154
- datasets={[sampleCounts]}
155
- story={snapshot => {
156
- const total = totalSamples.read(snapshot);
157
- const scope = sampleCountsView.scope(snapshot);
158
- return [
159
- {
160
- id: 'total-samples',
161
- headline: `Total samples: ${formatMetric(total.value.current, totalSamples.definition.format)}`,
162
- context: `Demonstration values for ${scope}.`,
163
- visual: <MetricWidget metric={totalSamples} source={snapshot} />,
164
- visualKind: 'metric',
165
- evidence: totalSamples,
166
- },
167
- {
168
- id: 'counts-by-group',
169
- headline: 'Counts by group',
170
- context: `Demonstration values for ${scope}.`,
171
- visual: (
172
- <TableWidget
173
- dataset={sampleCounts}
174
- source={snapshot}
175
- pagination={false}
176
- />
177
- ),
178
- evidence: sampleCounts,
179
- },
180
- ];
181
- }}
182
- >
183
- <Stack>
184
- <TextContent>
185
- <h2>Sample counts</h2>
186
- </TextContent>
187
- <DataSection content={sampleContent} />
188
- </Stack>
189
- </DataApp>
190
- );
191
- }
192
- injectDataAppStyles();
193
- mountDataApp({ app: dataApp, component: App });
@@ -1 +0,0 @@
1
- 1.4.2
@@ -1 +0,0 @@
1
- 24.18.0
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "./node_modules/oxfmt/configuration_schema.json",
3
- "ignorePatterns": ["dist/**", "bun.lock"]
4
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "./node_modules/oxlint/configuration_schema.json",
3
- "plugins": ["eslint", "typescript", "unicorn", "oxc", "react", "jsx-a11y"],
4
- "categories": {
5
- "correctness": "error"
6
- },
7
- "options": {
8
- "typeAware": true
9
- },
10
- "rules": {
11
- "react/unsupported-syntax": "error",
12
- "eslint/no-restricted-imports": [
13
- "error",
14
- {
15
- "patterns": [
16
- {
17
- "regex": "^\\.\\.?/",
18
- "message": "Use #app/* or #config for app-owned files."
19
- }
20
- ]
21
- }
22
- ],
23
- "func-style": [
24
- "error",
25
- "declaration",
26
- {
27
- "overrides": {
28
- "namedExports": "declaration"
29
- }
30
- }
31
- ]
32
- }
33
- }
@@ -1,22 +0,0 @@
1
- # Build this local data app
2
-
3
- Read [AGENTS.md](https://github.com/altertable-ai/data-app/blob/main/AGENTS.md) first, then use the app files below.
4
-
5
- | Task | App-owned files |
6
- | ---------------------------------------- | -------------------------------------------------------- |
7
- | Define queries and inputs | `app.ts`, `src/operations.ts`, optional shared contracts |
8
- | Build the exploration, export, and story | `src/App.tsx` |
9
- | Bind definitions and source evidence | `src/data-context.ts` |
10
- | Change identity and appearance | `app.ts` |
11
- | Inject styles and mount React | `src/main.tsx` |
12
- | Configure local serving | `src/server.ts` |
13
-
14
- See [README.md](README.md) for setup and checks.
15
-
16
- ## Focused guidance
17
-
18
- Read the installed package's `AGENTS.md` and `docs/app-authoring.md` before
19
- changing the app. Search its `REFERENCE.md` for props and signatures. Follow their task routes for views, variables, widgets, evidence,
20
- and stories/export. Prefer generated controls and bound readings; keep static
21
- context visible during requests. Update this app's instructions when a reusable
22
- app-specific convention changes. Package internals remain dependencies.
@@ -1,56 +0,0 @@
1
- # Local data app starter
2
-
3
- Use this starter with the [local authoring guide](https://github.com/altertable-ai/data-app/blob/main/docs/local-data-apps.md).
4
- See [AGENTS.md](AGENTS.md) for app-owned files.
5
-
6
- A Bun and React starter for Altertable data apps using the published packages.
7
- It starts with a lakehouse connectivity check. Replace that check with bounded
8
- operations and views built from inspected data before sharing an analysis.
9
-
10
- ## Usage
11
-
12
- ### Run from this repository
13
-
14
- Use the Bun and Node versions in `.bun-version` and `.node-version`.
15
- From the repository root:
16
-
17
- ```fish
18
- bun install --frozen-lockfile
19
- bun run build
20
- cd examples/starter-local-data-app
21
- bun run dev
22
- ```
23
-
24
- Open <http://127.0.0.1:25837>. Missing credentials show the connection error state;
25
- the page still runs. Set server-only credentials before starting the server:
26
-
27
- ```fish
28
- set -gx ALTERTABLE_LAKEHOUSE_USERNAME your-username
29
- read --silent --prompt-str 'Lakehouse password: ' ALTERTABLE_LAKEHOUSE_PASSWORD
30
- set -gx ALTERTABLE_LAKEHOUSE_PASSWORD $ALTERTABLE_LAKEHOUSE_PASSWORD
31
- bun run dev
32
- ```
33
-
34
- Alternatively, supply `ALTERTABLE_DATA_PROXY_URL` and
35
- `ALTERTABLE_DATA_PROXY_TOKEN` for an existing CLI proxy. These values must stay
36
- on the server. This local adapter does not authorize hosted viewers.
37
-
38
- ### Make it your app
39
-
40
- This starter declares the published base, React, and Bun packages. Inside this
41
- repository, Bun links their workspace builds. When copying the starter elsewhere,
42
- run `bun install` to install those packages from npm.
43
-
44
- ```fish
45
- bun run check
46
- ```
47
-
48
- Edit the `defineDataApp()` declaration in `app.ts` for identity, appearance,
49
- and queries.
50
-
51
- `bun run build` typechecks the app, then bundles the browser page into `dist/`. That browser artifact
52
- still needs an authorized `/api/data` backend when hosted.
53
-
54
- ## License
55
-
56
- [MIT](../../LICENSE)
@@ -1,28 +0,0 @@
1
- import { defineDataApp } from "@altertable/data-app";
2
-
3
- export const dataApp = defineDataApp({
4
- title: "Getting started",
5
- description: "Check your lakehouse connection, then build an exploration.",
6
- scope: {
7
- organization: "Your organization",
8
- environment: "your environment",
9
- },
10
- appearance: {
11
- theme: "light",
12
- baseColor: "neutral",
13
- density: "comfortable",
14
- cornerRadius: "medium",
15
- elevation: "subtle",
16
- typography: {
17
- body: "system",
18
- heading: "system",
19
- },
20
- },
21
- queries: {
22
- connection: {
23
- projections: { connection_check: { type: "number" } },
24
- statement: "SELECT 1 AS connection_check",
25
- params: {},
26
- },
27
- },
28
- });
@@ -1,2 +0,0 @@
1
- [install]
2
- exact = true
@@ -1,35 +0,0 @@
1
- {
2
- "name": "data-app-starter",
3
- "private": true,
4
- "type": "module",
5
- "imports": {
6
- "#app/*": "./src/*",
7
- "#config": "./app.ts"
8
- },
9
- "scripts": {
10
- "typecheck": "tsc --noEmit",
11
- "lint": "oxlint --type-aware src",
12
- "format": "oxfmt src app.ts",
13
- "format:check": "oxfmt --check src app.ts",
14
- "dev": "bun --hot src/server.ts",
15
- "build": "bun run typecheck && bun build src/index.html --outdir=dist --production",
16
- "check": "bun run lint && bun run format:check && bun run build"
17
- },
18
- "dependencies": {
19
- "@altertable/data-app": "0.71.0",
20
- "@altertable/data-app-bun": "0.71.0",
21
- "@altertable/data-app-react": "0.71.0",
22
- "react": "19.3.0",
23
- "react-dom": "19.3.0"
24
- },
25
- "devDependencies": {
26
- "@types/bun": "1.4.2",
27
- "@types/react": "19.3.0",
28
- "@types/react-dom": "19.3.0",
29
- "oxfmt": "0.70.0",
30
- "oxlint": "1.85.0",
31
- "oxlint-tsgolint": "7.0.2003",
32
- "typescript": "7.0.2"
33
- },
34
- "packageManager": "bun@1.4.2"
35
- }
@@ -1,8 +0,0 @@
1
- import { GettingStarted } from "@altertable/data-app-react/ui";
2
- import { dataContext } from "#app/data-context.ts";
3
-
4
- /** Connectivity-only screen. Investigate the requested question, then replace this with a view
5
- * that leads with a supported finding and explores the useful angles behind it. */
6
- export function App() {
7
- return <GettingStarted dataContext={dataContext} />;
8
- }
@@ -1 +0,0 @@
1
- declare module "*.css";
@@ -1,21 +0,0 @@
1
- import { createDataContext } from "@altertable/data-app-react";
2
- import { dataApp } from "#config";
3
-
4
- const connectionQueryNames = { connection: "connection" } satisfies Record<
5
- string,
6
- keyof typeof dataApp.queries
7
- >;
8
-
9
- /** Setup context only. Replace it with the exploration's scope, exact definitions, limitations,
10
- * and query evidence after inspecting the source data. */
11
- export const dataContext = createDataContext(connectionQueryNames)({
12
- description:
13
- "This starter runs a lightweight query to verify that the selected lakehouse profile can execute SQL. It does not check access to individual datasets. Replace the check with a query that answers a real question before sharing the app.",
14
- glossary: {
15
- connectionVerified: {
16
- term: "Connected",
17
- definition: "The latest connection-check query completed successfully.",
18
- queryNames: [connectionQueryNames.connection],
19
- },
20
- },
21
- });
@@ -1,13 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 51 44">
2
- <style>
3
- path { fill: #01050b; }
4
- @media (prefers-color-scheme: dark) {
5
- path { fill: #fff; }
6
- }
7
- </style>
8
- <path
9
- fill-rule="evenodd"
10
- clip-rule="evenodd"
11
- d="M40.3274 28.9788L35.9663 28.8378L34.9541 28.6881L18.1066 10.301L24.1073 0L26.8738 0.545413L41.5212 25.6848L40.3274 28.9788ZM20.5319 20.1112L18.1894 15.6731L14.6154 16.2904L0 41.378L0.894584 44H12.9453L20.5769 20.4134L20.5319 20.1112ZM44.9804 31.6253L20.3808 36.9197L17.5838 41.2974L19.9001 44H49.2036L51 41.9551L44.9804 31.6253Z"
12
- />
13
- </svg>
@@ -1,14 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <meta name="theme-color" content="#ffffff" />
7
- <title>Altertable app</title>
8
- <link rel="icon" href="./favicon.svg" type="image/svg+xml" />
9
- <script type="module" src="./main.tsx"></script>
10
- </head>
11
- <body>
12
- <div id="root"></div>
13
- </body>
14
- </html>
@@ -1,7 +0,0 @@
1
- import { injectDataAppStyles, mountDataApp } from "@altertable/data-app-react";
2
- import { App } from "#app/App.tsx";
3
- import { dataApp as app } from "#config";
4
-
5
- injectDataAppStyles();
6
-
7
- mountDataApp({ app, component: App });
@@ -1,6 +0,0 @@
1
- import { dataApp } from "#config";
2
- import { connectionCheck } from "@altertable/data-app/contract";
3
-
4
- /** Connectivity probe only: its successful query supplies no analytical result. Replace it with
5
- * bounded, validated operations that cover the questions the finished app will answer. */
6
- export const operations = { connection: connectionCheck(dataApp.queries) };
@@ -1,6 +0,0 @@
1
- import page from "#app/index.html";
2
- import { serveLocalApp } from "@altertable/data-app-bun";
3
- import { operations } from "#app/operations.ts";
4
- import { dataApp as app } from "#config";
5
-
6
- serveLocalApp({ page, operations, title: app.title });
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "Preserve",
5
- "moduleResolution": "bundler",
6
- "allowImportingTsExtensions": true,
7
- "resolveJsonModule": true,
8
- "jsx": "react-jsx",
9
- "strict": true,
10
- "noUncheckedIndexedAccess": true,
11
- "noEmit": true,
12
- "skipLibCheck": true,
13
- "types": ["bun"],
14
- "noImplicitReturns": true,
15
- "noFallthroughCasesInSwitch": true,
16
- "noImplicitOverride": true,
17
- "allowUnreachableCode": false,
18
- "noUncheckedSideEffectImports": true
19
- },
20
- "include": ["src", "app.ts"]
21
- }