Astlide API Reference
    Preparing search index...

    Module @astlide/core/templates

    A place to keep PowerPoint templates by name, with every uploaded version: in a folder, in Amazon S3 (or R2, MinIO …), Google Cloud Storage, Azure Blob Storage, or any storage you plug in. The render service keeps its templates here; any other tool can too.

    import { openTemplateStore } from "@astlide/core/templates";

    const store = openTemplateStore("gs://acme-assets/astlide/templates");
    await store.put("acme", await readFile("acme.potx"), { ext: ".potx", label: "Acme 2026" });
    const latest = await store.get("acme"); // { info, version, data }

    The cloud storages use each provider's SDK, installed separately: @aws-sdk/client-s3, @google-cloud/storage, @azure/storage-blob (with @azure/identity for Microsoft Entra ID sign-in). The files are kept as uploaded; read one with pptxToTemplate() from @astlide/core/pptx.

    azureBlobStorage
    createAzureBlobTemplateStore
    createGcsTemplateStore
    createObjectTemplateStore
    createS3TemplateStore
    createTemplateStore
    folderStorage
    gcsStorage
    openTemplateStore
    s3Storage
    templateNameError
    AzureBlobStorageOptions
    ContainerClientLike
    GcsClientLike
    GcsStorageOptions
    ObjectStorage
    PutTemplateOptions
    S3ClientLike
    S3StorageOptions
    StoredTemplate
    TemplateInfo
    TemplateStore
    TemplateVersion
    TemplateExtension
    TEMPLATE_EXTENSIONS
    TemplateStoreError