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

@appifex/codegen

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/codegen

LLM-driven code generation for SwiftUI / Kotlin Compose targets

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@appifex/codegen

Pluggable code generation adapter for the DTC toolkit. Accepts a design spec and test files, produces source code.

Usage

import { ClaudeAdapter } from '@appifex/codegen'
import { LocalRunner } from '@appifex/runner'

const adapter = new ClaudeAdapter({
  generateFn: async (input) => {
    // Call your LLM here with input.spec and input.uiTestPaths
    return { success: true, files: [...], tokensUsed: 5000 }
  },
})

// Generate code
const result = await adapter.generate({ spec, uiTestPaths, unitTestPaths, outputDir: './src' })

// Or generate and write to disk in one step
const runner = new LocalRunner(process.cwd())
await adapter.generateAndWrite(input, runner)

Custom adapters

Implement the CodegenAdapter interface to use any code generation backend:

import type { CodegenAdapter } from '@appifex/codegen'

const myAdapter: CodegenAdapter = {
  name: 'my-custom',
  async generate(input) {
    return { success: true, files: [...], tokensUsed: 0 }
  },
}

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