Skip to content

Download component definition for re-use #6

@flip111

Description

@flip111

I realize this product has just been open sourced and a community has not yet formed. Anyway i'm throwing this idea out there because i think it could be interesting.

When exporting to React, Angular or another framework, first some internal representation is created from which the export can occur. Let's call this internal representation Pagedraw Model (PM). The PM could be least common denominator which the frameworks support. Maybe this idea is somewhat similar to https://github.com/andlabs/libui but then for the web.

When the PM can be extracted/downloaded. It can also be uploaded by users for other users to get the component for their framework of choice. Right now there are collections of components for particular frameworks such as for react. But they don't offer a good search function (only textual with browser search function). When there are a lot of components in the collections searching becomes more difficult. The PM could help with this. By having a definition it could be queried like "show me all the models with a single text input and a button". Making such a search would not be easy, but searching for the type of things can be done. Hoogle comes to mind when searching for types (not that i suggest that this can be used 1on1 for a component search).

It's not difficult to imagine a repository or marketplace from here if you will. I hope someone finds this idea useful. I don't have the time, means and resources to work on it at the moment. But i would like to discuss it a bit more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions