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

@wishboards/matching-engine

v1.1.3

Published

Zero-dependency, identity-based dynamic matchmaking and rules evaluation engine.

Readme

@wishboards/matching-engine

License: CC BY-NC 4.0 Node.js CI npm version

A zero-dependency, identity-based dynamic matchmaking and rules evaluation engine.

License & Non-Commercial Notice: This software is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license. Free for non-commercial, personal, open-source, and educational use. Commercial use requires prior authorization.


Features

  • Pure & Framework-Agnostic: Zero runtime dependencies. Accepts standard JavaScript/TypeScript objects and returns deterministic match decisions.
  • Dynamic Rule System: All identity, role, orientation, and preference logic is driven by data rules (DB or YAML), rather than hardcoded if/else logic.
  • 5 Core Rule Engine Types:
    1. expansion: Synonym & variant mapping (e.g. enbynonbinary).
    2. enrichment: Implicit attribute additions (e.g. lesbianwoman).
    3. acceptance: Broad target acceptance overrides (e.g. pansexualman, woman, nonbinary).
    4. exclusion: Mutually exclusive attribute detection (e.g. monogamous vs polyamorous).
    5. cross_match: Complementary role & preference matching (e.g. switchtop, bottom).
  • Context-Aware Rules: Evaluate rule conditions against target profiles dynamically.
  • Full TypeScript Support: Written in TypeScript with complete type definitions included.

Installation

npm install @wishboards/matching-engine

Quick Start

import { isCompatible, Rule, Wish, UserProfile } from '@wishboards/matching-engine';

// 1. Define active rule set (from DB or config file)
const rules: Rule[] = [
  {
    id: 1,
    rule_type: 'enrichment',
    trigger_attribute: 'orientation',
    trigger_value: 'lesbian',
    target_attribute: 'gender',
    target_value: 'woman',
  },
  {
    id: 2,
    rule_type: 'acceptance',
    trigger_attribute: 'orientation',
    trigger_value: 'lesbian',
    target_attribute: 'gender',
    target_value: 'woman',
  },
];

// 2. Define Wish creator and searcher profiles
const wish: Wish = {
  creator_attributes: { gender: ['woman'], orientation: ['lesbian'] },
  desired_attributes: { gender: ['woman'] },
};

const searcher: UserProfile = {
  identity_attributes: { gender: ['woman'], orientation: ['lesbian'] },
};

// 3. Evaluate bidirectional compatibility
const compatible = isCompatible(wish, searcher, rules);
console.log('Is Compatible:', compatible); // true

API Reference

isCompatible(wish, searcher, rules)

Evaluates whether a searcher profile and a wish creator profile are mutually compatible based on desired attributes and active rules.

enrichAttributes(attributes, targetCategory, rules)

Implicitly enriches a user's attribute array for a given category (e.g. adding woman if orientation is lesbian).

buildAcceptedSet(attributes, targetCategory, rules)

Builds a set of accepted target values based on acceptance rules (e.g., returning all genders for pan/queer orientations).

getExpandedDesired(attributes, category, rules)

Returns expanded desired attributes by applying synonym/variant expansion rules.

getExclusionConflicts(attributes, rules)

Identifies any mutually exclusive attribute conflicts (returns array of conflict objects with descriptive messages).


License

Licensed under CC BY-NC 4.0.