hubspot-app

Installation
SKILL.md

Building a HubSpot public app

A HubSpot app is a project (hsproject.json + a src/ tree of *-hsmeta.json configs) that ships a UI extension — a React card rendered inside a CRM record — and, usually, a serverless function that talks to your backend. Source lives in integrations/hubspot-app/. The card is a thin frontend; all logic stays in your API.

When to use

  • Triggers: 'build a HubSpot app', 'HubSpot CRM card', 'HubSpot UI extensions', 'hs project upload', 'runServerless', 'submit to the HubSpot App Marketplace', 'my HubSpot card can't reach my API'.
  • A card fetches only URLs in permittedUrls.fetch and localhost is blocked, so you cannot develop a card against a local API. Review needs three active installs on unaffiliated production portals.
  • Secrets live in HubSpot, not the bundle; per-function hsmeta files replaced serverless.json. Siblings: highlevel-app, monday-app, webflow-app, connector-directory-submission.

The trap that wastes a day: a card cannot fetch your local API

Inside HubSpot the card fetches only through hubspot.fetch(url, …) or runServerless({ name, parameters }), and three rules bite at once:

  • the URL must already be listed in permittedUrls.fetch in app-hsmeta.json — anything else is refused,
  • localhost is blocked outright, so there is no "point the card at my dev server" mode,
  • only Authorization is allowed as a custom header.

Rule: put a private serverless function in front of your API and have the card call it via runServerless. That is also the only way to keep your API key out of the browser. Build the composer UI against a local preview app (plain Vite) and let the real card path go through the function.

Installs
1
GitHub Stars
1
First Seen
Nov 15, 2026