@altertable/data-app-manifest
v0.77.0
Published
Static source-only manifest extraction and rewriting for Altertable data app tooling.
Readme
@altertable/data-app-manifest
Static manifest extraction and rewriting for Node.js and Bun tooling.
Installation
bun add @altertable/data-app-manifestInstall in Node.js or Bun tooling, separately from app runtime packages.
Usage
Pass the app's TSX source string:
import { extractDataAppManifest } from '@altertable/data-app-manifest';
const result = extractDataAppManifest(source);
if (result.manifest) {
console.log(result.manifest.queries);
} else {
console.error(result.diagnostics);
}Reads literal data without executing app code; validate configuration shape separately.
Pass the complete new manifest to rewrite the declaration:
import { overrideDataAppManifest } from '@altertable/data-app-manifest';
const result = overrideDataAppManifest(source, {
...manifest,
title: 'Revenue',
});
if (result.source !== null) {
console.log(result.source);
} else {
console.error(result.diagnostics);
}Rewrites changed values while preserving the rest of the source.
Documentation
See the declaration conventions for supported app source.
