# Rishabh - We don't have the editor as a separat... Channel: #support Source: https://discord.com/channels/1233487248129921135/1519687406624706570 Started: 2026-06-25T12:55:12.606000+00:00 Last activity: 2026-06-27T02:36:30.338000+00:00 ## Rishabh — 2026-06-25T12:55:12.166000+00:00 We don't have the editor as a separate package, we use `CodeMirror` for our playground. You can use that ## Rishabh — 2026-06-25T12:57:16.074000+00:00 <@757706909351411845> I remember having a talk about separating the CodeEditor to a different repo from tscircuit.com. But I am not sure if we should have a package for users to use our CodeEditor (cause we are itself using CodeMirror, and not much added value from our side) ## Mustafa7 — 2026-06-25T13:55:31.133000+00:00 https://github.com/tscircuit/tscircuit-code-editor We have a code editor separated, but it needs work and needs to be integrated ## Mustafa7 — 2026-06-25T13:56:19.831000+00:00 Arnav was working on it ## Rishabh — 2026-06-25T14:03:11.016000+00:00 yeah, I know. It will help us to cleanup the tscircuit.com. ## ! Rushabh | Linux Shill — 2026-06-25T14:56:16.726000+00:00 what work is needed to integrate it?? ## Mustafa7 — 2026-06-25T15:17:24.007000+00:00 Not sure how much of it is implemented. Let's see what seve has to see ## ! Rushabh | Linux Shill — 2026-06-27T01:30:39.185000+00:00 <@757706909351411845> ## Seve — 2026-06-27T01:36:51.475000+00:00 i have no idea it should probably be scrapped ## Seve — 2026-06-27T01:36:58.117000+00:00 i don't think there was any meaningful progress made ## Seve — 2026-06-27T01:37:04.757000+00:00 you can create a new repo using tscircuit/create-repo ## ! Rushabh | Linux Shill — 2026-06-27T01:40:18.818000+00:00 what should the new CodeEditor package include at minimum? ## Seve — 2026-06-27T01:40:54.548000+00:00 i would use your best judgement haha ## Seve — 2026-06-27T01:41:16.352000+00:00 but ideally it is lightweight, fast, has autocomplete for typescript, type checking, and can load tscircuit's types ## Seve — 2026-06-27T01:41:26.935000+00:00 it doesn't need to run tscircuit code however ## ! Rushabh | Linux Shill — 2026-06-27T01:58:26.719000+00:00 [attachment] Attachment: image.png — https://community.tscircuit.com/media/1520246903739121735 ## Seve — 2026-06-27T02:04:25.439000+00:00 the actual bundle size matters ## ! Rushabh | Linux Shill — 2026-06-27T02:10:37.847000+00:00 then code mirror is better. ## ! Rushabh | Linux Shill — 2026-06-27T02:11:19.801000+00:00 Arnav's attempt used Monaco ## ! Rushabh | Linux Shill — 2026-06-27T02:11:38.519000+00:00 https://github.com/tscircuit/create-repo/pull/1 ## Seve — 2026-06-27T02:11:46.340000+00:00 no that's not what i mean ## Seve — 2026-06-27T02:11:50.967000+00:00 what is the ACTUAL bundle size ## Seve — 2026-06-27T02:12:03.861000+00:00 this comparison is meaningless without knowing what the ACTUAL bundle size is ## Seve — 2026-06-27T02:12:10.438000+00:00 Monaco otherwise seems like a much better option ## Seve — 2026-06-27T02:12:40.616000+00:00 also the repo name you proposed is already taken ## Seve — 2026-06-27T02:18:30.018000+00:00 i'm not super opinionated on this but Monaco is probably easier because CodeMirror tsx support was difficult ## ! Rushabh | Linux Shill — 2026-06-27T02:20:58.628000+00:00 [attachment] Attachment: image.png — https://community.tscircuit.com/media/1520252573867835523 ## Seve — 2026-06-27T02:21:26.151000+00:00 that isn't meaningful ## Seve — 2026-06-27T02:21:50.407000+00:00 because monaco isn't the right size ## Seve — 2026-06-27T02:21:54.926000+00:00 typescript alone is like 20mb ## Seve — 2026-06-27T02:22:03.795000+00:00 it's fine... i'd rather see the experiment with monaco ## Seve — 2026-06-27T02:22:06.762000+00:00 so just try that ## Seve — 2026-06-27T02:22:13.620000+00:00 tsx with codemirror was not easy to implement ## Seve — 2026-06-27T02:22:19.207000+00:00 it's not worth that struggle again ## ! Rushabh | Linux Shill — 2026-06-27T02:36:30.338000+00:00 ..