Use peekcode

Environment

What your app needs to run, detected from the repo and shown as a canvas you can start, edit and connect.

Environment shows the services your app needs as cards on a canvas: the app itself, the databases, caches, queues and other services it talks to, and the lines between them (HTTP, SQL, Redis, with their ports). peekcode detects them from the repo, including docker-compose.yml. Simulate uses the same environment.

Start brings up every card in order; the dot on each turns green when it is running.

Start and stop

Start, Restart and Stop act on the whole environment, whose state is Stopped, Starting, Running, Partly running or Failed. After you edit it, Apply puts your changes into effect. Stop and wipe data… also deletes the Docker volumes, after asking.

The Logs panel shows each service's output, with search, Matches only and Wrap.

How each service runs

Modepeekcode…
Dockerruns a container and stops it when you stop.
Commandruns a local command, such as ./gradlew bootRun.
Existingonly connects to something already running.
IDEleaves it to you: run it from your IDE.

Run in IDE gives you an .env file or the variables to paste. For JetBrains IDEs, Open adds a peekcode · … run configuration to .run/.

Edit on the canvas

  • Add opens a library of databases, queues and images, with Suggested from this repo first. Add an Existing service, a Docker image or a Command on this Mac.
  • Import docker-compose… and Load .env bring in what you already have.
  • Connect to…: drag a port onto another card to link them. Edit linked variables shows which variables point where; Add N suggested variables fills in the rest.
  • Detect again rereads the repo; Reset to detected throws away your edits. Undo and redo work on the canvas, and Remove from environment can be undone.
  • Click a card to see where it is declared (the compose file and line), its port, and the variables that use it.
The environment canvas with order-service, risk-service, Postgres, RabbitMQ and Redis, and the compose file card
Cards come from docker-compose.yml; the file card lists the line each service is on.

What it detects

KindDetected
AppsSpring Boot, FastAPI, Django, Flask, NestJS, Express, Go, and frontends (Vite, Next.js, Nuxt, Angular, Vue, SvelteKit, React)
DatabasesPostgreSQL, MySQL, MariaDB, MongoDB, ClickHouse, Cassandra, Neo4j, InfluxDB
Caches and searchRedis, Memcached, Elasticsearch, OpenSearch, Meilisearch, Qdrant
MessagingRabbitMQ, Kafka, NATS
OthersLocalStack, Keycloak, Mailpit

Share it with your team

The setup you can share is saved in the repo, in .peekcode/env.yaml, next to .peekcode/config.yaml; commit it and your team gets the same environment. Passwords you type and the state of your last run stay on your computer, in ~/.peekcode/env. See Local files.