AI prompts
base on Whiteboard as an IDE, draw and code in your browser # pad.ws - whiteboard as an IDE šØ
[](https://pad.ws)
[pad.ws](https://pad.ws) is a whiteboard app that acts as a dev environment in your browser
## ⨠Features
* šØ **Interactive Whiteboard** - Draw, sketch and visualize your ideas with Excalidraw
* š» **Fully fledged IDE** - Access terminals and VS Code directly within the whiteboard
* āļø **Browser friendly** - Access your dev env from any device
* š **Seamless Workflow** - Switch between visual ideation and coding
* š ļø **Use your own tools** - Access your VM from your desktop client (VS Code & Cursor supported)
This uses [Excalidraw](https://github.com/excalidraw/excalidraw) for the whiteboard interface while [Coder](https://github.com/coder/coder) powers the cloud development environments.
## Try it online š
Visit [pad.ws](https://pad.ws) for an official managed instance. During this beta, we offer free ubuntu dev environments without any setup
## Self-Hosting š ļø
ā ļø IMPORTANT NOTICE: This repository is in early development stage. The setup provided in `docker-compose.yml` is for development and testing purposes only.
This simplified example lets you host pad on `localhost` but is not safe for real-life use without further configurations ā ļø
### ā
Prerequisites
* **Linux Host** (This was tested on Ubuntu only)
* **Docker & Docker Compose:** Ensure you have both installed. [Install Docker](https://docs.docker.com/get-docker/) / [Install Docker Compose](https://docs.docker.com/compose/install/)
### 1ļøā£ .env
* Copy and review the default values
```bash
cp .env.template .env
```
### 2ļøā£ PostgreSQL š
> Ensure persistence for the whole deployment (canvases and configs)
* Run the PostgreSQL container using the provided configuration (e.g., in your `docker-compose.yml`)
```bash
docker compose up -d postgres
```
### 3ļøā£ Redis š
> In-memory data store for caching and session management with password authentication
* Run the Redis container with password authentication
```bash
docker compose up -d redis
```
* The Redis password is configured in your `.env` file using the `REDIS_PASSWORD` variable
### 4ļøā£ Keycloak š
> OIDC provider for access and user management (within coder and pad app)
* Run the Keycloak container
```bash
docker compose up -d keycloak
```
* Access the Keycloak admin console http://localhost:8080
* **Create a Realm:** Name it appropriately (e.g., `pad-ws`)
* **Create a Client:**
* Give it a `Client ID` (e.g., `pad-ws-client`)
* Enable **Client Authentication**
* Add * to the valid redirect urls
* You can leave other settings as default for now
* **Get Credentials:**
* Navigate to `Clients` -> `[Your Client ID]` -> `Credentials` tab
* Note the **Client secret**.
* Update your environment variables file (`.env`) with:
```dotenv
OIDC_REALM=your_oidc_realm
OIDC_CLIENT_ID=your_client_id
OIDC_CLIENT_SECRET=your_client_secret
```
* **Create a User:**
* Navigate to `Users` -> `Create user`
* Fill in the details
* **Important:** Tick `Email verified`
* Go to the `Credentials` tab for the new user and set a password
* **Create an Audience:**
* Navigate to `Clients` -> `[Your Client ID]` -> `Client Scopes`
* Click on the dedicated scope of your Client (`[clientid]-dedicated`)
* Click on `Configure a new mapper`
* Then click on `Audience`
* Ensure `Included Client Audience` matches your `Client ID`
* Ensure `Add to access token` is On
### 5ļøā£ Coder š§āš»
* **Find Docker Group ID:** You'll need this to grant necessary permissions
```bash
getent group docker | cut -d: -f3
```
* Update your `.env` file with the `DOCKER_GROUP_ID`:
```dotenv
DOCKER_GROUP_ID=your_docker_group_id
```
* Run the Coder container.
```bash
docker compose up -d coder
```
* **Access Coder UI:** Open [localhost:7080](http://localhost:7080) in your browser
* **First Login:** Create an administrator user (e.g., `admin`)
* **Create a Template:**
* Use the "Start from template" option.
* Choose a base image (e.g., `docker-containers` or a simple Ubuntu). Configure it as needed
* **Generate API Key:**
* Click your profile picture (top right) -> `Account` -> `API Keys`
* Generate a new token
* Update your `.env`
```dotenv
CODER_API_KEY=your_coder_api_key
```
* **Get Template ID:**
* Visit `http://localhost:7080/api/v2/templates` in your browser (or use `curl`)
* Find the `id` of the template you created
* Update your `.env`
```dotenv
CODER_TEMPLATE_ID=your_coder_template_id # Example: 85fb21ba-085b-47a6-9f4d-94ea979aaba9
```
* **Get Default Organization ID:**
* Visit `http://localhost:7080/api/v2/organizations` in your browser (or use `curl`)
* Find the `id` of your organization (usually the default one)
* Update your `.env`:
```dotenv
CODER_DEFAULT_ORGANIZATION=your_organization_id # Example: 70f6af06-ef3a-4b4c-a663-c03c9ee423bb
```
* **If you use a custom name for your workspace:**
* You need to provide the name as `CODER_WORKSPACE_NAME` in your `.env`. Otherwise, it will assume your workspace name is the default we chose: `ubuntu`.
### 6ļøā£ Pad App š
> The fastAPI app that both serves the build frontend and the backend API to interface with Coder
* **Run the Application:**
* Ensure all environment variables in your `.env` file are correctly set
* Run the `pad` application container
```bash
docker compose up -d pad
```
š **Congratulations!** You should now be able to access and login to your self-hosted pad at [localhost:8000](http://localhost:8000)
š§ *Did you have any issue while following this guide?*
*Please [let us know](https://github.com/pad-ws/pad.ws/issues) so we can improve the onboarding flow*
## š Project Growth
[](https://star-history.com/#pad-ws/pad.ws&Date)
", Assign "at most 3 tags" to the expected json: {"id":"14367","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"