FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
canstralian
canstraliancerebras_coder
Remix of stevekrouse/cerebras_coder
Public
Like
cerebras_coder
Home
Code
6
backend
2
database
2
public
3
README.md
TODOs.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
…
README.md

cerebras_coder

This is an AI code assistant powered by Cerebras, running llama3.3-70b.

Inspired by Hassan's Llama Coder.

Architecture

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

Setup

  1. Sign up for Cerebras
  2. Get a Cerebras API Key
  3. Save it in your project env variable called CEREBRAS_API_KEY

Caching Strategy

  • 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

API Endpoints

  • GET / - Main application page
  • POST /api/generate - Generate code from prompt
  • GET /p/:project - Latest version of project
  • GET /p/:project/v/:version - Specific version of project
  • GET /public/* - Static assets
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.