Getting started
gcportrait renders Google Cloud-style architecture diagrams. It is an independent open-source project and is not affiliated with, endorsed by, or sponsored by Google. Google Cloud and the Google Cloud product icons are trademarks of Google and are used under Google's icon usage terms.
gcportrait draws a Google Cloud organisation, folder or project as an architecture diagram from Cloud Asset Inventory data, three ways: self-hosted in a Google Cloud project of yours (self-host.md), as a web app, and through an API that returns any view as SVG, PNG or draw.io (api.md). The quickest way to see what it does is the web app's demo mode: synthetic organisations generated in your browser, with no Google account, no backend call and nothing to install. This page gets you there in two minutes, then points to the guide for each next step.
1. Try the demo
Open https://gcportrait.app/demo/ (opens in a new tab). It is a static build of the app in demo-only mode, served by the website: no sign-in, no server, and only the four demo organisations, which your browser generates itself (ADR 0034).
Or run the released image on your machine, with Docker (or a compatible runtime), and open http://localhost:8080:
docker run --rm --publish 127.0.0.1:8080:8080 ghcr.io/florianchrometz/gcportrait:latest
To run it from the source instead, contributing.md has the setup (pnpm dev:demo).
2. A first tour
- On the Connect page, pick a size (S about 100 assets, M about 1 000, L about 6 000, XL about 50 000) and press "Try the demo". M is a good start: it holds every product group's prominent types.
- Lenses. The Lens menu in the top bar redraws the same organisation for one question: Networking, Load balancing, Compute, Data and more. Focus, Filters and Detail narrow it further (lenses and filters).
- Trace. Hover a resource: its path to the top of the organisation lights up. Click it: its connections stay highlighted, the details drawer opens, and "Open in Cloud Console" would open its console page in a real environment.
- Drill in and search. Click a collapsed zone to open it, double-click a project or folder to make it the
whole canvas (the breadcrumb leads back), press
/and type a name or an IP address such as10.0.14.5. - Timeline. Drag the slider at the bottom, or press
[and], to move through the demo's 35 days; each day marks what was added, removed or changed since the day you came from (the timeline). - Export. The Export menu saves the view as SVG, PNG or an editable draw.io file (export); "Copy link" shares it, since every view lives in the address.
3. Next steps
| You want to | Read |
|---|---|
| Understand the ways gcportrait reads Google Cloud: your account, a service account, export files, the demo | Modes |
Know which roles reading a scope needs, with the exact gcloud commands |
Permissions |
| Run gcportrait on Cloud Run in your own Google Cloud project, in about 10 minutes | Self-host |
| Look up a setting of an instance | Configuration |
| Find an answer quickly | FAQ |
There is no hosted instance you sign in to: to read your own Google Cloud, you deploy your own with one line and your project id (self-host.md). Your snapshots stay in your browser.
This page is docs/getting-started.md in the repository, rendered for the website.