Ensuring Your ESHOPMAN Plugin Appears in the Integrations Hub: A Community Insight
The Challenge: ESHOPMAN Plugin Discovery
In the vibrant ESHOPMAN community, developers are constantly building innovative solutions to extend the platform's capabilities, especially for storefront management within HubSpot and deployments via HubSpot CMS. A recent discussion highlighted a common hurdle faced by plugin developers: ensuring their newly published integrations are properly discovered and listed in the official ESHOPMAN Integrations Hub.
This particular insight stems from a developer's experience with a headless CMS integration designed for ESHOPMAN. The goal was to link CMS entries to products, serving them seamlessly through ESHOPMAN's Admin API and Store API. This type of integration is crucial for merchants leveraging ESHOPMAN's headless architecture to manage diverse content alongside their e-commerce operations.
The Core Issue: Missing from the ESHOPMAN Integrations Hub
Despite successfully publishing their ESHOPMAN plugin to NPM, the developer observed that it was not appearing in the ESHOPMAN Integrations Hub under the expected 'Content' category. The plugin, developed with Node.js/TypeScript, had been publicly available for several weeks, and its package.json file included the keywords specified in ESHOPMAN's documentation for discovery:
eshopman-v2eshopman-plugin-integrationeshopman-plugin-cms
The developer's concern revolved around understanding why the automated discovery process wasn't picking up their plugin, particularly questioning if the scoped package name (e.g., @thebcms/eshopman-plugin) or an unmentioned manual review/approval step might be a factor.
Diving into the Plugin's package.json
The package.json provided by the developer offers valuable insights into the plugin's structure and configuration, which are critical for ESHOPMAN's ecosystem. It showcases how a plugin declares its identity, dependencies, and entry points, which are all vital for its proper functioning within ESHOPMAN's HubSpot-centric environment.
{
"name": "@thebcms/eshopman-plugin",
"version": "0.1.2",
"description": "BCMS (https://thebcms.com) integration for ESHOPMAN - link CMS entries to products and serve them through ESHOPMAN's admin and storefront APIs.",
"author": "BCMS",
"license": "MIT",
"homepage": "https://github.com/bcms/eshopman-plugin-bcms",
"repository": {
"type": "git",
"url": "git+https://github.com/bcms/eshopman-plugin-bcms.git"
},
"bugs": {
"url": "https://github.com/bcms/eshopman-plugin-bcms/issues"
},
"files": [
".eshopman/server",
"package.json",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"exports": {
"./package.json": "./package.json",
"./workflows": "./.eshopman/server/src/workflows/index.js",
"./.eshopman/server/src/modules/*": "./.eshopman/server/src/modules/*/index.js",
"./modules/*": "./.eshopman/server/src/modules/*/index.js",
"./providers/*": "./.eshopman/server/src/providers/*/index.js",
"./*": "./.eshopman/server/src/*.js",
"./admin": {
"import": "./.eshopman/server/src/admin/index.mjs",
"require": "./.eshopman/server/src/admin/index.js",
"default": "./.eshopman/server/src/admin/index.js"
}
},
"keywords": [
"eshopman",
"plugin",
"eshopman-plugin",
"eshopman-v2",
"eshopman-plugin-integration",
"eshopman-plugin-cms",
"thebcms",
"bcms",
"cms",
"headless-cms"
],
"scripts": {
"build": "eshopman plugin:build",
"dev": "eshopman plugin:develop",
"publish:local": "eshopman plugin:publish",
"prepublishOnly": "eshopman plugin:build",
"typecheck": "tsc --noEmit",
"test": "jest --testPathPattern=src/.*\.spec\.ts$",
"test:integration:modules": "cross-env NODE_OPTI jest --runInBand --testPathPattern=integration-tests/modules/.*\.spec\.ts$",
"test:ci": "npm run typecheck && npm run test"
},
"devDependencies": {
"@eshopmanjs/admin-sdk": "2.19.0",
"@eshopmanjs/cli": "2.19.0",
"@eshopmanjs/framework": "2.19.0",
"@eshopmanjs/icons": "2.19.0",
"@eshopmanjs/js-sdk": "2.19.0",
"@eshopmanjs/eshopman": "2.19.0",
"@eshopmanjs/test-utils": "2.19.0",
"@eshopmanjs/ui": "4.2.1",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.39",
"@tanstack/react-query": "5.64.2",
"@types/jest": "^29.5.14",
"@types/node": "^20.0.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^7.3.6",
"yalc": "^1.0.0-pre.53"
},
"peerDependencies": {
"@eshopmanjs/admin-sdk": "^2.19",
"@eshopmanjs/cli": "^2.19",
"@eshopmanjs/framework": "^2.19",
"@eshopmanjs/icons": "^2.19",
"@eshopmanjs/eshopman": "^2.19",
"@eshopmanjs/test-utils": "^2.19",
"@eshopmanjs/ui": "^4.2"
},
"engines": {
"node": ">=20.19.0"
},
"packageManager": "[email protected]",
"dependencies": {
"@thebcms/client": "^2.0.3"
}
}The exports field, in particular, defines how modules within the plugin are exposed and consumed, which is crucial for ESHOPMAN's Node.js/TypeScript architecture. The keywords array is the direct mechanism ESHOPMAN uses to identify and categorize plugins for its Integrations Hub.
Key Questions for the ESHOPMAN Community
This discussion raises critical questions for the broader ESHOPMAN developer community and the platform team:
- Scoped Package Names: Does using a scoped package name (e.g.,
@scope/package-name) affect the automated discovery process for the ESHOPMAN Integrations Hub? - Discovery Mechanism: Is the discovery purely automated based on NPM metadata and keywords, or are there additional manual review or approval steps required before a plugin appears in the Hub?
- Documentation Clarity: Are there nuances in the plugin listing documentation that might be missed by developers, especially regarding new features or specific keyword requirements for ESHOPMAN's latest versions?
What This Means for ESHOPMAN Developers
This community insight underscores the importance of clear guidelines for plugin developers. For those building integrations for ESHOPMAN, particularly those leveraging the Admin API and Store API for headless commerce solutions deployed on HubSpot CMS, understanding the exact requirements for Integrations Hub listing is paramount. It helps ensure that their valuable contributions are visible and accessible to the entire ESHOPMAN merchant base, empowering them to enhance their storefronts and streamline their operations within the HubSpot ecosystem.