MCPcopy Index your code
hub / github.com/replicate/scribble-diffusion

github.com/replicate/scribble-diffusion @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
26 symbols 68 edges 25 files 0 documented · 0% 10 cross-repo links updated 10mo ago★ 2,97627 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🖍️ Scribble Diffusion

Try it out at scribblediffusion.com

How it works

This app is powered by:

🚀 Replicate, a platform for running machine learning models in the cloud.

🖍️ ControlNet, an open-source machine learning model that generates images from text and scribbles.

Vercel, a platform for running web apps.

⚡️ Next.js server-side API routes, for talking to the Replicate API.

👀 Next.js React components, for the browser UI.

🍃 Tailwind CSS, for styles.

Development

  1. Install a recent version of Node.js
  2. Copy your Replicate API token and set it in your environment: echo "REPLICATE_API_TOKEN=<your-token-here>" > .env.local
  3. Install dependencies and run the server: npm install npm run dev
  4. Open localhost:3000 in your browser. That's it!

Core symbols most depended-on inside this repo

loadStartingPaths
called by 1
components/canvas.js
onChange
called by 1
components/canvas.js
getObjectFromRequestBodyStream
called by 1
pages/api/predictions/index.js
uploadFile
called by 1
lib/upload.js
upsertPrediction
called by 1
lib/db.js
getRecentPredictions
called by 1
lib/db.js
dataUriToBuffer
called by 1
lib/data-uri-to-buffer.js
sleep
called by 1
lib/sleep.js

Shape

Function 26

Languages

TypeScript100%

Modules by API surface

components/canvas.js4 symbols
pages/scribbles/index.js2 symbols
pages/index.js2 symbols
pages/api/predictions/index.js2 symbols
lib/db.js2 symbols
components/prompt-form.js2 symbols
pages/scribbles/[id].js1 symbols
pages/api/replicate-webhook.js1 symbols
pages/api/predictions/[id].js1 symbols
pages/_document.js1 symbols
next.config.js1 symbols
lib/upload.js1 symbols

Dependencies from manifests, versioned

@prisma/client4.10.1 · 1×
@vercel/analytics0.1.10 · 1×
@vercel/og0.1.0 · 1×
autoprefixer10.4.8 · 1×
copy-to-clipboard3.3.3 · 1×
eslint8.23.0 · 1×
eslint-config-next12.2.5 · 1×
lodash4.17.21 · 1×
lucide-react0.88.0 · 1×
naughty-words1.2.0 · 1×
next13.4.2 · 1×
postcss8.4.16 · 1×

For agents

$ claude mcp add scribble-diffusion \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact