Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

pihedy/laravel-cobol

Developer ToolsBackend

A satirical Laravel-style web framework written in COBOL, run via Docker for curious developers.

198
7
COBOL
MIT
1 day old
+93 stars in 19h

What it is

Laravel for COBOL is an unofficial, satirical project that reproduces Laravel's web-framework shape in COBOL: routes declared with CALL 'ROUTE-GET', copybook-based models, controllers with EVALUATE dispatch, middleware that wraps a request before and after, a Blade-like template syntax, and a cobtisan CLI that mirrors Artisan commands such as serve, route:list, make:controller, migrate:fresh, test and lint README: About. It is explicitly a parody and not affiliated with Laravel README: notice.

It exists for entertainment and for showing how a modern MVC framework looks when rebuilt on six-decade-old enterprise technology; the README is also careful to admit that each endpoint takes about 188 lines instead of one.

Try it

You need Docker with Docker Compose, Git, and a shell (on Windows, Git Bash or WSL). No COBOL compiler is required because the image ships GnuCOBOL 3.1.

git clone https://github.com/pihedy/laravel-cobol.git my-app
cd my-app
./cobtisan serve

The first start compiles every program, generates APP_KEY, migrates and seeds, and typically takes a minute or two. Then open http://localhost:8000. If port 8000 is occupied, copy .env.example to .env and set APP_PORT. To verify the setup, run ./cobtisan test in another terminal; stop the server with Ctrl+C or ./cobtisan down. After editing a .cbl file, run ./cobtisan build rather than restarting README: getting started.

How requests flow

lighttpd passes each request to public/index.cgi, which starts the COBOL front controller; every request is one process. Other programs compile into modules under build/ and load through CALL, so a route's controller name is a real dynamic call README: how it works. The default driver stores data in GnuCOBOL indexed files; a DB2 driver is listed as not yet delivered, and @foreach, @if and make:model are also still marked incomplete README: roadmap.

Constraints

  • The project describes itself as in early development, so treat the feature table as the source of truth for what actually works.
  • Code must stay within columns 8–72 and keywords are uppercase; ./cobtisan lint fails past column 72 README: contributing.
  • The benchmark compares both frameworks on a 1 vCPU / 1 GB VPS: PHP reaches 80 vs 137 req/s on /users/1 depending on the endpoint, and COBOL shows better tail latency but far more lines per endpoint; results vary by machine and run README: performance.
  • Authentic RACF authentication in the demo is loose, and security reports are handled "in the next available batch window" — this is a joke project, not a hardened framework README: security.
  • Licensed under MIT LICENSE.

HotRepo's take

The project stirred unusual interest for a parody: 319 points and 107 comments on Hacker News on 2026-12-03, and on the HotRepo new-project board its stars rose from 105 to 114 within an hour on the same day. The discussion did not treat it as a serious framework — one commenter said the headline alone was the first thing to make them laugh on HN in memory comment, and another, a former COBOL maintainer, called it "traumatizing but really funny" comment. That mix of nostalgia and absurdity is the right lens: it is worth a Docker run for the joke and the curiosity, not as a production web stack.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News

Laravel for COBOL
▲ 450 · 156 comments · December 3, 2026

You might also like

  1. nforst/fagusPHP/Laravel package that renders HTML+CSS to PDF with a native Rust engine, no browser requiredRust106
  2. tokio-rs/topcoatA batteries-included Rust web framework that keeps templates, reactivity and assets in one typed codebase, aimed at teams already using Rust.Rust6,207
  3. gin-gonic/ginA high-performance Go HTTP framework for building REST APIs, web apps and microservices with routing and middleware.Go89,446
  4. spring-projects/spring-frameworkA Java application framework supplying the infrastructure for enterprise apps, from dependency injection to web and data layers.Java60,302
  5. expressjs/expressMinimalist Node.js web framework for building HTTP servers, APIs, and web apps with routing and middleware.JavaScript69,577