Skip to content

Commit e138872

Browse files
Merge pull request Gerome-Elassaad#41 from Gerome-Elassaad/desktop/app
Desktop/app
2 parents ff45642 + c4520a2 commit e138872

File tree

553 files changed

+92470
-4773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+92470
-4773
lines changed

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ next-env.d.ts
4747

4848

4949
.env
50-
51-
scripts
5250
.vscode
5351
mcp.json
54-
5552
CLAUDE.md
56-
.claude
53+
# Workspace documentation (keep these files)
54+
55+
# Apps workspace - ignore build artifacts only
56+
apps/*/node_modules/
57+
apps/*/build/
58+
apps/*/dist/
59+
apps/*/.next/
60+
apps/*/out/
61+
apps/*/.env
62+
apps/*/.env.local
63+
apps/*/pnpm-lock.yaml

.vercelignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Vercel Deployment - Ignore apps workspace
2+
3+
# Apps directory (desktop app deployed separately)
4+
apps/
5+
apps/**
6+
7+
# Only deploy web app (@codinit/web) from root

README.md

Lines changed: 89 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,76 @@
1-
![opengraph](https://github.com/user-attachments/assets/de684e88-a65c-42ea-b067-d1a3bc85a420)
1+
# CodinIT.dev
22

3+
<p align="center">
4+
<strong>AI-Powered Code Execution and Development Platform</strong>
5+
</p>
6+
7+
<p align="center">
8+
<a href="https://docs.codinit.dev">Documentation</a> •
9+
<a href="https://codinit.dev">Website</a> •
10+
<a href="https://gerome-elassaad.github.io/codinit-app">Desktop App Docs</a> •
11+
<a href="#features">Features</a> •
12+
<a href="#get-started">Get Started</a>
13+
</p>
314

415
<p align="center">
516
<a href="https://e2b.dev/startups">
617
<img src="https://img.shields.io/badge/SPONSORED%20BY-E2B%20FOR%20STARTUPS-32CD32?style=for-the-badge" alt="SPONSORED BY E2B.DEV" />
718
</a>
819
</p>
920

21+
---
22+
23+
## 📦 Workspace Structure
24+
25+
> **This is a pnpm workspace monorepo** containing two applications:
26+
27+
| Application | Location | Framework | Port | Deploy |
28+
|-------------|----------|-----------|------|--------|
29+
| **@codinit/web** | `/` (root) | Next.js 14 | 3000 | Vercel |
30+
| **@codinit/desktop** | `/apps/desktop` | Remix + Electron | 5173 | Desktop installers |
31+
32+
📚 **[WORKSPACE.md](WORKSPACE.md)** - Complete workspace guide (commands, deployment, architecture)
33+
34+
---
35+
36+
## ✨ Features
1037

11-
## Features
38+
### Core Capabilities
39+
- 🚀 **AI-Powered Code Generation** - Multiple LLM providers (OpenAI, Anthropic, Google AI, and more)
40+
-**Real-time Code Execution** - Secure E2B sandboxes with live preview
41+
- 📊 **Multiple Development Environments** - Python, Next.js, Vue.js, Streamlit, Gradio
42+
- 💬 **Streaming AI Responses** - Real-time UI updates with Vercel AI SDK
43+
- 🔐 **Secure Authentication** - Supabase auth with Row Level Security
44+
- 📦 **Package Installation** - Install any npm or pip package on the fly
1245

13-
- Based on Next.js 14 (App Router, Server Actions), shadcn/ui, TailwindCSS, Vercel AI SDK.
14-
- Streaming in the UI.
15-
- Can install and use any package from npm, pip.
16-
- Supported stacks ([add your own](#adding-custom-personas)):
17-
- 🔸 Python interpreter
18-
- 🔸 Next.js
19-
- 🔸 Vue.js
20-
- 🔸 Streamlit
21-
- 🔸 Gradio
22-
- Supported LLM Providers ([add your own](#adding-custom-llm-models)):
23-
- 🔸 OpenAI
24-
- 🔸 Anthropic
25-
- 🔸 Google AI
26-
- 🔸 Mistral
27-
- 🔸 Groq
28-
- 🔸 Fireworks
29-
- 🔸 Together AI
30-
- 🔸 Ollama
46+
### Supported LLM Providers
47+
- 🔸 **OpenAI** (GPT-4, GPT-3.5)
48+
- 🔸 **Anthropic** (Claude models)
49+
- 🔸 **Google AI** (Gemini)
50+
- 🔸 **Groq** (Fast inference)
51+
- 🔸 **Fireworks AI**
52+
- 🔸 **Together AI**
53+
- 🔸 **Mistral AI**
54+
- 🔸 **xAI** (Grok)
55+
- 🔸 **DeepSeek**
56+
- 🔸 **Ollama** (Local models)
3157

32-
**Make sure to give us a star!**
58+
### Development Environments
59+
- 🐍 **Python Data Analyst** - Jupyter-style execution with data visualization
60+
- ⚛️ **Next.js Developer** - Full-stack React applications
61+
- 🎨 **Vue.js Developer** - Vue 3 applications
62+
- 📈 **Streamlit Developer** - Data apps and dashboards
63+
- 🎯 **Gradio Developer** - ML model interfaces
3364

34-
This is an open-source version of apps like [Anthropic's Claude Artifacts](https://www.anthropic.com/news/claude-3-5-sonnet), Vercel [v0](https://v0.dev), or [GPT Engineer](https://gptengineer.app).
65+
### Built With
66+
- **Next.js 14** (App Router, Server Actions)
67+
- **shadcn/ui** + **TailwindCSS** for beautiful UI
68+
- **Vercel AI SDK** for LLM streaming
69+
- **E2B** for secure code execution
70+
- **Supabase** for database and auth
71+
- **TypeScript** for type safety
72+
73+
**⭐ Give us a star if you like this project!**
3574

3675
## Get started
3776

@@ -58,12 +97,14 @@ Enter the repository:
5897
cd fragments
5998
```
6099

61-
Run the following to install the required dependencies:
100+
Run the following to install the required dependencies for both workspaces:
62101

63102
```
64-
npm i
103+
pnpm install
65104
```
66105

106+
> **Note:** This project uses **pnpm workspaces**. The command above installs dependencies for both the web app and desktop app.
107+
67108
### 3. Set the environment variables
68109

69110
Create a `.env.local` file and set the following:
@@ -118,14 +159,35 @@ NEXT_PUBLIC_POSTHOG_HOST=
118159

119160
### 4. Start the development server
120161

162+
**Web App (Next.js):**
163+
```
164+
pnpm dev
165+
```
166+
Visit http://localhost:3000
167+
168+
**Desktop App (Electron + Remix):**
121169
```
122-
npm run dev
170+
pnpm desktop:dev
123171
```
172+
Or:
173+
```
174+
cd apps/desktop && pnpm dev
175+
```
176+
Visit http://localhost:5173
177+
178+
### 5. Build the applications
124179

125-
### 5. Build the web app
180+
**Web App:**
181+
```
182+
pnpm build
183+
```
126184

185+
**Desktop App:**
127186
```
128-
npm run build
187+
pnpm desktop:build # Build all platforms
188+
pnpm desktop:build:mac # macOS only
189+
pnpm desktop:build:win # Windows only
190+
pnpm desktop:build:linux # Linux only
129191
```
130192

131193
## Customize

0 commit comments

Comments
 (0)