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

@ar-agents/suss

v0.2.1

Published

SUSS / payroll (Sistema Único de la Seguridad Social) agent toolkit for the Vercel AI SDK 6. Pure calculator for employer-side contributions (jubilación, INSSJP, asignaciones familiares, ART, obra social) per F.931 / SICOSS. Per-employee math + monthly DD

Downloads

400

Readme

@ar-agents/suss

SUSS / payroll agent toolkit for the Vercel AI SDK 6+. Pure calculator for employer-side contributions (jubilación, INSSJP, asignaciones familiares, ART, obra social) per F.931 / SICOSS. Per-employee math + monthly DDJJ aggregation. No AR-payroll-agent lib exists today; this is v0.1 of that.

pnpm add @ar-agents/suss

What's inside

  • calculateEmployeeMonth(args) — per-employee monthly aportes + contribuciones with the F.931 vector breakdown (Seguridad Social / Obra Social / ART).
  • buildSicossDdjj({ period, employerCuit, employees }) — monthly DDJJ assembly with totals + per-vector + per-employee detail.
  • Two régimenes baked in: general (Decreto 814/01, ~18% SS) and grandes_empleadores (Decreto 1009/01, ~20.4% SS). promocion_empleo is reserved as a regime code; the caller applies external reductions on top.
  • Three Vercel AI SDK tools: suss_calculate_employee_month, suss_build_ddjj, suss_submit_ddjj (adapter contract, v0.1 stub).

Quick start

import { calculateEmployeeMonth, buildSicossDdjj } from "@ar-agents/suss";

// Per-employee
const r = calculateEmployeeMonth({
  employee: {
    cuil: "20-11111111-0",
    period: "2026-01",
    remuneracionBrutaCentavos: 100_000_000, // ARS 1.000.000 brutos
  },
});

console.log(r.contribuciones.total); // 28_310_000 = ARS 283.100 (régimen general 28.31%)
//   jubilación:               10_170_000 (10.17%)
//   inssjp:                    1_500_000 (1.5%)
//   asignaciones familiares:   4_700_000 (4.7%)
//   fne:                         940_000 (0.94%)
//   obra social:               6_000_000 (6%)
//   art:                       5_000_000 (5% default)

// Monthly DDJJ
const ddjj = buildSicossDdjj({
  period: "2026-01",
  employerCuit: "30-50000001-8",
  employees: [
    { cuil: "20-11111111-0", period: "2026-01", remuneracionBrutaCentavos: 100_000_000 },
    { cuil: "20-22222222-0", period: "2026-01", remuneracionBrutaCentavos:  50_000_000 },
  ],
});

console.log(ddjj.totals.remitirCentavos); // what the employer remits this month
console.log(ddjj.byVector);              // { seguridadSocial, obraSocial, art }

Wired as agent tools:

import { Experimental_Agent as Agent } from "ai";
import { sussTools } from "@ar-agents/suss";
import { anthropic } from "@ai-sdk/anthropic";

const agent = new Agent({
  model: anthropic("claude-sonnet-4-7"),
  tools: sussTools(), // 3 tools
  system: "Sos un agente de payroll para SaaS argentino.",
});

ART rate

ART rates are NOT a fixed % — they're negotiated per employer / per activity with the ART provider. The default is 5%; override per-employee or per-DDJJ via artRate / defaultArtRate:

calculateEmployeeMonth({
  employee: { /* ... */ },
  artRate: 0.072, // 7.2% from your ART contract
});

What this package does NOT do (v0.1)

  • SICOSS file generation + submission. The actual fixed-width F.931 / SI.AP.RE upload needs a WSAA-authenticated XML pipeline. v0.1 ships the math + DDJJ assembly; v0.2 plans the upload adapter.
  • Asignaciones Familiares per-employee calc. AAFF is delegated to ANSES (not paid by employer; the employer just reports). The 4.7% / 5.4% in this package is the EMPLOYER contribution that funds the FUSA, not the per-employee benefit.
  • Promoción de empleo reductions. Ley 27.430 + posteriores. The promocion_empleo regime code is reserved but the v0.1 surface doesn't model the reduction matrix — apply external bonificación on top.
  • Régimen de Casas Particulares (Ley 26.844). Different rate matrix; out of scope for v0.1.
  • Régimen rural. Same — out of scope.

Errors

import {
  SussError,
  SussValidationError,    // bad input
  SussUnconfiguredError,  // adapter not wired
} from "@ar-agents/suss";

Constraints

  • Centavos for all amounts.
  • period is YYYY-MM.
  • CUIL is 11 digits (hyphens optional).
  • Rates as fractions (0.1017 = 10.17%).

For LLM agents using these tools, see AGENTS.md.

License

MIT — Nazareno Clemente [email protected]