npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flexiweb/business

v3.66.0

Published

Business plugin for Flexiweb Powered by PayloadCMS v3. It adds customers collection, business settings, business document types and documents collections.

Readme

@flexiweb/business

Business plugin for the Flexiweb ecosystem — PayloadCMS v3 plugin providing customers, documents, document types and business settings.

License Documentation Website

Quick Links: License • Documentation • Website


Overview

@flexiweb/business is a lightweight, focused plugin for PayloadCMS v3 that adds business-oriented data structures to the Flexiweb ecosystem. It registers sensible, ready-to-use collections and globals that cover common business scenarios:

  • Customers collection
  • Customer document types & documents collections
  • Business document types & documents collections
  • Business settings (global)

The plugin can be fully customized via overrides and is intended to be used alongside @flexiweb/core (the core plugin for shared fields/utilities).


Key features

  • Pre-configured, production-friendly collections for business data
  • Global business settings configuration
  • Document type / document modelling for customers and businesses
  • Override hooks and extension points for every collection or global
  • Built-in translations merged into the host app i18n

Installation

Install the package with your package manager of choice:

# pnpm (recommended)
pnpm add @flexiweb/business

# npm
npm install @flexiweb/business

# yarn
yarn add @flexiweb/business

Peer dependency: this plugin requires @flexiweb/core to be present in your project and be enabled in your payload config.


Usage

Add the plugin to your Payload config. The plugin exposes a factory function flexiwebBusinessPlugin(options?: BusinessPluginConfig).

import { flexiwebBusinessPlugin } from '@flexiweb/business'
import { buildConfig } from 'payload'

export default buildConfig({
  plugins: [
    flexiwebBusinessPlugin({
      // optional options: disabled, overrides, etc.
    }),
  ],
})

When used, the plugin will add its collections and global to your buildConfig automatically.


Configuration (options)

The plugin accepts a BusinessPluginConfig object:

  • disabled?: boolean — disable plugin behavior entirely
  • overrides?: { ... } — granular overrides for each collection/global so you can add fields, override field configs, or replace collection/global settings

Type definitions are exposed via ./types (import BusinessPluginConfig from @flexiweb/business/types).

Example: add an extra field to the customers collection

flexiwebBusinessPlugin({
  overrides: {
    customers: {
      additionalFields: [
        { name: 'customerCode', type: 'text', label: { en: 'Customer code' } },
      ],
    },
  },
})

Exports

Useful exports include:

  • flexiwebBusinessPlugin — main plugin factory
  • ./types — plugin configuration and override types
  • ./utils — helper utilities
  • ./constants — shared constants
  • ./validations — validation helpers
  • ./translations — built-in translations

You can import individual pieces by using the package subpath exports (see package.json exports).


Development

This repository contains a dev/ application and example collections that make it easy to preview and iterate on the plugin locally.

Common commands:

pnpm install
pnpm build
pnpm dev      # run the dev app in ./dev
pnpm test

Contributing

We welcome issues, suggestions and documentation improvements. If you plan a code contribution, please open an issue first so we can coordinate.


License

See LICENSE.md for the project's license and commercial usage conditions.


Built with ❤️ for the PayloadCMS community — Website • GitHub