Loading...
Loading...
Integrate, configure, and deploy Platformatic Watt for Node.js and PHP applications. Use when users ask to: - "add watt", "setup watt", "integrate watt", "configure watt" - "deploy with watt", "containerize my app", "deploy to kubernetes" - "migrate to watt", "port my app to watt" - "create watt.json", "configure platformatic" - "wattpm", "wattpm create", "wattpm inject", "wattpm logs" - use wattpm CLI commands, manage running applications - work with Node.js application servers - run PHP, WordPress, or Laravel in Node.js Supports Next.js, Express, Fastify, Koa, Remix, Astro, NestJS, PHP, WordPress, and Laravel.
npx skill4agent add platformatic/skills wattnode --versionwatt.jsonls watt.json 2>/dev/null| Input Pattern | Action |
|---|---|
| Run Integration Workflow |
| Run Multi-Service Setup |
| Run Migration/POC Workflow |
| Run Observability Setup |
| Run Scheduler Setup |
| Run CMS Integration Setup |
| Run Docker Deployment |
| Run Kubernetes Deployment |
| Run Cloud Deployment |
| Run wattpm CLI Workflow |
| Run wattpm CLI Workflow (create) |
| Run wattpm CLI Workflow (inject) |
| Run wattpm CLI Workflow (logs) |
| Run wattpm CLI Workflow (ps) |
| Run wattpm CLI Workflow (admin) |
| Run wattpm CLI Workflow (resolve/import) |
| Run Status Check |
| File | Framework | Package |
|---|---|---|
| Next.js | |
| Remix | |
| Astro | |
| NestJS | |
| WordPress | |
| Laravel | |
| PHP | |
| Dependency | Framework | Package |
|---|---|---|
| NestJS | |
| Fastify | |
| Express | |
| Koa | |
@platformatic/nodewatt.jsonhttps://schemas.platformatic.dev/@platformatic/{package}/3.0.0.json{package}nextremixastronodephp@platformatic/node@platformatic/nextruntimewatt@platformatic/runtimeserviceswebautoloadruntimewatt.jsonnpm install wattpmnpm install @platformatic/next # for Next.js
npm install @platformatic/remix # for Remix
npm install @platformatic/astro # for Astro
npm install @platformatic/php # for PHP/WordPress/Laravel{
"scripts": {
"dev": "wattpm dev",
"build": "wattpm build",
"start": "wattpm start"
}
}.envPLT_SERVER_HOSTNAME=0.0.0.0
PLT_SERVER_LOGGER_LEVEL=info
PORT=3000wattpm --versionnpm run devnpm run build && npm run startwatt.jsonweb/composer/web/frontend/web/api/web/db/{service-id}.plt.local// From api service, call db service
const response = await fetch('http://db.plt.local/users');npm install wattpmnpx wattpmwatt.jsoncreateclosenpx wattpm devnpx wattpm startasync function create() {
const app = express()
app.get('/health', (req, res) => res.json({ status: 'ok' }))
return app
}
module.exports = { create }{
"logger": {
"level": "{PLT_SERVER_LOGGER_LEVEL}"
},
"telemetry": {
"serviceName": "my-service",
"exporter": {
"type": "otlp",
"options": { "url": "{OTEL_EXPORTER_OTLP_ENDPOINT}/v1/traces" }
}
},
"metrics": {
"port": 9090
}
}schedulerwatt.json{
"scheduler": [
{
"name": "daily-cleanup",
"cron": "0 0 3 * * *",
"callbackUrl": "http://api.plt.local/cron/cleanup",
"method": "POST",
"maxRetries": 3
}
]
}http://{service-id}.plt.localrevalidateTag()Dockerfile.dockerignoredocker-compose.ymldeployment.yamlservice.yamlconfigmap.yamlhpa.yamlfly.tomlrailway.jsonrender.yaml/watt statusnode --versionls watt.jsonnode -e "JSON.parse(require('fs').readFileSync('watt.json'))"npx wattpm --versionWatt Configuration Status
========================
Node.js Version: vX.X.X [OK/UPGRADE NEEDED]
watt.json: [Found/Missing]
Configuration: [Valid/Invalid]
wattpm: [Installed vX.X.X/Not installed]
Scripts: [Configured/Missing]
[Next steps if any issues found]wattpm create
wattpm create --module @platformatic/nextwattpm inject --path /health
wattpm inject my-app api-service --method POST --path /users \
--header "Content-Type: application/json" \
--data '{"name": "Alice"}'wattpm ps # list running instances
wattpm logs my-app # stream all logs
wattpm logs my-app api-service # stream logs from a sub-application
wattpm env my-app --table # view environment variables
wattpm config my-app # view configurationwattpm import . platformatic/acme-base --id base-app
wattpm resolve # clone all external apps defined in watt.jsonwattpm admin # launch Watt admin UI
wattpm patch-config . patches/production.js # apply config patches{app-name}.plt.localwattpmwattpm buildPLT_NEXT_WORKERSoutput: 'standalone'