Core Capabilities

📜 Basic

  • ✓ Full Pascal syntax compatibility
  • ✓ Modular development (include)
  • ✓ Full-scene logging

🌐 Web

  • ✓ HTTPS support
  • ✓ CORS
  • ✓ URL rewriting
  • ✓ File upload

🗄️ Database

  • ✓ SQLite / MySQL
  • ✓ SQL Server / Oracle
  • ✓ Unified API
  • ✓ Parameterized queries

⚙️ Operations

  • ✓ Scheduled tasks
  • ✓ Automated resource management
  • ✓ Exception debugging

🔒 Security

  • ✓ JWT authentication
  • ✓ Encryption (AES/DES/SM4)
  • ✓ Hashing (MD5/SHA/SM3)
  • ✓ SQL injection protection

🧰 Toolset

  • ✓ Captcha / QR Code
  • ✓ Time handling / Snowflake ID
  • ✓ Encoding (URL/Base64/HEX)

Why WebPascal 5?

Born for Delphi Developers

If you're a Delphi programmer, have you ever been intimidated by the complexity of web development? WebPascal 5 lets you build web applications and APIs with the Pascal syntax you know best, without learning a new language.

  • ✓ Script-driven, no IDE required – even debuggable on mobile
  • ✓ Zero learning curve with full Delphi syntax compatibility
  • ✓ Seamlessly migrate desktop experience to web
// 99 multiplication table example
for var i := 1 to 9 do
begin
  for var j := 1 to i do
    s += Format('%d*%d=%d ', [j, i, i*j]);
  writeln(s);
end;

Quick Start

1. First Script

Create script/hello.api:

writeln('Hello, WebPascal 5!');

Access: http://localhost:8833/ask/hello.api

2. JSON Handling

var obj := json.parse('{"name":"张三"}');
writeln(obj.name); // 张三
var email := obj.email ?? '未设置';

3. Database Query

include('/conn.cfg');
var res := db.query('mydb','SELECT * FROM users WHERE id=:p1',1);
if res.code=200 then writeln(res.data);

4. File Upload

Direct HTML form to /upload, returns JSON example:

{
    "code": 200,
    "data": "/up/20260319/14302512345678.png"
}

About Us

Jinhua Tongyu Technology Co., Ltd.

Founded in 2018, we focus on software development and IT services, dedicated to providing efficient and easy-to-use web development tools for Delphi developers.

Tel: 13905792605 | Email: 593106@qq.com

Live Demos

Script demo server: http://hk.zjoss.com:8833/

Vue demo server: http://hk.zjoss.com/

*Demo account: admin / admin