Skip to content
プロジェクト

概要

FastPlaz - Pascal Web Framework

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
+4

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

FastPlaz

English | Bahasa Indonesia

FastPlaz Hero Banner

Free Pascal 3.2.2 Lazarus Platforms

Fast, native web applications in Free Pascal.

FastPlaz is a web framework for Free Pascal. Your application compiles to a single native binary that runs on cheap shared hosting as CGI or as its own HTTP server. Build it in the Lazarus IDE with project wizards and a built-in AI coding agent, or straight from the terminal.

Key features

One binary, two modes: Standalone and CGI

The same compiled application runs as a standalone HTTP server or as CGI, chosen when it starts. No code changes between the two.

  • CGI: deploy directly on shared hosting with cPanel, without your own VPS.
  • Standalone: run it locally with no web server at all, or as a long-lived service behind nginx.
./myapp.bin                 # standalone: http://127.0.0.1:17845
./myapp.bin --mode=http --port=8081
# started by Apache as CGI: detected automatically

Deployment guide · Example

AI Agent Plane

Coding agents inside the Lazarus IDE. Claude Code, OpenCode, Pi and GitHub Copilot CLI chat with you in a dockable window and use the IDE itself: open a unit at the right line, read unsaved editor changes, compile the project, read the compiler errors and fix them, and generate FastPlaz controllers and models.

AI Agent Plane

More about AI Agent Plane

Why FastPlaz

  • Native speed, tiny footprint. No interpreter, no runtime to install on the server. One binary plus your theme files.
  • Runs anywhere. Windows, Linux and macOS; shared hosting, a VPS or a container.
  • MVC that stays simple. Controllers, routes, themes with template tags, and TSimpleModel with a query builder.
  • APIs out of the box. JSON controllers, CORS, sessions, CSRF tokens, reCAPTCHA, mailer with a built-in SMTP client, Redis.
  • Databases. MySQL, PostgreSQL, SQLite and Firebird through SQLdb.
  • Batteries for real projects. Ready-made integrations (OpenAI, Telegram, LINE, Facebook Messenger, Slack, Firebase, Elasticsearch, and more), Indonesian NLP helpers (stemmer, dictionaries).
  • A real IDE experience. Lazarus wizards for projects, controllers and models, Database Explorer, JSON and Regex tools, and AI Agent Plane.
  • Tested. More than 700 FPCUnit tests, run on Windows and Linux.

See the code

A JSON API controller, as generated by the Create API Controller wizard:

procedure THelloController.Get;
var
  json: TJSONUtil;
begin
  json := TJSONUtil.Create;
  json['code'] := Int16(0);
  json['msg'] := 'Hello from FastPlaz';
  json['data/name'] := _GET['name'];

  Response.ContentType := 'application/json';
  Response.Content := json.AsJSON;
  json.Free;
end;

initialization
  Route['hello'] := THelloController;

Querying a table with TSimpleModel:

if User
  .Select('*')
  .Where('uid > %d AND uid < %d', [5, 10])
  .OrderBy('uid')
  .Limit(10)
  .Open then
begin
  // ...
end;

Quick start

Requirements: Free Pascal 3.2.2 and Lazarus (Lazarus is optional; you can also compile from the terminal).

  1. Clone the repository:

    git clone -b development https://github.com/fastplaz/fastplaz.git
    
  2. Install the packages in Lazarus:

    • install jcfbase and jcfidelazarus (Jedi Code Format) from the Online Package Manager;
    • open tools/fastplaz_runtime.lpk and compile it;
    • open tools/fastplaz_tools.lpk, compile and install it. Lazarus rebuilds itself and the FastPlaz menu appears.

    FastPlaz menu

  3. Create a project: File > New Project ... > Simple Application (or API Application). Choose the HTTP run mode.

    New project

  4. Run it and open http://127.0.0.1:17845. The same binary also runs as CGI when Apache starts it.

AI Agent Plane

  • Runtimes: Claude Code, OpenCode, Pi, GitHub Copilot CLI and other ACP agents. Switch runtime, model and thinking effort from the chat window.
  • IDE tools over MCP: the IDE runs a local MCP server (127.0.0.1 only, token protected) and hands it to the agent: open_file, read_editor, project_info, compile_project, get_messages, create_api_controller, create_model and more.
  • You stay in control: tools that compile, delete or create files show a permission card first.
  • Live Editor: files the agent changes are reloaded in the open editors.

Read more: docs/AI_AGENT_by_FASTPLAZ.md and the MCP tool list in docs/MCP.md.

IDE tools

Everything is in the FastPlaz menu.

Tool What it does
Project wizards Create a Simple Application, API Application, Full Package Application, with the directory and theme structure
Controller and model wizards Simple controller, API (JSON) controller, TSimpleModel to work with a table
Database Explorer Access your databases straight from the Lazarus IDE, run queries and copy field lists into your code
JSON Validator & Formatter Check and pretty-print JSON
Regex Tester Try regular expressions against sample text
Fast Code Suggestion Generate code with an AI model from the source editor's popup menu (OpenAI-compatible servers)
AI Agent Plane Coding agents inside the IDE (see above)

Database Explorer

Deployment

  • CGI: copy the binary and the public_html content to Apache, as on any shared hosting.
  • Standalone HTTP: the same binary runs as a long-lived server (--mode=http, default http://127.0.0.1:17845), usually behind nginx or Apache. Graceful shutdown, max_requests and per-request database connections are built in.

Projects built with FastPlaz

Documentation

Upgrading from an older version

The November 2026 release contains fixes that change how existing applications behave: session timeout is in minutes, Redirect/die do not leave the current method, a failed Save/Delete returns False, flash messages are HTML encoded. Read docs/UPGRADE.md and docs/CHANGES.md first.

To update a clone, pull and recompile the packages:

git pull

Community

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md.

License

See LICENSE.txt.

関連プロジェクトを探す

読み込み中…