The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
{
"name": "api",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "api/src",
"projectType": "application",
"tags": [],
"namedInputs": {
"openapiAssets": [{ "runtime": "cksum ../openapi/*.openapi.yaml" }]
},
"targets": {
"build": {
"inputs": [
"production",
"^production",
"openapiAssets",
"{workspaceRoot}/shared/filestore-instances.ts",
{
"dependentTasksOutputFiles": "**/*",
"transitive": true
}
],
"executor": "@nx/webpack:webpack",
"options": {
"outputPath": "dist/apps/api",
"deleteOutputPath": false,
"main": "api/src/main.ts",
"tsConfig": "api/tsconfig.app.json",
"generatePackageJson": false,
"target": "node",
"compiler": "tsc",
"sourceMap": true,
"webpackConfig": "api/webpack.config.js",
"assets": [
{
"input": "api/src/assets",
"glob": "**/*",
"output": "./assets/"
},
{
"input": "../openapi",
"glob": "{box,admin,apps}.openapi.yaml",
"output": "./assets/openapi/"
}
]
},
"configurations": {
"development": {
"skipTypeChecking": true
},
"production": {
"optimization": true,
"extractLicenses": true,
"inspect": false
}
}
},
"openapi": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/**/*.ts",
"!{projectRoot}/src/**/*.spec.ts",
"{projectRoot}/tsconfig.app.json",
"^production",
"{workspaceRoot}/shared/filestore-instances.ts",
{
"dependentTasksOutputFiles": "**/*",
"transitive": true
}
],
"outputs": ["{workspaceRoot}/dist/apps/api/openapi.json", "{workspaceRoot}/dist/apps/api/openapi.3.1.0.json"],
"options": {
"commands": [
"mkdir -p dist/apps/api",
"yarn ts-node api/src/generate-openapi.ts -o dist/apps/api/openapi.json"
],
"parallel": false,
"env": {
"TS_NODE_PROJECT": "api/tsconfig.app.json",
"TS_NODE_TRANSPILE_ONLY": "true",
"NODE_OPTIONS": "--require tsconfig-paths/register",
"SKIP_CONNECTIONS": "true"
}
}
},
"serve": {
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"options": {
"buildTarget": "api:build",
"runBuildTargetDependencies": false,
"watch": true
},
"configurations": {
"development": {
"buildTarget": "api:build:development"
},
"production": {
"buildTarget": "api:build:production"
}
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "cd {projectRoot} && prettier --write \"**/*.{ts,json,mjs}\" --config ../../.prettierrc"
}
},
"test": {
"executor": "@nx/jest:jest",
"cache": true,
"inputs": [
"default",
"^default",
"{workspaceRoot}/shared/filestore-instances.ts",
{ "env": "DB_HOST" },
{ "env": "DB_PORT" },
{ "env": "DB_USERNAME" },
{ "env": "DB_PASSWORD" },
{ "env": "DB_DATABASE" },
{ "env": "REDIS_HOST" },
{ "env": "REDIS_PORT" },
{ "env": "REDIS_USERNAME" },
{ "env": "REDIS_PASSWORD" },
"openapiAssets"
],
"options": {
"jestConfig": "api/jest.config.mjs",
"passWithNoTests": true
}
},
"check-version-env": {},
"docker": {
"options": {
"target": "boxlite",
"context": "..",
"file": "apps/api/Dockerfile"
}
},
"push-manifest": {},
"lint": {
"executor": "nx:run-commands",
"options": {
"command": "bash api/scripts/validate-migration-paths.sh $(find api/src/migrations -name '*-migration.ts' -type f)"
}
}
}
}