Go to file
Lu Wilson 9a87723561
Update README.md
2024-01-18 12:35:13 +00:00
public shut it down 2024-01-14 18:56:53 +00:00
src restore root 2024-01-14 19:03:56 +00:00
.eslintrc.json Initial commit from Create Next App 2023-11-18 15:17:57 -08:00
.gitignore shut it down 2024-01-14 18:56:53 +00:00
.prettierrc update 2023-11-25 19:49:34 +00:00
LICENSE.md shut it down 2024-01-14 18:56:53 +00:00
README.md Update README.md 2024-01-18 12:35:13 +00:00
next.config.js feat: tldraw + fal (#1) 2023-11-19 21:07:39 -08:00
package-lock.json switch back to npm 2024-01-14 19:24:39 +00:00
package.json shut it down 2024-01-14 18:56:53 +00:00
tsconfig.json alex/overlay-mode: overlay mode 2023-11-28 14:56:59 +00:00

README.md

draw fast

Draw Fast is a demo that shows how you can use the tldraw library with realtime image generation. The demo has now finished and weve taken it down. But you can still run it on your own machine and try it out.

Heres how:

1. Clone the repo

Clone this repo!

git clone https://github.com/tldraw/draw-fast

2. Get a Fal key

Go to fal.ai

Login with github, and get a key from the keys page. (You can give it any name you want).

1

Copy your key.

2

3. Setup environment variables

Create a .env file in the root folder of your repo. Paste your key there as FAL_KEY

Your file should something like this:

FAL_KEY=8bf6c68d-8711-426b-90c6-0d9636909fce:b774f2a649cfecbf56dce57db7966a73

4. Run it locally

In your terminal…

npm install
npm run dev

And open localhost:3000

5. Draw fast

Draw something in the rectangle! Double-clicking the prompt to change it. Click the small arrow to enter lens mode.

6. Share!

Record your screen and show us what you draw fast.

Were @tldraw on twitter.

Troubleshooting

If the generated images dont appear, try running npm install and npm run dev again, or try waiting a while for your key to activate.