Skip to content
PluginStats

@lushly-dev/afd-core weekly downloads statistics

By lushly-dev (4 listings) · npm · MCP servers

Core types and utilities for Agent-First Development

View on npm Fresh · Dec 5, 2026

@lushly-dev/afd-core has 7,231 recorded weekly downloads on npm, a decrease of 71.8% over the past 30 days, ranking #1397 of 3,247 tracked listings.

Weekly downloads
7,231
Official API · Dec 5, 2026
7-day growth
-31.6%
-3.3K weekly downloads
30-day growth
-71.8%
-18.4K weekly downloads
90-day growth
-51.6%
-7.7K weekly downloads
Rank
#1397
▼ 177 in 7 days

About @lushly-dev/afd-core

@lushly-dev/afd-core

Core types and utilities for Agent-First Development.

Installation

npm install @lushly-dev/afd-core
# or
pnpm add @lushly-dev/afd-core

Overview

This package provides the foundational types used across all AFD packages:

  • CommandResult - Standard result type with UX-enabling fields
  • CommandError - Actionable error structure
  • CommandDefinition - Full command schema with handler
  • MCP types - Model Context Protocol types for agent communication

Entry points

ImportContentsRuns in
@lushly-dev/afd-coreAll types and helpers; not connectors or platformNode.js and browsers
@lushly-dev/afd-core/commandsCommand types, defaultExpose, validateCommandName, createCommandRegistry, MCP tool conversionNode.js and browsers
@lushly-dev/afd-core/resultCommandResult, success, failure, error, isSuccess, isFailureNode.js and browsers
@lushly-dev/afd-core/errorsCommandError, Recovery, isCommandRecovery, RECOVERY_KINDS, ErrorCodes and the error helpersNode.js and browsers
@lushly-dev/afd-core/connectorsGitHubConnector, PackageManagerConnector and their typesNode.js only
@lushly-dev/afd-core/journal-fileFileJournalSink, a JSON Lines command journal on diskNode.js only
@lushly-dev/afd-core/journal-indexeddbIndexedDbJournalSink, a command journal in IndexedDB, and IndexedDbJournalErrorBrowsers, workers and webviews
@lushly-dev/afd-core/platformexec, findUp, isWindows and other process helpersNode.js only
Connectors live in their own subpath

GitHubConnector and PackageManagerConnector spawn processes through node:child_process, so they are exported only from the connectors subpath:

import { GitHubConnector, PackageManagerConnector } from '@lushly-dev/afd-core/connectors';

Since 2.0 the root entry no longer re-exports them, so it bundles for the browser (for example with esbuild --bundle --platform=browser).

Command journal

JournalEntry, the JournalSink interface, MemoryJournalSink, createContextDigest and the JSON Lines helpers (serializeJournal, parseJournal) are in the root entry. The file sink needs node:fs, so it has its own subpath:

import { FileJournalSink } from '@lushly-dev/afd-core/journal-file';

Every sink's read(range) takes an inclusive seq range (from, to) and last, at most that many entries from the end of the range, still in seq order: read({ last: 1 }) is the last entry, which gives the last seq without reading the rest. The IndexedDB sink walks back from the end for it; the file sink still reads the file. A custom sink written before last returns the whole range, so take its tail with n === 0 ? [] : entries.slice(-n) when the sink is not yours (.slice(-0) is the whole range). last must be a safe integer, 0 or more; anything else is a RangeError.

In a browser, web worker or webview, IndexedDbJournalSink keeps the journal in IndexedDB:

import { IndexedDbJournalSink } from '@lushly-dev/afd-core/journal-indexeddb';

const sink = new IndexedDbJournalSink({ name: 'my-app-journal' });
await sink.lock(); // rejects with code JOURNAL_LOCKED when another tab is writing

