@hyperse-hub/hps-plugin-digital-product
Vendure plugin for digital products / digital downloads (Admin & Shop GraphQL, fulfillment handler, and order process adjustments). Part of the Hub Store group — see Platform.md.
What it does
- Adds Admin + Shop GraphQL extensions for managing and retrieving digital-download data.
- Registers a digital fulfillment handler and shipping eligibility/assignment strategy so digital items can be fulfilled without physical shipping.
- Adjusts the default Vendure order process configuration to better fit digital goods checkout flows.
- Adds a small set of custom fields on core entities (e.g.
Product, ProductVariant, ShippingMethod, Fulfillment, FacetValue) used by the plugin.
Installation
import { VendureConfig } from '@vendure/core';
import { HpsPluginDigitalProduct } from '@hyperse-hub/hps-plugin-digital-product';
export const config: VendureConfig = {
plugins: [
HpsPluginDigitalProduct.init({
defaultFacets: [
{
code: 'integrationType',
name: 'Integration Type',
isPrivate: true,
facetValues: [
{ code: 'paid', name: 'Paid', color: '#877500' },
{ code: 'core', name: 'Core', color: '#1b637a' },
{ code: 'partner', name: 'Partner', color: '#1b7a64' },
{ code: 'community', name: 'Community', color: '#535958' },
],
},
{
code: 'type',
name: 'Type',
isPrivate: false,
facetValues: [
{ code: 'free', name: 'Free' },
{ code: 'premium', name: 'Premium' },
],
},
],
}),
],
};
Development
From this package directory:
yarn serve
yarn build
yarn lint
yarn typecheck
yarn test
License
MIT — see repository root.