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

fairbrief-timekeeper-capacity

v0.1.0

Published

Fairbrief Timekeeper Capacity: hours per timekeeper against weekly capacity and annual targets: over capacity, under used, behind target pace.

Readme

Fairbrief Timekeeper Capacity (fairbrief-timekeeper-capacity)

Hours per timekeeper for a period against weekly capacity and the annual billable target: over capacity, under used and behind target pace, from a time export and the timekeeper list.

Fairbrief Timekeeper Capacity never changes pay, targets or bonuses. It never assigns or moves work between people.

MIT · Node 20 or newer · local files only · client names masked before results reach the model · built on fairbrief-core

npx -y fairbrief-timekeeper-capacity demo
npx -y fairbrief-timekeeper-capacity mcp --root ./firm-exports

What it checks

| Check | Severity | What it means | What a person does | |---|---|---|---| | over_capacity | warning | Hours worked are above the share of weekly capacity your settings allow. | Look at the timekeeper's workload and spread the work. | | under_used | warning | Billable hours are a small share of the timekeeper's capacity. | Find out whether work is short or not being recorded. | | behind_target | warning | Billable hours are behind the annual target for this part of the year. | Review the timekeeper's work pipeline with them. | | no_capacity_set | info | The timekeeper has no weekly capacity on the list. | Add a weekly capacity so utilization can be measured. |

A demo run

npx -y fairbrief-timekeeper-capacity demo runs the agent on the fictional files in fixtures/ in a temporary folder. Captured output:

Fairbrief Timekeeper Capacity demo (fictional timekeepers) in <demo folder>

▶ October capacity
  status: executed  decision: allow
  6 timekeeper(s), 2026-10-01 to 2026-10-31 (31 days, 4.43 weeks): 1 over capacity, 2 under used, 2 behind target pace, 1 with no capacity set.
    Marcus Eriksen   load  124.2%  use  124.2%  pace  143.9%
    Grace Obi        load  84.68%  use  67.74%  pace  94.19%
    Priya Natarajan  load  60.21%  use  50.18%  pace  58.87%
    Leo Brandt       load      -%  use      -%  pace  24.79%
    Dana Whitlock    load 101.61%  use  90.32%  pace 104.66%
    Tomas Lindgren   load  95.97%  use  93.15%  pace 102.25%

▶ Write the worklist
  status: executed  decision: allow
  Worklist written: 6 timekeeper(s), 2026-10-01 to 2026-10-31 (31 days, 4.43 weeks): 1 over capacity, 2 under used, 2 behind target pace, 1 with no capacity set. Files: fairbrief-out/capacity/timekeeper-capacity.csv, fairbrief-out/capacity/timekeeper-capacity.html.

Tools

| Tool | What it does | Policy | |---|---|---| | capacity_check | Each timekeeper with hours worked and billable, capacity, load, utilization and target pace for the period, and findings. | runs | | capacity_explain | Show one timekeeper from capacity_check with every finding and the figures it was checked against. | runs | | capacity_checks | List every check capacity runs, what it looks for and what a person does about it. | runs | | capacity_write_report | Write timekeeper-capacity.csv (one row per item, with blank owner, decision and notes columns) and timekeeper-capacity.html into out_dir (default fairbrief-out/capacity). | runs | | compensation_change | Fairbrief Timekeeper Capacity never changes pay, targets or bonuses. | refused | | work_assign | Fairbrief Timekeeper Capacity never assigns or moves work between people. | refused |

Any tool name not in this table is blocked, including names a model invents. refused tools are listed so a model can see they exist and are refused.

Columns it reads

Table inputs can be CSV, TSV, semicolon- or pipe-separated text, Excel .xlsx, JSON or JSONL; invoice lines can also be LEDES 1998B files. Columns are matched by the agent's own name, then by the English names below, then by their names in German, French, Spanish, Portuguese, Italian, Japanese, Chinese and Korean. Dates become YYYY-MM-DD; amounts are read with either decimal mark. Every result lists under sources how each file was read. Columns marked masked hold client or party data: the model sees a pseudonym or nothing (see Client data).

Time entries (time)

