A CLI toolchain (v0.2.1, pre-1.0, no regular release cadence) that fetches Handoff design system component payloads (Handlebars templates, property schemas) and transpiles them into HubSpot CMS .module folders. Handles Handlebars-to-HubL conversion (variables, conditionals, loops), automatic type-specific rewrites (links, buttons, menus, images, etc.), field JSON generation, metadata assembly, and module validation. Differentiators: schema-aware transpilation reducing manual HubL coding; no active alternatives bridging Handoff and HubSpot natively. Only works with Handoff API access.
npm install handoff-hubspotNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches a Handoff component, validates it, transpiles to HubL, generates fields/meta, writes a .module folder.
Use the new property-schema-aware transpilation (automatic). Remove manual {{#field}} blocks from Handlebars templates.Ensure HANDOFF_API_KEY env var is set. Use try/catch around fetchComponent and log the response status.
Update to writeModule('./path', { html, fields, meta, css, js }).Avoid using Handlebars partials or complex subexpressions. Stick to variables, conditionals, and each loops.
Regenerate fields.json with v0.2.0+. Existing modules may need field re-mapping.
Run `npm install handoff-hubspot` or `yarn add handoff-hubspot`.
Change to `import { fetchComponent } from 'handoff-hubspot'`.Set the variable: `export HANDOFF_API_KEY=your_key` or pass via .env file.