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

@fayz-ai/plugin-crm

v0.2.3

Published

Fayz SDK — plugin-crm plugin

Downloads

917

Readme

@fayz-ai/plugin-crm

Leads, deals, quotes, and pipeline — the sales spine for any Fayz SaaS.

npm license

Every business that sells anything needs a way to track who's interested, what's in motion, and what's about to close. Most verticals end up rebuilding the same CRM badly. plugin-crm is the one sales engine — leads, a drag-style pipeline, deals, quotes, and activities — that snaps into a defineSaas app and adapts to the vertical underneath it.

A salon tracks "customers", a clinic tracks "patients", an agency tracks "clients" — same engine, different labels and stages. The plugin ships a full UI today, a vertical-aware label/stage/source config, AI tools your assistant can call, and a data-provider seam that runs on a mock or a Supabase backend. When a lead is approved it can convert a person into a real client record in your domain schema. This is what "compose a real SaaS from plugins" means in practice.

What's inside

  • A /sales workspace: dashboard, pipeline, leads (list + detail + form), deals, quotes (list + detail + form), and activities — toggle modules on or off
  • Configurable lead sources, deal stages (name/color/probability), activity types, and item types
  • Currency-aware quotes (defaults to BRL/pt-BR) with cross-plugin entity lookups for products/services and contacts
  • Lead → client conversion that updates persons.kind and writes your extension table (e.g. clients)
  • Dashboard widgets contributed to the app's overview
  • AI tools: countCustomers, listLeads — with vertical-flavored suggested prompts
  • A central Settings tab (general + pipeline) and full i18n
  • Pluggable data: mock provider out of the box, Supabase provider when a client is registered

Install

npm install @fayz-ai/plugin-crm

Peer deps: @fayz-ai/core, @fayz-ai/ui, @fayz-ai/saas, plus react / react-dom.

Usage

import { defineSaas } from '@fayz-ai/saas'
import { createCrmPlugin } from '@fayz-ai/plugin-crm'

export const app = defineSaas({
  // ...
  plugins: [
    createCrmPlugin({
      labels: { pageTitle: 'Sales', leads: 'Leads' },
      currency: { code: 'BRL', locale: 'pt-BR', symbol: 'R$' },
      dealStages: [
        { name: 'New', color: '#64748b', probability: 10 },
        { name: 'Won', color: '#16a34a', probability: 100 },
      ],
      clientConversion: { archetypeKind: 'customer', extensionTable: 'clients', fkColumn: 'person_id' },
    }),
  ],
})

Part of the Fayz SDK

The sales core of the engine. Pairs naturally with plugin-marketing (where the leads come from), plugin-conversations (where you talk to them), and plugin-reputation (what they say afterward).

Roadmap & contributing

Built and evolving in the open. See the Fayz SDK roadmap for current gaps, missing features, and good first issues.