A lightweight, premium-designed web tool to instantly convert PostgreSQL schema definitions (CREATE TABLE) into PocketBase JSON collections.
- Instant Conversion: Parses SQL commands purely in the browser (client-side).
- Smart Type Mapping:
VARCHAR/TEXTβtextINT/SERIALβnumber(onlyInt: true)BOOLEANβboolJSONBβjsonTIMESTAMPβdate(orautodatefor system fields)
- Relation Detection: Automatically detects Foreign Keys (
user_idβrelationtouser_collection). - Premium UI: Modern dark mode aesthetic, glassmorphism, and responsive design.
- Export Options: Copy directly to clipboard or download as
.json.
- Enter SQL: Paste your
CREATE TABLEstatements into the left panel. - Convert: Click the "Convert Schema" button.
- Import: Download the JSON and import it directly into your PocketBase dashboard ("Settings" > "Import collections").
CREATE TABLE posts (
id UUID PRIMARY KEY,
title VARCHAR(255) NOT NULL,
content TEXT,
is_published BOOLEAN DEFAULT false,
author_id UUID, -- Auto-detected as relation to 'author_collection'
created_at TIMESTAMP DEFAULT NOW()
);- HTML5
- Vanilla CSS3 (Custom variables, Flexbox/Grid, Animations)
- Vanilla JavaScript (ES6+, Regex parsing)
- Zero Dependencies
MIT License. Feel free to use and modify for your own projects.