Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@appifex/core

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appifex/core

Shared types, progress, token budget, checkpoint, and config for the DTC toolkit

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
11
10%
Maintainers
2
Weekly downloads
 
Created
Source

@appifex/core

Shared types, progress emitter, token budget, checkpoint, and configuration for the DTC toolkit.

Usage

import {
  loadConfig, saveConfig,
  ProgressEmitter, terminalProgressListener,
  TokenBudget,
  Checkpoint,
} from '@appifex/core'

// Config
const config = await loadConfig('~/.dtc')
await saveConfig('~/.dtc', { ...config, llm: { provider: 'anthropic', apiKey: 'sk-...' } })

// Progress
const progress = new ProgressEmitter()
progress.on(terminalProgressListener(console.log))
progress.emit({ phase: 'design', status: 'started', message: 'Creating design', timestamp: Date.now() })

// Token budget
const budget = new TokenBudget({ total: 100_000, perPhase: { design: 30_000 } })
budget.consume('design', 5_000)
budget.canConsumePhase('design', 25_001) // false

// Checkpoint (SQLite)
const ckpt = new Checkpoint('/tmp/pipeline.db')
ckpt.savePhase('run-1', 'design', { penFile: 'design.pen' })
ckpt.getPhase('run-1', 'design') // { penFile: 'design.pen' }
ckpt.close()

Modules

ModulePurpose
typesAll shared TypeScript types (DesignSpec, Runner, ProgressEvent, FixResult, etc.)
configLoad/save ~/.dtc/config.json with sensible defaults
progressTyped event emitter for pipeline progress with terminal formatter
token-budgetPer-phase and total token tracking with limit enforcement
checkpointSQLite-backed pipeline state persistence for crash recovery

Keywords

appifex

FAQs

Package last updated on 20 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts