Winglang is an open-source programming language that merges infrastructure and runtime logic. Programs compile to Terraform-style IaC and JavaScript and can run locally in a simulator.
Overview
Winglang is a cloud-oriented programming language built to express both distributed infrastructure and application code in one model. Instead of maintaining separate IaC templates and service code, developers describe cloud resources and the functions that use them with phase distinctions between compile-time infrastructure (preflight) and deploy-time runtime (inflight).
Preflight code runs at compile time to emit provider configuration such as Terraform or CloudFormation. Inflight code compiles to JavaScript for execution on cloud compute. Cloud queue, bucket, and API types expose methods scoped to the correct phase, and IAM policies and similar wiring can be generated from source.
Programs can execute locally without internet using a simulator, or deploy to supported cloud providers with portability across engines including AWS, GCP, Azure, Terraform, CloudFormation, Pulumi, and Kubernetes. A Wing Cloud Library offers portable resource types, Terraform provider plugins extend available services, and JavaScript interoperability is supported.
Tooling includes a CLI, IDE extension, and Wing Console for visual debugging and operations. The language emphasizes immutable defaults, async execution, JSON as a primitive type, and local tests for full architectures before deployment.
Key features
- Preflight and inflight execution phases
- Compiles to Terraform and JavaScript
- Portable cloud resource library
- Local simulator for fast testing
- Automatic IAM policy generation
- Terraform ecosystem resource plugins
- Wing Console for local operations
- JavaScript and npm interoperability
Use cases
- Serverless APIs with storage and queues
- Portable multi-cloud backend apps
- Infrastructure plus logic in one repo
- Local testing of cloud architectures
- Custom abstractions over cloud primitives