LOOK Programming Language
We rethought the technology the web needs.
LOOK is an open source programming language designed from scratch for building web applications, offering developers a different approach with its own runtime and built-in capabilities.
- Current version 1.1.6
- C++23
- Apache 2.0
- .lk
- Linux · Windows · Docker
Why a new language?
Today even a simple web application needs a language, a framework, a package manager, dozens of dependencies, a separate queue service and a separate real-time layer. Every layer means another version, another configuration and another source of failure.
LOOK grew out of the idea that the language itself, not a framework, should meet these needs. You do not install extra packages to define a route, run a query, start a session or push a job to the background; they are standard modules of the language.
Designed and developed by Codlook; the clearest proof of our ability to build our own technology.
// Fetch a user by ID: the database is part of the language
route("GET", "/users/{id}", function($req) {
$id = int(request::param("id"))
$user = db::query(app::db(), "SELECT * FROM users WHERE id = ?", [$id])
if ($user == null) {
return response::error(404, "not found")
}
return response::json($user)
})
See it in code
// One line: arrow function
route("GET", "/", fn($req) => response::json(["hello" => "world"]))
// Fetch a record by ID
route("GET", "/users/{id}", function($req) {
$id = int(request::param("id"))
$user = db::query(app::db(), "SELECT * FROM users WHERE id = ?", [$id])
if ($user == null) {
return response::error(404, "not found")
}
return response::json($user)
})
// Submit a form: read the body, validate, store
route("POST", "/signup", function($req) {
$body = request::json()
if (!validator::email($body["email"])) {
return response::error(400, "invalid email")
}
db::exec(app::db(), "INSERT INTO users(email) VALUES(?)", [$body["email"]])
return response::json(["ok" => true], 201)
})
// Real-time chat over WebSocket
route("WS", "/chat", function($conn) {
ws::on($conn, "message", function($m) {
ws::broadcast($m) // send to everyone
})
})
// Live event stream (SSE)
route("SSE", "/prices", function($conn) {
sse::send($conn, json::encode($tick))
})
// Don't make the request wait: enqueue, return instantly
jobs::push("mail", json::encode(["to" => $email, "subject" => "Welcome", "body" => $body]))
return response::json(["ok" => true])
// Separate worker: durable queue, survives a restart
jobs::worker("mail", function($job) {
$p = json::decode($job["payload"])
$r = mail::send($p["to"], $p["subject"], $p["body"])
return $r["ok"]
})
jobs::run()
What ships with the language
Routing and HTTP
GET, POST, WS and SSE routes, path parameters and middleware. Runs as a standalone HTTP server or as FastCGI behind Apache or nginx.
Database
Built-in drivers for MySQL/MariaDB, PostgreSQL and SQLite, with parameterised queries and transaction support.
Sessions and security
Session management, CSRF protection, secure cookies, password hashing and crypto functions. JWT is installed as an official module.
Validation
A validator module for email, numeric, required-field and length checks.
Cache and queues
A cache with expiry, an in-memory queue and durable background jobs with retries.
Real-time communication
WebSocket and Server-Sent Events routes and timers are defined directly in the language.
Templates
A template engine with layout inheritance and partial views, including HTML escaping.
Sending email through the mail module. The built-in mail server is experimental.
Technical architecture
Request
HTTPWebSocketSSE
lk-fcgi
Standalone HTTP server or FastCGI
LOOK runtime · C++23
routerequestresponsedbsessioncsrfvalidatorcachejobswsssetemplatemailcrypto
Data
MySQL / MariaDBPostgreSQLSQLite
Developer experience
- The application server ships as a single binary; a Docker image and a Plesk extension are available.
- The production target is Linux x86_64. A Windows build is provided and other environments are supported through Docker.
- VS Code extension, code formatter (lk fmt), syntax check (lk --check), test runner (lk test) and a REPL.
- Modules and packages install straight from GitHub: the jwt and ai modules, and the iyzico, firebase and monitor packages.
Getting started
$ docker run -p 7400:7400 -v "$PWD/app:/app" codlook/look
$ code --install-extension codlook.look-lang
$ lk module install github.com/codlook/look-modules/jwt
What comes next
LOOK is under active development. Our near-term focus is the stability of the language, security updates, documentation and a growing module ecosystem. Our goal is to make LOOK an open source web technology from Türkiye that the international developer community uses too.
LookPress: ExploreQuestions about LOOK
Is LOOK a framework or a programming language?
LOOK is a programming language. It has its own syntax, its own runtime written in C++23 and its own standard modules. Web needs such as routing, database access and sessions are met by the modules of the language itself, not by a framework.
Which databases does LOOK support?
It has built-in drivers for MySQL/MariaDB, PostgreSQL and SQLite. Connections and queries go through the db module, using parameterised queries.
Which platforms does LOOK run on?
The production target is Linux x86_64. A Windows build is provided, and it can run in other environments through the Docker image. There is a ready-made extension for Plesk.
Is LOOK free, and what is its license?
LOOK is an open source project released under the Apache 2.0 license. Its source code is public on GitHub.
Is there a real product written in LOOK?
Yes. LookPress is an open source web application and content platform written in LOOK, and it runs a live demo site.
Let's start a project
Tell us what you have in mind and we will plan it together.