create-promptline-app
v1.3.11
Published
Create PromptLine applications with ease
Maintainers
Readme
create-promptline-app
Create AI-powered applications with PromptLine - no configuration needed.
Quick Start
npx create-promptline-app my-app
cd my-appThat's it! You now have a fully-configured PromptLine package ready for development.
Usage
Interactive Mode (Recommended)
npx create-promptline-app my-appYou'll be prompted for:
- Display name
- Description
- Brand color
- Contact email
- Template preset
Non-Interactive Mode
npx create-promptline-app my-app --yes
npx create-promptline-app my-app --preset saas -yTemplate Presets
| Preset | Description | Best For |
|--------|-------------|----------|
| contact | Landing page + contact form + dashboard | Marketing sites, lead generation |
| saas | Full app with auth, dashboard, settings | SaaS products, internal tools |
| api | Minimal frontend, backend-focused | API services, integrations |
| blank | Empty template | Custom builds from scratch |
npx create-promptline-app my-app --preset saas
npx create-promptline-app my-api --preset apiWhat You Get
my-app/
├── public/ # Public pages (no auth required)
│ └── index.tsx # Landing page
├── private/ # Protected pages (auth required)
│ ├── dashboard.tsx # Dashboard
│ └── settings.tsx # Settings
├── backend/ # Custom API endpoints (FastAPI)
│ └── api.py
├── assets/ # Static files
├── promptline.yaml # Package configuration
├── README.md
└── .gitignoreConfiguration
Your app is configured via promptline.yaml:
name: "My App"
version: "1.0.0"
# Connect AI prompts/agents
ai_sources:
main:
type: prompt
source_id: null # Set in Creator Studio
# Define data models
collections:
submissions:
fields:
- name: email
type: email
required: true
# Instance variables
variables:
app_name:
type: string
default: "My App"SDK Usage
In your React pages:
import { usePromptLine } from '@promptline/sdk'
export default function MyPage() {
const { config, submitForm, callAI, user } = usePromptLine()
// Access instance config
const appName = config.app_name
// Submit data
await submitForm('submissions', { email: '[email protected]' })
// Call AI
const result = await callAI('main', { text: 'Hello!' })
return <h1 style={{ color: config.primary_color }}>{appName}</h1>
}Deployment
- Upload - Zip your package and upload to PromptLine Creator Studio
- Configure - Connect your AI sources and set variables
- Publish - Deploy to your users or the App Store
Documentation
Requirements
- Node.js 16+
- npm or yarn
License
MIT - PromptLine
