Skip to content

Layout generator · Beta

Design the whole page. Down to the pixel.

Start with an executive-grade dashboard layout. Move and resize panels, explore different compositions, and export clean SVG or PNG backgrounds straight from your browser. No code, installation or account.

Free · Visual editorSVG · PNG · Pixel positions

Four layouts to start from

See exactly what it writes.

Each layout is one JSON file in the download. These are the files the generator wrote from them.

The layout The Page V0.7 is built on: four KPI panels, a trend, a ranked list, a table and a matrix. Dark, 1920 × 1080.

Config layout.json · canvas 1920 × 1080 · 8 panels · 14 slots

The Executive layout as the generator writes it: the background with its panels, 8 in all. Visual slots are listed in the table below.
Written by generate.py from layout.json; previews/executive.svg and previews/executive.positions.json in the download
Visual slots · pixels · from positions.json
SlotxyWidthHeight
3622523626
6102516426
15002038036
4070140046
40118140024
58220406114
524220406114
990220406114
1456220406114
584121027266
1145412717266
58756872266
990756872266
78541230080

Exports

Four outputs, and what each needs.

  • PWDX-Background.svg

    The page chrome: ground, header, every panel with its kicker and meta, the footer.

    Needs · Python 3

  • positions.json

    Every panel box and every visual slot box, in pixels.

    Needs · Python 3

  • PWDX-Background.png

    The SVG rasterised at 2×, ready to set as the page’s background image.

    Needs · Node 18+ and Playwright with Chromium

  • visual.json position blocks

    In a PBIR report, each mapped visual’s x, y, width and height, rewritten from the config. --check verifies them.

    Needs · A PBIR report and a slot map

Nothing else is exported.

Run it

Three commands to run it.

Unzip, open a terminal in the folder. Validate the config, write a layout, and let the generator check itself. The README in the download covers the PNG, the config keys and the Power BI report mode.

python3 generate.py --validate
python3 generate.py --config templates/light-1280.json --out-dir out --no-png --no-pbir
python3 check_generator.py

Free to use and adapt (MIT licence in the download). No account, no tracking.

How it is checked

It proves itself, and the build re-proves it.

Each check has a control that must fail when the thing it guards is broken. The same suite runs on every build of this site, from the unzipped download.

  1. 01

    Every layout validates with no warnings, and a config is refused before anything is written: a missing key, a colour that is not #RRGGBB, a span outside the grid, a duplicate id, an unknown panel, overlapping panels or slots, a box outside the canvas, an id or path that could carry markup, control characters, oversize input.

  2. 02

    previews/ equals what the generator writes from each layout today, byte for byte, and two runs give identical bytes.

  3. 03

    In a Power BI report, a visual moved by one pixel is caught by generate.py --check, and a generate run puts it back.

  4. 04

    A grid that does not add up to the canvas height is reported, not silently clipped.

  5. 05

    The packaged download is checked as a visitor gets it: exactly the listed files, no internal string or absolute path, and its own check passing from the unzipped copy.

Limits

What it will not do.

  • 01

    This page shows files the generator wrote. It does not run the generator in your browser. To change a layout, edit the JSON and run the script.

  • 02

    The PNG needs Node and Playwright. Without them, use --no-png: the SVG and positions need only Python 3.

  • 03

    Fonts are not embedded. The SVG and PNG name Segoe UI and Consolas; elsewhere the browser falls back, so a PNG drawn on Linux or macOS is a preview. Draw the shipping PNG on Windows.

  • 04

    The three new layouts are backgrounds and boxes, not finished reports, and they were not opened in Power BI Desktop. The PBIR positions mode was confirmed on Desktop only through The Page V0.7.

  • 05

    Run only layout files you trust. The generator refuses markup in ids and paths and escapes what it writes, but it is a layout tool, not a sandbox.

  • 06

    Power BI Service rendering is untested.

Built with AI. Verified by humans.

Start with the question

What should your report help you decide?

Two answers are enough to begin. The brief is written in your browser: email it from your own mail app, or save a copy. This site sends nothing on its own.

The buttons switch on when this page has finished loading. If they stay off, email mihai@playwithdata.io directly.

Goes to mihai@playwithdata.io · No account · No tracking · No network request from this site