It owns the database name, with one object store, entries, keyed by seq, and stores each entry as the JSON value the file sink would write. read(range) reads the inclusive seq range without the lock. As the file sink allows one process per file, this sink allows one writer per database: before its first append it takes the Web Lock <name>:writer and holds it until close(). When another context holds it, append and lock() reject with an IndexedDbJournalError whose code is JOURNAL_LOCKED, with a suggestion, instead of waiting; call lock() at startup to find out before any command runs. Without the Web Locks API it refuses to write (JOURNAL_LOCK_UNAVAILABLE). close() resolves once the lock is free; an append still waiting for the lock then rejects with JOURNAL_CLOSED. A read waits for the appends started before it, as the file sink's does. In Node.js tests, pass indexedDB (from fake-indexeddb) and locks.

The server package records entries (createJournalMiddleware) and replays them (replayJournal). The format is in spec/journal.md.

Contract version

AFD_CONTRACT_VERSION is the version of the AFD contract's core this package implements (spec/VERSION): result and errors, dispatch, validation, batch and pipeline, exposure and the meta-tools, which the TypeScript, Python, Rust and C++ implementations share. Each profile has its own version in spec/registry.json. It is independent of the package version. afd-help reports it as contractVersion, and the server advertises it as version in _meta["dev.afd/contract"].

import { AFD_CONTRACT_VERSION } from '@lushly-dev/afd-core';
Running processes

exec(['git', 'status'], options) from the platform subpath never uses a shell. It captures at most maxOutputBytes (default 10 MiB, DEFAULT_MAX_OUTPUT_BYTES) from each of stdout and stderr. Past that it kills the process and returns errorCode: 'OUTPUT_LIMIT_EXCEEDED' with the output captured up to the limit.

Usage

Creating Command Results
import { success, failure, type CommandResult } from '@lushly-dev/afd-core';

// Successful result with UX-enabling fields
const result: CommandResult<Document> = success(
  { id: 'doc-123', title: 'My Document' },
  {
    confidence: 0.95,
    reasoning: 'Document created with all required fields',
    sources: [{ type: 'template', title: 'Default Template' }]
  }
);…

Description from the npm listing.

  • afd
  • agent-first
  • mcp
  • ai-agents
  • command-schema

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@lushly-dev/afd-core weekly downloads on npm, last 90 days: 7,231 weekly downloads as of Dec 5, 2026, -51.6% over 90 days.@lushly-dev/afd-coreWeekly downloads on npm · Last 90 days7,231downloads / week-51.6% over 90 days05K10K15K20K25K30KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@lushly-dev/afd-core weekly downloads on npm, last 90 days: 7,231 weekly downloads as of Dec 5, 2026, -51.6% over 90 days.

7/30/90-day growth

@lushly-dev/afd-core weekly downloads growth on npm: -31.6% over 7 days, -71.8% over 30 days, -51.6% over 90 days.@lushly-dev/afd-coreWeekly downloads growth on npm7,231downloads / week now7-day growth-3,337 weekly downloads-31.6%30-day growth-18,412 weekly downloads-71.8%90-day growth-7,715 weekly downloads-51.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@lushly-dev/afd-core weekly downloads growth on npm: -31.6% over 7 days, -71.8% over 30 days, -51.6% over 90 days.

Ranking history

@lushly-dev/afd-core npm ranking history: currently #1397 (by weekly downloads).@lushly-dev/afd-corenpm ranking · by weekly downloads · Last 90 days#1397current rank#200#400#600#800#1000#1200#1400#1600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@lushly-dev/afd-core npm ranking history: currently #1397 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 70, #17 (overall #1,397)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 17, #2 (overall #322)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for @lushly-dev/afd-core
Date (UTC)Weekly downloadsChange vs. previous
7,231-471
7,702+856
6,846-157
7,003+465
6,538+1.7K
4,837-413
5,250-5.3K
10,568-1.1K
11,705-875
12,580-684
13,264-193
13,457-499
13,956+967
12,989—

Similar npm MCP servers plugins

All 20 @lushly-dev/afd-core alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@lushly-dev/afd-core. First seen Oct 16, 2026; last successful collection Dec 5, 2026. See the methodology.