← Back to community index
# support·Active

Rishabh - We don't have the editor as a separat...

We don't have the editor as a separate package, we use CodeMirror for our playground. You can use that

Started by RishabhJun 25, 202635 messages

Discussion

Last active 17 days ago · plain text
Rishabhoriginal post
We don't have the editor as a separate package, we use `CodeMirror` for our playground. You can use that
Rishabh
<@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
https://github.com/tscircuit/tscircuit-code-editor We have a code editor separated, but it needs work and needs to be integrated
Mustafa7
Arnav was working on it
Rishabh
yeah, I know. It will help us to cleanup the tscircuit.com.
! Rushabh | Linux Shill
what work is needed to integrate it??
Mustafa7
Not sure how much of it is implemented. Let's see what seve has to see
! Rushabh | Linux Shill
<@757706909351411845>
Seve
i have no idea it should probably be scrapped
Seve
i don't think there was any meaningful progress made
Seve
you can create a new repo using tscircuit/create-repo
! Rushabh | Linux Shill
what should the new CodeEditor package include at minimum?
Seve
i would use your best judgement haha
Seve
but ideally it is lightweight, fast, has autocomplete for typescript, type checking, and can load tscircuit's types
Seve
it doesn't need to run tscircuit code however
! Rushabh | Linux Shill
Shared an attachment
Seve
the actual bundle size matters
! Rushabh | Linux Shill
then code mirror is better.
! Rushabh | Linux Shill
Arnav's attempt used Monaco
! Rushabh | Linux Shill
https://github.com/tscircuit/create-repo/pull/1
Seve
no that's not what i mean
Seve
what is the ACTUAL bundle size
Seve
this comparison is meaningless without knowing what the ACTUAL bundle size is
Seve
Monaco otherwise seems like a much better option
Seve
also the repo name you proposed is already taken
Seve
i'm not super opinionated on this but Monaco is probably easier because CodeMirror tsx support was difficult
! Rushabh | Linux Shill
Shared an attachment
Seve
that isn't meaningful
Seve
because monaco isn't the right size
Seve
typescript alone is like 20mb
Seve
it's fine... i'd rather see the experiment with monaco
Seve
so just try that
Seve
tsx with codemirror was not easy to implement
Seve
it's not worth that struggle again
! Rushabh | Linux Shill
..

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