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

@contractspec/example.finance-ops-ai-workflows

v1.1.5

Published

Deterministic finance operations AI workflow example with human review, fixed rules, and synthetic data only.

Readme

@contractspec/example.finance-ops-ai-workflows

Finance Ops AI Workflows is a public ContractSpec template for safe, deterministic, human-reviewed AI-assisted finance operations workflows.

It is designed as a credible business demo for NDconsulting / Desliance style work: DAF transition, cash management, reporting, procedures, finance process improvement, training, and AI adoption ROI.

Product Positioning

This is not a chatbot, prompt collection, SaaS app, or live integration. It demonstrates how to turn finance-ops work into explicit workflows:

business input -> ContractSpec operation -> deterministic handler -> simulated AI-assisted workflow -> human review -> reviewable output -> ROI/adoption log.

The value is not "make an LLM talk". The value is to frame finance work, separate deterministic rules from assisted drafting, block autonomous decisions, and leave evidence that can be tested and industrialized.

Included Workflows

  • financeOps.missionIntake.triage: fictive DAF / finance transformation mission intake.
  • financeOps.cashAging.prioritize: fixed-date aged receivables prioritization using deterministic rules.
  • financeOps.procedureDraft.create: internal finance procedure draft with roles, steps, controls and KPIs.
  • financeOps.reportingNarrative.compose: management reporting narrative with variance helpers and no invented causes.
  • financeOps.aiAdoption.logUsage: AI adoption ROI log that tracks use cases, not intrusive employee surveillance.

Demo Script

  1. Open /templates and preview Finance Ops AI Workflows.
  2. Switch between the PME recovery and reporting reset scenarios from the demo command bar.
  3. Run a workflow draft, select the mission item, invoice, procedure step, reporting variance, or adoption log under discussion, and use the selected-detail panel to request changes or mark the draft ready.
  4. Move through Mission intake, Cash aging, Procedure, Reporting, and Adoption ROI as an operator cockpit rather than a slide sequence.
  5. Reset the replay when the presenter wants to restart the story from the same synthetic fixture.

Interactive Preview

The inline template preview is intentionally demo-grade:

  • Command bar with scenario switching, deterministic replay reset, draft-run controls and current workflow state.
  • Workflow rail for Mission intake, Cash aging, Procedure, Reporting, and Adoption ROI.
  • Compact lists and tables instead of oversized card grids.
  • Selected-detail panel for every workflow click: mission evidence, invoice follow-up, procedure control, reporting variance, or adoption recommendation.
  • Draft-only review actions to request changes or mark the selected workflow ready.

The preview recomputes from the handlers, so it demonstrates the same deterministic contract outputs that tests and replay proof cover. The interactivity is local UI state only: it simulates review and replay, not real operational execution.

Scope Boundaries

The package uses synthetic fixtures and deterministic handlers only. It does not connect to live finance systems, does not send operational communications, and does not provide production financial, legal, tax, accounting, or investment advice. Workflow outputs keep humanReviewRequired set to true.

Public Entry Points

  • @contractspec/example.finance-ops-ai-workflows
  • @contractspec/example.finance-ops-ai-workflows/contracts
  • @contractspec/example.finance-ops-ai-workflows/contracts/mission-intake-triage.operation
  • @contractspec/example.finance-ops-ai-workflows/contracts/cash-aging-prioritization.operation
  • @contractspec/example.finance-ops-ai-workflows/contracts/procedure-draft.operation
  • @contractspec/example.finance-ops-ai-workflows/contracts/reporting-narrative.operation
  • @contractspec/example.finance-ops-ai-workflows/contracts/adoption-roi-log.operation
  • @contractspec/example.finance-ops-ai-workflows/fixtures
  • @contractspec/example.finance-ops-ai-workflows/handlers
  • @contractspec/example.finance-ops-ai-workflows/proof
  • @contractspec/example.finance-ops-ai-workflows/ui

Implementation Notes

  • Handlers are pure deterministic functions wrapped with HandlerForOperationSpec.
  • Structured lists are returned as JSON strings where the contract surface asks for *Json fields.
  • Fixtures are fictive and tuned for a commercial demo: PME industrielle, 85 employees, 14 M EUR revenue, RAF departure, missing reporting, cash tension and fragmented Excel/Power BI tools.
  • The replay proof runs all five workflows and returns a compact evidence object.

Commands

  • bun run build
  • bun run typecheck
  • bun run test
  • bun run smoke
  • bun run preflight