| Column | Type | Also read as | For example, in other languages | |---|---|---|---| | entry_id | text | Entry ID, Activity ID, Time Entry ID, Entry #, Slip ID, Slip Number | - | | date | date | Date, Entry Date, Work Date, Activity Date, Date Worked, Service Date | Datum, Date, 日付, 日期 | | timekeeper | text | Timekeeper, User, Attorney, Lawyer, Staff, Billing User | Zeiterfasser, Intervenant, 担当弁護士, 计时人员 | | timekeeper_id | text | Timekeeper ID, TK ID, Timekeeper Number, Tkpr, TK, Initials | - | | timekeeper_class | text | Title, Role, Classification, Timekeeper Classification, Rank, Level | Rolle, Rôle, ロール, 角色 | | matter | text | Matter, Matter Number, Matter ID, Matter No, Matter #, Display Number | Mandat, Dossier, 案件番号, 案件编号 | | matter_name | text (masked) | Matter Name, Matter Description, Case Name, File Name | Mandatsbezeichnung, Intitulé du dossier, 案件名, 案件名称 | | client | text (masked) | Client, Client Name, Client Full Name, Billing Client, Contact, Client/Company | Mandant, Nom du client, 依頼者, 客户名称 | | hours | number | Hours, Quantity, Qty, Time, Duration, Hours Worked | Stunden, Heures, 時間, 小时 | | rate | amount | Rate, Hourly Rate, Billing Rate, Price, Unit Price, Std Rate | Stundensatz, Taux horaire, 単価, 费率 | | amount | amount | Amount, Total, Value, Billable Amount, Fee Amount, Line Total | Betrag, Montant, 金額, 金额 | | billable | yes/no | Billable, Is Billable, Billable? | - | | description | text | Description, Narrative, Note, Notes, Activity Description, Detail | Beschreibung, Description, 摘要, 摘要 | | task_code | text | Task Code, UTBMS Task, UTBMS Task Code, Task, Phase/Task, Phase Task | - | | activity_code | text | Activity Code, UTBMS Activity, UTBMS Activity Code, Line Item Activity Code | - | | billed_status | text | Status, Bill Status, Billing Status, Billed, State, Entry Status | Status, Statut, ステータス, 状态 | | invoice_number | text | Invoice, Invoice Number, Invoice #, Bill Number, Bill #, Bill No | Rechnungsnummer, N° de facture, 請求書番号, 发票号 | | billed_amount | amount | Billed Amount, Amount Billed, Billed Value, Bill Amount | - | | written_off | amount | Write Off, Write-Off, Written Off, Write Down, Write-Down, Discount | - | | collected | amount | Collected, Amount Collected, Payments Applied, Received, Paid Amount | - | | billed_date | date | Billed Date, Bill Date, Invoice Date, Date Billed | - |

Named exports recognised by their column names:

| System | Export | Recognised by | Layout checked against vendor docs | |---|---|---|---| | Clio Manage | Activities export, time entries (CSV) | Quantity, User, Matter, Rate, Billed | no | | PracticePanther | Time entries export (CSV) | Billed By, Matter, Hours, Billable | no | | MyCase | Time entries report (CSV) | Case, User, Hours, Billable | no | | Smokeball | Fee entries export (CSV) | Staff, Matter, Hours, Amount | no | | CosmoLex | Time entries report (CSV) | Timekeeper, Matter, Hours, Status | no | | PCLaw | Time listing (CSV) | Lawyer, Matter, Explanation, Hours | no | | Tabs3 Billing | Fee journal (CSV) | Tkpr, Client, Hours, Rate | no | | Aderant Expert | Time detail report (CSV) | Work Date, Timekeeper, Narrative, Hours | no | | Elite 3E | Timecard detail (CSV) | Work Date, Work Hrs, Work Rate, Work Amt | no |

Every named layout (Clio, PracticePanther, MyCase, Smokeball, CosmoLex, PCLaw, Tabs3, Aderant, Elite 3E, QuickBooks, bank downloads, Outlook) was written from knowledge of the export and was not checked against the vendor documentation or a live account. A file whose headers differ still maps by each column's other names; inspect shows what matched.

Timekeeper list (timekeepers)

| Column | Type | Also read as | For example, in other languages | |---|---|---|---| | timekeeper (required) | text | Timekeeper, User, Attorney, Lawyer, Staff, Billing User | Zeiterfasser, Intervenant, 担当弁護士, 计时人员 | | timekeeper_id | text | Timekeeper ID, TK ID, Timekeeper Number, Tkpr, Initials, User ID | - | | timekeeper_class | text | Title, Role, Classification, Timekeeper Classification, Rank, Level | Rolle, Rôle, ロール, 角色 | | standard_rate | amount | Standard Rate, Rate, Hourly Rate, Default Rate, Billing Rate, Std Rate | Stundensatz, Taux horaire, 単価, 费率 | | target_hours | number | Target Hours, Billable Target, Annual Target, Budget Hours, Target, Billable Hours Target | - | | weekly_capacity | number | Weekly Capacity, Capacity, Hours per Week, Weekly Hours, FTE Hours | - | | bar_state | text | Bar State, Admitted In, Jurisdiction, State of Admission, Licensing State, Bar | - | | bar_number | text | Bar Number, Bar No, Bar #, Licence Number, License Number, Registration Number | - | | licence_expires | date | License Expires, Licence Expires, License Expiration, Bar Renewal, Renewal Date, Registration Due | Ablaufdatum, Date d'expiration, 有効期限, 到期日 | | cle_period_end | date | CLE Period End, Compliance Deadline, CLE Due, Reporting Deadline, CLE Deadline, Compliance Period End | - | | start_date | date | Start Date, Hire Date, Joined, Date Joined | Eintrittsdatum, Date d'entrée, 入社日, 入职日期 | | end_date | date | End Date, Left, Termination Date, Departure Date | Austrittsdatum, Date de sortie, 退職日, 离职日期 | | status | text | Status, Active, Employment Status | Status, Statut, ステータス, 状态 |

