| title | Scratchwork | |||||
|---|---|---|---|---|---|---|
| description | Share your agent artifacts | |||||
| keywords |
|
|||||
| author | Scratchwork | |||||
| lang | en |
Scratchwork is a tool for sharing static websites with your colleagues.
It's designed for sharing agent artifacts like HTML and markdown files, but it's also useful for writing, product specs, mocks, and demos.
Publish your work publicly to share it with the world, or privately to share it with friends and teammates.
Just ask your agent:
Create a simple "hello world" website and publish it to scratchwork.dev. Give everyone with an email @example.com permission to read it.
Install the Scratchwork CLI with
curl -fsSL https://scratchwork.dev/install.sh | bashAsk your agent to create an html or markdown file, or use a Scratchwork example project:
scratchwork examplePreview your work locally:
scratchwork devPublish it privately
scratchwork publish --server scratchwork.dev --privateGive your all of your teammates read access:
scratchwork share @example.com --role readHTML is great for reading, but it's a terrible medium for writing. Scratchwork renders Markdown with an embedded default renderer. It's not magic; you can see (and edit) it with scratchwork template.
Your markdown files can reference React components defined in ./components/, which is useful for interactive demos like this:
...or building custom formatting components like this highlighter.
For now, you can publish projects (<5mb) on scratchwork.dev for free. However, published projects are deleted after 48 hours.
If you'd like to be able to pay for a hosted option, upvote this Github issue (TODO: create an issue)
Scratchwork is open source and can be hosted anywhere. To configure your own server, use:
# Configure for Cloudflare (a worker using R2 and D1)
npm create scratchwork-server-cloudflareswap cloudflare for your favorite serverless platform: aws, vercel, railway, or smolmachines.
Run your server locally with
node local.tsand deploy it with
node deploy.ts