PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 9:09 PM

toddle.dev objects... (Editor only?)

  • mdxwired

    1 month ago

    Hi all.
    Scenario: I would like to use generative AI (specifically Claude 3.5 Sonnet) to quickly lay out my pages based on some highly specific instructions and visual queues from Figma.
    Question: Do the toddle objects (the underlying structures if you cut from the toddle.dev editor and paste into a notepad) have to be created first in the editor in order to 'claim' a unique 'source' identifier? ...or is there a way that I can allow Claude to create new ones outside of toddle and then paste in successfully?
    I have already done the 'build in toddle, cut and paste into Claude, have Claude refine, and cut and paste back into toddle' successfully, but obviously those identifiers already existed.
    Thoughts?
  • Chris Laupama

    1 month ago

    You can name them whatever you want, I have my new ui generator creating them for me.
  • Just ensure that every single one of them is unique
  • mdxwired

    1 month ago

    Thanks! Is there any full documentation on the toddle object structure? ...or do I just need to extract it one element at a time?
  • mdxwired

    1 month ago

    @Chris Laupama Perhaps I am asking the wrong question the wrong way... I know that the structure is based upon the standard Virtual DOM schema... but there seem to be a lot of deviations designed to work best for the editor and low/no-code system. How were you able to instruct your AI-driven UI generator to make sure that it is using all of the correct structures? ...or is that too big of an ask? If so, I would certainly understand.
  • Tod

    1 month ago

    Great energy @mdxwired! Your continuous contribution to the toddle Community just made you advance to Community Level 6!
  • Chris Laupama

    1 month ago

    There’s no documentation, yeah it’s just a node tree.

    Truth is that everything you need is available via copy paste. Design something, copy it and feed it to your AI so it understands the structure.
  • mdxwired

    1 month ago

    Yeah, that's what I have been dong thus far... but it is still getting the structures wrong whenever it sees anything 'new.' It also does not have any understanding of the standard events and so on.... OK. Just gotta grab as many examples as possible!
  • Lucas G

    1 month ago

    Should we just make the doc I shared with you public @Chris Laupama ?
  • Lucas G

    1 month ago

    I've already gone through and added almost every toddle formula in a doc I used to create an AI assistant a while back
  • Don't use it anymore as I found it was faster to build it myself once I got used to the formulas
  • But perhaps that doc could be a useful community resource 🤔
  • At least part of it
  • Chris Laupama

    1 month ago

    Yeah I believe there’s no reason in not sharing it?

    But I feel like @mdxwired was talking about UI elements?
  • Lucas G

    1 month ago

    I thought both, but yeah, either way
  • It could be the first community doc lol
  • We just need to add more UI JSON to it
  • mdxwired

    1 month ago

    Thanks @Lucas G and @Chris Laupama ! I am currently hard at work just extracting the JSON UI elements one at a time and in relevant nested combinations. Slow and steady!
  • Lucas G

    1 month ago

    We should combine it
    👍1
  • Chris Laupama

    1 month ago

    @Lucas G - @Mark Green just dm'd me about the UI gen prompt too, so we could collab on something. I actually have a super basic documentation template in toddle that connects to a github repo and follows the folder structure and utilises markdown .md files for content - so using github as a headless CMS - we could use that?

    @mdxwired there's not much need to go through each element individually, you just need to provide it with example outputs, given it's just a flat node tree the LLM's are smart enough to fill in the lines, just make a simple UI giving an example and it's smart to fill in the rest.

    But, I think a community project on utilising AI for generation is great!

    I am wanting to completely rebuild my ui generator from scratch with the new prompt I'm using, but also implement tailwind conversion etc too.
    👍2
  • Lucas G

    1 month ago

    Meanwhile Andreas already built all of this in the AI built into the editor 😂
    😂1
  • But yes, it would likely be helpful to have all of it documented publicly
  • Chris Laupama

    1 month ago

    and @Andreas Møller would've done it in like 1 hour too lol
  • Lucas G

    1 month ago

    He already has a Tailwind parser
  • At least most of one
  • He said he was finishing it up a while ago
  • Andreas Møller

    1 month ago

    We will release the types etc for toddle soon as part of the process of making it open source.
  • That should help
  • Lucas G

    1 month ago

    Figured that would come
  • mdxwired

    1 month ago

    Glad this sparked so much interest. As a UX guy of 30+ years, I am looking forward to having a simple AI tool that can reliably look at an image exported from Figma and design a completely toddle-compliant matching page or component. It will hopefully save me countless hours if I get it right. VERY glad to turn it into a community project.
    👍1
  • Chris Laupama

    1 month ago

    Why AI? Why not just build a Figma plugin?
  • mdxwired

    1 month ago

    Sadly, it's because I lack the programming skills. I used to be a coder but have spent the past two decades focused on IA/UX/UCD and thus my coding skills are so out of date that I no longer have the time required for the learning curve to bring them up to date. Hence my interest in toddle.
  • Andreas Møller

    1 month ago

    We are planning to add a figma plugin. We are looking for a freelancer who can help.
    👍1
  • mdxwired

    1 month ago

    Well, I just had Claude 3.5 Sonnet (new) take a beginning whack at it (the plugin)... I'll let you know how the process goes.
  • mdxwired

    1 month ago

    Obviously, it is not going to be 'production ready' or anything as it will lack the data dictionaries and so on to ensure perfect 1:1 export, but I figured, "While I'm at it..."

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.