cerebras_coder
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
This is an AI code assistant powered by Cerebras, running llama3.3-70b.
Inspired by Hassan's Llama Coder.
The application has been converted to use Hono for better performance and caching:
- Backend: Hono-based API server (
/backend/index.ts
) - Frontend: React SPA served from
/public/
- Database: SQLite with migrations and queries
- Caching: HTTP caching headers for static assets and generated content
- Sign up for Cerebras
- Get a Cerebras API Key
- Save it in your project env variable called
CEREBRAS_API_KEY
- Static assets (JS, CSS, images): 24 hours cache
- Versioned content (
/p/:project/v/:version
): Immutable cache (1 year) - Latest project (
/p/:project
): 5 minutes cache - Main page: 5 minutes cache
GET /
- Main application pagePOST /api/generate
- Generate code from promptGET /p/:project
- Latest version of projectGET /p/:project/v/:version
- Specific version of projectGET /public/*
- Static assets