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

@appifex/design

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

Design input adapters (Pencil / Figma / Figma-Make / Stitch) for the appifex-dtc pipeline

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@appifex/design

AI design generation with pluggable adapters for the DTC toolkit.

Usage

import { PencilAdapter } from '@appifex/design'
import { LocalRunner } from '@appifex/runner'

const runner = new LocalRunner(process.cwd())
const pencil = new PencilAdapter(runner, { cliKey: process.env.PENCIL_CLI_KEY! })

// Create a new design
const result = await pencil.create({
  prompt: 'Pet adoption app with browse, favorites, adoption form',
  outputPath: 'design.pen',
  exportPath: 'preview.png',
})

// Iterate on existing design
await pencil.iterate({
  inputPath: 'design.pen',
  outputPath: 'design.pen',
  prompt: 'Make cards 2-column grid with shadows, add heart icons',
})

Adapters

AdapterToolStatus
PencilAdapterPencil CLIImplemented
StitchAdapterGoogle StitchImplemented
FigmaMakeAdapterFigma Make (MCP)Implemented

Importing external design exports (zero-adapter path)

Any design tool that exports HTML + screenshots can feed the DTC pipeline without a dedicated adapter — export a zip, then pass it via dtc run --design path/to/export.zip. Supported out of the box:

  • Google Stitch (generated by StitchAdapter, or exported manually)
  • Figma MakeFile → Export HTML
  • Claude Design (Anthropic Labs) — Export → Standalone HTML files

The zip is unpacked via extractDesignZip into .design-import/; HTML + screenshots (+ optional design.md) are fed to extractSpecFromHtmlDesign to produce a normalized DesignSpec. From there the pipeline is identical to .pen inputs.

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