News for hackers. Stuff that matters.
Re:TinaCMS: A toolkit for building visual editing into your ... by j-krieger on Thursday March 25, 2021 @11:04AM (#26581139)
I used TinaCMS for pesonal projects. What the Github Page doesn‘t tell you is that it‘s incredibly heavy, and due to it being integrated tightly in your code it‘s shipped in the bundle.js file when using gatsby. There exists an open ticket to solve this issue, but it‘s currently not possible to exclude TinaCMS from your bundle in production mode.
Re:TinaCMS: A toolkit for building visual editing into your ... by runfalk on Thursday March 25, 2021 @12:23PM (#26582188)
Shameless plug: If you want a static site generator with an admin UI I can recommend Lektor (https://www.getlektor.com/). You declare your data model and templates and Lektor serves an editing UI for you. There is a good video introduction by Armin Ronacher (original author) if you prefer to digest video content: https://www.youtube.com/watch?v=lTWTCwuPdrU

Disclaimer: Occasionally I moonlight as a maintainer of Lektor.

Re:TinaCMS: A toolkit for building visual editing into your ... by jpohalloran on Thursday March 25, 2021 @11:59AM (#26581883)
Tina dev here! We have some examples in the works of sites with Tina-specific editing routes (meaning your production pages are bundled without Tina)!
Re:TinaCMS: A toolkit for building visual editing into your ... by lstamour on Thursday March 25, 2021 @12:43PM (#26582444)
A better option might be to split out Tina into its own module of JS and load it on-demand with maybe a lightweight progress bar or loading indicator when triggered/required? Such as when hitting a keystroke or when a cookie or other local editor state is present?
Re:TinaCMS: A toolkit for building visual editing into your ... by jpohalloran on Thursday March 25, 2021 @01:09PM (#26582750)
totally! The team has making strides recently to split up the packages so that only the lightest layer needs to be loaded upfront, and the Tina UI can be loaded dynamically when in edit-mode. I'll loop in some members of the team that might be able to speak more to that.
Re:TinaCMS: A toolkit for building visual editing into your ... by FractalHQ on Thursday March 25, 2021 @04:33PM (#26585022)
Rewrite it in Svelte. It will be trivial, easier to maintain, blazing fast, and light as a feather. I’ll happily help!
Re:TinaCMS: A toolkit for building visual editing into your ... by sgallant on Thursday March 25, 2021 @12:49PM (#26582512)
Co-founder here. As jpohalloran noted, we're working toward fully decoupling Tina from your production site.
Re:TinaCMS: A toolkit for building visual editing into your ... by sevencolors on Thursday March 25, 2021 @02:49PM (#26583894)
I am considering using TinaCMS and noticed this too.

My thought is to use it a separate "preview" branch where it's enabled. After changes are finalized merge the updates into the main branch.

Re:TinaCMS: A toolkit for building visual editing into your ... by iagovar on Thursday March 25, 2021 @11:08AM (#26581195)
I've settled with PicoCMS. Just edit markdown files, your template, and you're good to go.

I didn't find anything as nimble and easy to use. Plus it uses PHP, that when you don't want to spend money is a huge plus.

Re:TinaCMS: A toolkit for building visual editing into your ... by j-krieger on Thursday March 25, 2021 @11:15AM (#26581281)
I use eleventy with preact. This setup also consists of writing markdown files, with the added convenience of a react-like workflow that generates static html. My entire homepage and blog weigh about 20kb. I really like it.
Re:TinaCMS: A toolkit for building visual editing into your ... by iagovar on Thursday March 25, 2021 @11:50AM (#26581769)
I have not much idea of web dev, although I'll probably learn by myself react and node for jumping careers. Preact looks like a tiny lib I could use to train myself, thanks for the reference.
Re:TinaCMS: A toolkit for building visual editing into your ... by Artistry121 on Thursday March 25, 2021 @01:07PM (#26582734)
Can you link your website?