Install SkillFlaw - TypeScript
This guide covers the formal installation paths for the SkillFlaw TypeScript backend runtime.
Use this page when your target runtime is based on:
docker/docker-compose-ts.ymlmake ts_install_backendmake ts_init_dbmake ts_backendmake ts_backend_verifymake ts_lfx_build/make ts_lfx_testmake ts_tool_build/make ts_tool_test
If you need the Python backend runtime instead, use Install SkillFlaw - Python.
Choose the TypeScript runtime when
- you want the repository's TypeScript backend workflow
- you need the TypeScript source-development loop documented in
README_TS.md - you want the TypeScript Docker Compose stack with
backend_ts - you need TypeScript package validation for backend, LFX, or tool packages
Install with Docker Compose
Use this path for a complete local product stack.
Prerequisites
- Docker Engine / Docker Desktop and Docker Compose are installed
- the repository-root
.envis optional unless you need TypeScript runtime overrides - this path provisions a dedicated TypeScript database through
SKILLFLAW_TS_DATABASE_URL
Steps
-
Clone the repository:
_10git clone https://github.com/cwinux/skillflaw.git_10cd skillflaw -
Optional: copy
.env.exampleto.envwhen you need runtime overrides:_10cp .env.example .env -
Start the TypeScript stack:
_10docker compose -f docker/docker-compose-ts.yml up -d
On first startup, this path bootstraps a dedicated TypeScript database, creates the secret-key file in skillflaw_secret_ts_data, runs db_init_ts, exports TypeScript bootstrap data through db_init_export_ts, and finishes with the one-shot stack_check_ts verification service.
Default access points
- frontend:
http://localhost:3003 - backend health:
http://localhost:7861/health - docs:
http://localhost:3004
Success check
Treat the installation as successful when all of the following are true:
docker compose -f docker/docker-compose-ts.yml psshowspgsql,redis,backend_ts,frontend, anddocrunning, whilesecret_init,db_init_ts,db_init_export_ts, andstack_check_tshave completed successfullydocker compose -f docker/docker-compose-ts.yml logs stack_check_tsends with[backend_ts] ok,[frontend] ok, and[doc] okhttp://localhost:7861/healthreturns a healthy responsehttp://localhost:3003opens the SkillFlaw frontendhttp://localhost:3004opens the standalone docs site
Install from source
Use source installation for TypeScript-backend development, debugging, frontend customization, or repository-based customization.
Source-installation prerequisites
- Node.js
22 LTSand npm>=10.9 - PostgreSQL
SKILLFLAW_TS_DATABASE_URLSKILLFLAW_SECRET_KEY_FILESKILLFLAW_TS_TEST_DATABASE_URLonly when tests are needed
Steps
-
Clone the repository:
_10git clone https://github.com/cwinux/skillflaw.git_10cd skillflaw -
Copy
.env.exampleto.env:_10cp .env.example .env -
Configure at least:
SKILLFLAW_TS_DATABASE_URLSKILLFLAW_SECRET_KEY_FILESKILLFLAW_TS_TEST_DATABASE_URLonly when tests or package validation are in scope
If you use Redis cache, also configure:
SKILLFLAW_CACHE_TYPE=redisSKILLFLAW_REDIS_HOSTSKILLFLAW_REDIS_PORT
-
Install TypeScript backend dependencies:
_10make ts_install_backend -
Initialize the TypeScript backend database:
_10make ts_init_db -
Start the backend:
_10make ts_backend -
Start the frontend:
_10make frontend
Optional package validation:
_10make ts_backend_verify_10make ts_lfx_build_10make ts_lfx_test_10make ts_tool_build_10make ts_tool_test
Success check
make ts_install_backendcompletes without dependency errorsmake ts_init_dbcompletes successfullyhttp://localhost:7860/healthreturns a healthy response aftermake ts_backendhttp://localhost:3000opens the frontend aftermake frontend- the relevant TypeScript validation commands pass when they are in scope
Optional runtime dependencies
OpenSandbox and OpenCode are optional for base platform startup. Prepare them only when you need Skill sandbox execution or AI-assisted workflows.
OpenSandbox
Configure these repository-root .env settings when the TypeScript backend needs OpenSandbox:
SKILLFLAW_SKILL_SANDBOX_OPENSANDBOX_DOMAINSKILLFLAW_SKILL_SANDBOX_OPENSANDBOX_API_KEYSKILLFLAW_SKILL_SANDBOX_OPENSANDBOX_PROTOCOLSKILLFLAW_SKILL_SANDBOX_OPENSANDBOX_USE_SERVER_PROXYSKILLFLAW_SKILL_SANDBOX_OPENSANDBOX_REQUEST_TIMEOUT_SECONDS
For the repository-local TypeScript backend flow, point them to an address reachable from the host environment where make ts_backend runs.
OpenCode
- the TypeScript runtime expects
opencodeto be available in the same host environment asmake ts_backend - this documented repository path does not use
SKILLFLAW_CONTAINER_OPENCODE_* - the TypeScript backend invokes
opencodefromsrc/lfx/src
Default admin account
The default admin account prepared by repository initialization is:
- username:
admin - password:
Skillflaw@123321