Skip to content

About

AI-builder w/ programmatic generation & transfers of Clerk applications via https://clerk.com/docs/reference/platform-api

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

Repository files navigation

Clark the builder

Fallback image description

What is this?

This is a demo application (inspired by leading genAI apps like V0, Claude, etc.) to demonstrate programmatic Clerk resource access, including but not limited to application creation with PK & SK retrieval, and application transfers to other users' workspaces.

This is made possible by the Clerk Platform API (currently in private beta)

Contributing

Populate environment variables

cp .env.example .env

Install deps

bun i

Generate the api client

bun run api:generate

For Vercel Sandbox access, configure the Vercel OAuth app as a public client and register this callback URL:

https://YOUR_APP/api/vercel-connection/callback

The app needs openid and offline_access scopes, Project: Read, and Sandbox management permissions. After changing Vercel App permissions, users must reauthorize the app. Each visitor then explicitly selects the Vercel team and project Clark may use. Clark does not read deployment environment variables or .vercel metadata to select that scope.

For OpenRouter access, set OPENROUTER_TOKEN_ENCRYPTION_KEY to a random value with at least 32 characters. Clark uses the OpenRouter PKCE flow at /api/openrouter-connection/callback and stores the user API key encrypted.

Run the app

bun run dev

This project was originally cloned from https://oss-vibe-coding-platform.vercel.app/

About

AI-builder w/ programmatic generation & transfers of Clerk applications via https://clerk.com/docs/reference/platform-api

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages