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

conflow-algorithms

v1.0.4

Published

<p align="center"> <img src="https://raw.githubusercontent.com/conflow-esi/conflow-algorithms/main/assets/conflow-logo-full.png" alt="conflow-algorithms" height="120" /> </p>

Readme

conflow-algorithms

npm version license GitHub

Paper-reviewer assignment algorithms for scientific conference management.

Assigns reviewers to papers while maximizing affinity scores and respecting capacity limits and conflict-of-interest rules. Ships two interchangeable solvers behind a single interface.

Installation

npm install conflow-algorithms

Quick Start

import { GreedySolver, ILPSolver, AssignmentFormatter } from 'conflow-algorithms';
import type { Reviewer, Paper, Bid, Conflict } from 'conflow-algorithms';

const reviewers: Reviewer[] = [
  { id: 'r1', capacity: 2 },
  { id: 'r2', capacity: 2 },
];

const papers: Paper[] = [
  { id: 'p1', minReviews: 2, maxReviews: 3 },
  { id: 'p2', minReviews: 1, maxReviews: 2 },
];

const bids: Bid[] = [
  { reviewerId: 'r1', paperId: 'p1', score: 0.9 },
  { reviewerId: 'r1', paperId: 'p2', score: 0.4 },
  { reviewerId: 'r2', paperId: 'p1', score: 0.7 },
  { reviewerId: 'r2', paperId: 'p2', score: 0.8 },
];

const conflicts: Conflict[] = [];

// Drop-in swap between solvers:
const solver = new ILPSolver();   // or: new GreedySolver()
const { assignments, metrics } = solver.assign(reviewers, papers, bids, conflicts);

console.log(metrics.totalAffinityScore);
// => 2.4

console.log(AssignmentFormatter.groupByPaper(assignments));
// => { p1: ['r1', 'r2'], p2: ['r2'] }

console.log(metrics.unassignedPapers);
// => []  (all papers met their minReviews)

Solvers

GreedySolver

Sorts bids by score descending and greedily accepts each one if capacity allows. Fast (O(B log B)) but not globally optimal.

Use when: you need instant results on large inputs or as a baseline.

ILPSolver

Formulates the problem as an Integer Linear Program and solves it to global optimality via branch-and-bound. Maximizes total affinity score subject to all constraints.

Use when: assignment quality matters and the instance is small-to-medium (up to ~hundreds of reviewers × papers).

The ILP solver throws if the problem is infeasible (e.g. total reviewer capacity is less than the sum of minReviews across all papers).

API Reference

Types

| Type | Description | |---|---| | Reviewer | { id: string; capacity: number } | | Paper | { id: string; minReviews: number; maxReviews: number } | | Bid | { reviewerId: string; paperId: string; score: number } | | Conflict | { reviewerId: string; paperId: string } — hard firewall, never assigned | | Assignment | { reviewerId: string; paperId: string } | | AssignmentResult | { assignments: Assignment[]; metrics: AssignmentMetrics } | | AssignmentMetrics | { totalAffinityScore: number; unassignedPapers: string[] } | | IAssignmentSolver | Strategy interface implemented by all solvers |

AssignmentFormatter

Static utility class for reshaping assignment arrays.

// reviewer → paper IDs
AssignmentFormatter.groupByReviewer(assignments): Record<string, string[]>

// paper → reviewer IDs
AssignmentFormatter.groupByPaper(assignments): Record<string, string[]>

Design Notes

  • Pure core — no database, ORM, HTTP, or framework dependencies.
  • Schema-agnostic — all IDs are opaque strings; integration with any persistence layer is the caller's responsibility.
  • Strategy pattern — swap GreedySolver for ILPSolver (or any future solver) without changing call sites.

License

ISC


Made at

ESI (École Nationale Supérieure d'Informatique) is Algeria's first Computer Science Engineering school, located in Oued Smar, Algiers. Founded in 1969 as the first specialized Computer Science training center in Africa, ESI trains state engineers through a highly selective 5-year program and has produced over 5,500 graduates.