Files from other countries

A German export in Windows-1252 with semicolons, 1.234,56 and 03.11.2026, or a Japanese one in Shift_JIS with 2026/11/03, is read the same way as the English file: npm run intl in the repository rewrites every eval fixture the way a German, French, Spanish, Brazilian, Italian, Japanese, Chinese and Korean export would write it and requires the same results. Columns named differently? Run npx fairbrief-timekeeper-capacity inspect <file> (names and shapes only, never values) and name them in fairbrief-sources.json:

{ "files": { "exports/time.csv": { "columns": { "matter": "Aktenzeichen" }, "date_order": "dmy" } } }

Install

Node 20 or newer. No other dependencies.

npx -y fairbrief-timekeeper-capacity demo
npx -y fairbrief-timekeeper-capacity mcp --root /path/to/your/files

Claude Desktop, Cursor and other MCP hosts:

{
  "mcpServers": {
    "fairbrief-timekeeper-capacity": {
      "command": "npx",
      "args": [
        "-y",
        "fairbrief-timekeeper-capacity",
        "mcp",
        "--root",
        "/path/to/your/files"
      ]
    }
  }
}

Claude Code: claude mcp add fairbrief-timekeeper-capacity -- npx -y fairbrief-timekeeper-capacity mcp --root ., or install the fairbrief-timekeeper-capacity plugin from this repository's marketplace (fairbrief-law-firm).

Modes and approvals

  • Review (--mode review): reads and reports only.
  • Assist (default): the policy above. A tool that asks returns an approval_id; a person approves it once with fairbrief-timekeeper-capacity approve <id> --as "Your Name" (or on the local approvals page, fairbrief-timekeeper-capacity approvals), and the same call is repeated.
  • Auto (--mode auto --auto <tool,...>): opt-in per tool, with step caps and a kill switch (fairbrief-timekeeper-capacity kill). Sending, moving money, going live and accepting a learned fact stay one named click even in Auto; an approval is tied to the sha256 of the reviewed draft, so a changed draft needs a new click.

CLI

fairbrief-timekeeper-capacity tools                 # every tool, its policy and arguments
fairbrief-timekeeper-capacity sources               # the columns each input is read from
fairbrief-timekeeper-capacity inspect <file>        # how a file would be read (names and shapes, never values)
fairbrief-timekeeper-capacity call capacity_check '{"time":"<time>","timekeepers":"<timekeepers>"}'
fairbrief-timekeeper-capacity eval                  # the private eval cases on the fictional fixtures
fairbrief-timekeeper-capacity demo

Client data

Results go to an AI model, so client data is masked before it leaves the agent (--mask mask, the default): client, party, payee and referral-source names, matter names and bank account numbers become stable pseudonyms such as CL-3f9a1c2e; addresses, phones, e-mails and tax ids are removed, also inside free text. --mask strict also hides matter numbers and ZIP codes. Tools still take a pseudonym back as an argument. Report files written to disk keep real names, because people at the firm work from them: keep them in a folder only your staff can open. --mask off is possible and is recorded in the audit log. The shared tests check that no fictional client name from the fixtures reaches any eval result. Masking keeps client names away from the model; whether your firm may use an AI model with client data at all is the firm's decision under its confidentiality duties.

Audit log and data

Every call is written to .fairbrief/audit.jsonl under the root: hash-chained JSON lines, with arguments stored as a hash, signed with an Ed25519 key when you configure one. Everything runs on your machine on files you choose. No network calls, no telemetry, no credentials. The bundled fixtures are fictional.

Limits

  • It checks only what is in the files and settings you load. Trust-accounting rules, billing guidelines, CLE requirements and limits differ by state, client and firm: they live in your settings, and every result says when nobody at the firm has confirmed them. The example settings in fixtures/ are not any state's or client's rules.
  • It is not legal, ethics, tax or accounting advice. A person at the firm reviews every result; the agent never moves trust money, files with a court, sends anything or changes your practice-management system.
  • Export layouts named in "Columns it reads" were written from knowledge of each system and not tested against a live account; inspect shows how a file was read.
  • Masking keeps client names away from the model; it does not decide whether your firm may use an AI model with client data. That is a decision for the firm under its confidentiality duties.