🚀
Zero Dependencies
Pure TypeScript with no external runtime dependencies, ensuring maximum compatibility and minimal bundle size
Build AI prompts with templates, variables, chaining, and intelligent expansion
import { P, PromptNode } from '@promptsx/core'
const builder = P()
const systemNode = new PromptNode('system')
systemNode
.setRole('code-assistant', 'A helpful coding assistant')
.content('You are an expert developer')
.important('Always provide working code examples')
builder.nodes.push(systemNode)
const prompt = builder.build()
console.log(prompt)