50 Commits

Author SHA1 Message Date
Akhilesh Rangani
6fb1364d6f chore: format frontend code 2024-10-21 13:57:45 -06:00
Hamzat Victor
0f619ccb7d feat: update project icon for each template type 2024-09-24 14:10:56 +01:00
Hamzat Victor
c2a23fcbcb fix: remove editor red squiggly lines
by dynamically loading project's tsconfig file and adding nice defaults
2024-09-24 13:00:49 +01:00
Hamzat Victor
47324f15bf feat: add support for syntax highlighting for 290+ languages 2024-09-05 13:30:24 +01:00
Akhilesh Rangani
f1a65106b0 feat: different run commands based on file types 2024-08-19 17:45:47 -07:00
James Murdza
6a31161c0a Start development server when run button is clicked. 2024-07-31 17:49:59 -07:00
James Murdza
9f0b6a8fdc
Implement secure cloud sandboxes with E2B (#35)
* chore: rename utils.ts to fileoperations.ts

* feat: replace node-pty with E2B sandboxes

* added debounced function in the editor

* fix: move socket connection to useRef

* fix: wait until terminals are killed to close the container

* fix: ensure container remains open until all owner connections are closed

* fix: sync files to container instead of local file system

* fix: set project file permissions so that they belong to the terminal user

* fix: use the container URL for the preview panel

* fix: count only the current user's sandboxes towards the limit

* fix: remove hardcoded reference to localhost

* fix: add error handling to the backend

* docs: add information about E2B

---------

Co-authored-by: Akhilesh Rangani <akhileshrangani4@gmail.com>
2024-06-27 23:39:03 -07:00
Ishaan Dey
6376493ae7 dynamic worker routes based on env 2024-05-26 18:37:36 -07:00
Ishaan Dey
fbb98ac3b0 revert to local hosting 2024-05-26 17:28:52 -07:00
Ishaan Dey
010a4fec59 improve starting server logic 2024-05-26 12:18:09 -07:00
Ishaan Dey
30e1c39d6c type fixes 2024-05-23 23:52:30 -07:00
Ishaan Dey
1528ea5257 add project deletion in storage & connect to ip port 3000 2024-05-23 23:05:01 -07:00
Ishaan Dey
218afd4fe0 services logic 2024-05-23 01:35:08 -07:00
Ishaan Dey
561a284fc9 more container orchestration logic 2024-05-21 00:57:52 -07:00
Ishaan Dey
a3dd0d6598 small changes 2024-05-20 09:49:47 -07:00
Ishaan Dey
bf35c2bf82 dashboard ui 2024-05-17 23:54:34 -07:00
Ishaan Dey
14ea89d690 ecs logic 2024-05-17 23:18:15 -07:00
Ishaan Dey
5b72f84951 formatting 2024-05-13 22:04:00 -07:00
Ishaan Dey
eb629835d2 orchestrator changes 2024-05-13 14:32:15 -07:00
Ishaan Dey
5df770bdd6 change gke cluster 2024-05-13 03:00:15 -07:00
Ishaan Dey
59fb0521af improve orchestrator, docker settings, and ui layouts 2024-05-12 22:06:11 -07:00
Ishaan Dey
18aca540cc re-organize files + setup more orchestration logic 2024-05-12 02:10:31 -07:00
Ishaan Dey
b496ab193d add folder logic 2024-05-11 18:03:42 -07:00
Ishaan Dey
1500e84724 add disabled states on creation 2024-05-09 21:05:21 -07:00
Ishaan Dey
db8c26cd38 organize & comment code 2024-05-08 23:52:08 -07:00
Ishaan Dey
84c49f0d9d add worker service binding + inactivity detection 2024-05-06 21:29:25 -07:00
Ishaan Dey
c5762d430c update dockerfile env logic & deploy database cf worker 2024-05-05 22:33:24 -07:00
Ishaan Dey
47ce5db223 add ai generations limit + random bug fixes 2024-05-05 16:51:30 -07:00
Ishaan Dey
09ead6073b ui + shared user improvements 2024-05-05 14:33:09 -07:00
Ishaan Dey
7fba908b7c add basic ratelimiting 2024-05-05 12:55:34 -07:00
Ishaan Dey
159e7b62e2 userbutton ui 2024-05-04 23:31:35 -07:00
Ishaan Dey
2bfaf428d9 finish generate logic 2024-05-03 00:52:01 -07:00
Ishaan Dey
e6cf993b6a start generate logic 2024-05-02 18:05:18 -07:00
Ishaan Dey
e23b38875e unsharing logic 2024-05-01 02:22:02 -04:00
Ishaan Dey
5ba1c03030 sharing logic 2024-05-01 01:53:49 -04:00
Ishaan Dey
66a76eb0f9 sql schema update + start share logic 2024-05-01 01:29:16 -04:00
Ishaan Dey
894de9990a delete file ui + logic 2024-04-30 01:56:43 -04:00
Ishaan Dey
29cd17cd3d finally working terminal 2024-04-29 02:19:27 -04:00
Ishaan Dey
bce9d11b3b adding file logic 2024-04-29 00:50:25 -04:00
Ishaan Dey
ec900d3d77 start terminal ui + logic 2024-04-28 20:06:47 -04:00
Ishaan Dey
7b7bd6f430 implement server actions for sandbox data mutation 2024-04-27 21:24:20 -04:00
Ishaan Dey
d941e2c056 add sonner + project creation working 2024-04-27 16:22:35 -04:00
Ishaan Dey
1b6bd01989 sandbox data route + cosmetic changes 2024-04-27 00:28:00 -04:00
Ishaan Dey
4e7d6d1a97 start ws server file fetching logic 2024-04-26 02:10:37 -04:00
Ishaan Dey
a49de2294d dynamic file display + tab state 2024-04-26 00:10:53 -04:00
Ishaan Dey
ffee1b60c7 fix worker + start create modal with logic 2024-04-23 01:53:37 -04:00
Ishaan Dey
14d95eb8fe improve backend logic 2024-04-21 22:55:49 -04:00
Ishaan Dey
a765eea5d8 pass data properly to userbutton 2024-04-18 15:25:20 -04:00
Ishaan Dey
19c2992824 fix db relations + display sandboxes on dash 2024-04-18 00:13:40 -04:00
Ishaan Dey
a838241ac3 refactor folder 2024-04-16 17:18:51 -04:00