MCPcopy Index your code
hub / github.com/Nutlope/llamacoder

github.com/Nutlope/llamacoder @main

repository ↗ · DeepWiki ↗ · Ask this repo → · + Follow
103 symbols 295 edges 77 files 0 documented · 0% updated today★ 6,9813 open issues
README

Llama Coder

Llama Coder

An open source Claude Artifacts – generate small apps with one prompt. Powered by Llama 3 on Together.ai.

Tech stack

  • Llama 3.1 405B from Meta for the LLM
  • Together AI for LLM inference
  • Sandpack for the code sandbox
  • Next.js app router with Tailwind
  • Helicone for observability
  • Plausible for website analytics

Cloning & running

  1. Clone the repo: git clone https://github.com/Nutlope/llamacoder
  2. Create a .env file and add your API keys:
  3. Together AI API key: TOGETHER_API_KEY=<your_together_ai_api_key>
  4. CSB API key: CSB_API_KEY=<your_csb_api_key>
  5. Database URL: Use Neon to set up your PostgreSQL database and add the Prisma connection string: DATABASE_URL=<your_database_url>
  6. Run npm install and npm run dev to install dependencies and run locally

Contributing

For contributing to the repo, please see the contributing guide

Extension points exported contracts — how you extend this code

State (Interface)
(no doc)
hooks/use-toast.ts

Core symbols most depended-on inside this repo

cn
called by 22
lib/utils.ts
extractAllCodeBlocks
called by 9
lib/utils.ts
toTitleCase
called by 5
lib/utils.ts
dispatch
called by 5
hooks/use-toast.ts
getExtensionForLanguage
called by 4
lib/utils.ts
createMessage
called by 4
app/(main)/actions.ts
parseTag
called by 4
app/(main)/chats/[id]/code-viewer.tsx
getFilesFromMessage
called by 4
app/(main)/chats/[id]/code-viewer.tsx

Shape

Function 102
Interface 1

Languages

TypeScript100%

Modules by API surface

lib/utils.ts12 symbols
hooks/use-toast.ts9 symbols
app/(main)/chats/[id]/code-viewer.tsx9 symbols
app/(main)/chats/[id]/chat-log.tsx4 symbols
components/ui/drawer.tsx3 symbols
components/syntax-highlighter.tsx3 symbols
app/(main)/page.tsx3 symbols
app/(main)/chats/[id]/page.client.tsx3 symbols
hooks/use-scroll-to.ts2 symbols
hooks/use-media-query.ts2 symbols
components/code-runner-react.tsx2 symbols
app/share/v2/[messageId]/page.tsx2 symbols

Dependencies from manifests, versioned

@codesandbox/sandpack-react2.20.0 · 1×
@codesandbox/sandpack-themes2.0.21 · 1×
@conform-to/zod1.2.2 · 1×
@headlessui/react2.2.0 · 1×
@monaco-editor/react4.7.0 · 1×
@prisma/adapter-neon6.5.0 · 1×
@prisma/client6.5.0 · 1×
@radix-ui/react-radio-group1.2.2 · 1×
@radix-ui/react-switch1.1.2 · 1×
@radix-ui/react-toast1.2.4 · 1×

For agents

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

⬇ download graph artifact