Frontend Frameworks
Next.js
Full support with automatic detection and optimized builds. Detection:next.config.jsornext.config.mjs"next"in package.json dependencies
- Auto-detects package manager
- Runs
npm install(or equivalent) - Executes
npm run build - Serves with
npm start
Astro
Full support for static and SSR builds. Detection:astro.config.mjs"astro"in package.json dependencies
Gatsby
Static site generation support. Detection:gatsby-config.js"gatsby"in package.json dependencies
Svelte / SvelteKit
Full support for Svelte applications. Detection:svelte.config.js"svelte"or"@sveltejs/kit"in dependencies
Vue.js
Support for Vue 2 and Vue 3 applications. Detection:vue.config.js"vue"in package.json dependencies
Angular
Full support for Angular applications. Detection:angular.json"@angular/core"in dependencies
Backend Frameworks
Django (Python)
Full support for Django web applications. Detection:manage.pyrequirements.txtorpyproject.tomlwith Django
- Auto-detects package manager
- Installs dependencies
- Runs migrations
- Collects static files
- Serves with Gunicorn
Flask (Python)
Lightweight Python web framework support. Detection:app.pyorwsgi.py"Flask"in requirements.txt
FastAPI (Python)
Modern Python async framework support. Detection:"fastapi"in requirements.txt or pyproject.tomlmain.pywith FastAPI imports
Express.js (Node.js)
Minimal Node.js web framework support. Detection:"express"in package.json dependenciesapp.jsorserver.js
NestJS (Node.js)
Progressive Node.js framework support. Detection:nest-cli.json"@nestjs/core"in dependencies
tRPC (Node.js)
End-to-end typesafe API support. Detection:"@trpc/server"in dependencies
Laravel (PHP)
PHP web framework support. Detection:artisanfilecomposer.jsonwith Laravel
- Installs dependencies with Composer
- Runs migrations
- Optimizes routes and config
- Serves with PHP-FPM + Nginx
Rails (Ruby)
Ruby on Rails framework support. Detection:Gemfilewith Railsconfig/application.rb
- Installs gems with Bundler
- Runs database migrations
- Precompiles assets
- Serves with Puma
Spring Boot (Java)
Java enterprise framework support (coming soon). Detection:pom.xmlorbuild.gradle- Spring Boot dependencies
ASP.NET Core (C#)
Microsoft .NET framework support (coming soon). Detection:.csprojfiles- ASP.NET Core dependencies
Phoenix (Elixir)
Elixir web framework support (coming soon). Detection:mix.exs- Phoenix dependencies
Language Support
| Language | Package Managers | Status |
|---|---|---|
| JavaScript/TypeScript | bun, pnpm, yarn, npm | ✅ |
| Python | uv, poetry, pipenv, pip | ✅ |
| PHP | composer | ✅ |
| Ruby | bundler | ✅ |
| Go | go modules | 🚧 |
| Java | maven, gradle | 🚧 |
| C# | dotnet | 🚧 |
| Elixir | mix | 🚧 |
Package Manager Detection
JavaScript/TypeScript
Auto-detected in priority order:bun.lockb→ bunpnpm-lock.yaml→ pnpmyarn.lock→ yarn- Default → npm
Python
Auto-detected in priority order:uv.lock→ uvpoetry.lock→ poetryPipfile.lock→ pipenv- Default → pip
Framework Detection
Lightfold uses a scoring system to identify frameworks: High Priority (3+ points):- Framework-specific config files
- Package dependencies
- Build tools
- Directory structure
- File patterns
Custom Build Commands
Override detected build commands in config:Environment Variables
Framework-specific environment variables are automatically suggested: Next.js:NODE_ENV=productionNEXT_PUBLIC_API_URL
DJANGO_SETTINGS_MODULESECRET_KEYDATABASE_URL
RAILS_ENV=productionSECRET_KEY_BASEDATABASE_URL
.env file in project root.
Health Checks
Framework-specific health check endpoints:| Framework | Default Health Check |
|---|---|
| Next.js | GET / (200 OK) |
| Django | GET / (200-399) |
| Rails | GET / (200-399) |
| Express | GET /health or / |
| FastAPI | GET /docs or / |