🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@templatical/import-beefree

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@templatical/import-beefree

Convert BeeFree email templates to Templatical format

latest
Source
npmnpm
Version
0.10.4
Version published
Maintainers
1
Created
Source

@templatical/import-beefree

Convert BeeFree email templates to Templatical's JSON format.

npm version License

Migrate from BeeFree to Templatical without rebuilding your templates by hand. Maps BeeFree modules to Templatical block types and reports any modules that need manual conversion.

Install

npm install @templatical/import-beefree

Usage

import { convertBeeFreeTemplate } from '@templatical/import-beefree';

const beefreeJson = await fetch('/path/to/beefree-template.json').then(r => r.json());

const result = convertBeeFreeTemplate(beefreeJson);

console.log(result.content);   // → Templatical TemplateContent
console.log(result.report);    // → conversion report (per-module status, warnings, summary)

// Inspect modules that didn't convert cleanly
for (const entry of result.report.entries) {
  if (entry.status !== 'converted') {
    console.warn(
      `${entry.beeFreeModuleType}${entry.templaticalBlockType ?? 'n/a'} ` +
      `(${entry.status})${entry.note ? `: ${entry.note}` : ''}`,
    );
  }
}

console.log(result.report.summary);
// { total, converted, approximated, htmlFallback, skipped }

What's converted

BeeFree moduleTemplatical block
heading / titleTitleBlock
paragraph / textParagraphBlock
imageImageBlock
buttonButtonBlock
dividerDividerBlock
spacerSpacerBlock
socialSocialIconsBlock
menuMenuBlock
htmlHtmlBlock
videoVideoBlock
Unknown modulesFallback to HtmlBlock

Unknown or partially-supported modules are flagged in result.report so you can review them.

API

  • convertBeeFreeTemplate(template) — converts a BeeFree JSON template, returns { content, report }

Types:

  • BeeFreeTemplate — input shape (see source for full structure)
  • ImportResult{ content: TemplateContent, report: ImportReport }
  • ImportReport{ entries: ImportReportEntry[], warnings: string[], summary: { total, converted, approximated, htmlFallback, skipped } }
  • ImportReportEntry{ beeFreeModuleType, templaticalBlockType, status, note? }
  • ConversionStatus'converted' | 'approximated' | 'html-fallback' | 'skipped'

Documentation

Full reference at docs.templatical.com.

License

MIT

Keywords

beefree

FAQs

Package last updated on 15 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts