1.0.4 • Published 5 months ago

auto-component v1.0.4

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
5 months ago

auto-component

npm version

github repo

official website

A tool to streamline UI element creation in React projects through AI prompted generation

Technologies Used

CategoryTechnologies
FrontendReact - JavaScript
BackendMongoose - Express - Node.js
DependenciesBabel - JSXParser - js-beautify

Dependency Uses

Babel - Transpile JSX to JS for publishing JSXParser - Dynamically render generated code js-beautify - Format JSX/HTML for UI display

Installation

Install auto-component as a development dependency within your project:

npm install -D auto-component

Usage

  1. Import AutoComponent in the file where you're building the new component:
import AutoComponent from 'auto-component';
  1. Add the component to your code where you want it to be rendered:
<AutoComponent />

Getting Started

  1. View your page to see the auto-component tool at the bottom, indicating where it will render your code:
  1. Start building by telling auto-component what you want and clicking "Generate." The result will be rendered on the page. You can view the "Request" or "Response" tabs to inspect what is being sent to the AI and what was returned:

Making Changes

  1. Ask auto-component to make changes to the code it provided, and see the changes rendered on the page:

Copying Your Code

  1. When satisfied with the response, click on the "Response" tab underneath the input. Copy the code from the AI to use it in your codebase:

Start a New Session

  1. Click the red X button to start a new session.

Planned Features

User Features

  1. Personal Page:

    • Allow users to create a personal page to store and manage their created components.
    • Efficiently reuse and keep track of components.
  2. Save and Manage Code:

    • Provide a "Save" button to store the returned code from the AI.
    • Users can easily manage their components within their user page.
  3. Position Customization:

    • Allow users to shift the position of the request/code box around the screen.
    • Ensure it doesn't obscure anything in their project.

Developer Features

  1. Code Integration Walkthrough:

    • Include an optional walkthrough of code integration.
    • Help developers understand how to implement generated components into their projects.
  2. Code Editing in the Browser:

    • Enable developers to edit displayed code directly in the browser.
    • Allow quick adjustments without leaving the platform.
  3. Access Saved Components:

    • Provide developers with the ability to access their saved components directly from the AutoComponent component.
  4. Multiple AutoComponent Instances:

    • Notify developers if there is more than one <AutoComponent /> creation component added to the project.
    • Prevent potential functionality issues that may arise from multiple instances.
  5. Multiple Components with Single Request Box:

    • Allow developers to add multiple components to the page.
    • Provide an easy way to switch between them using a single request box.

License

This project is licensed under the AGPL 3.0 License - see the LICENSE file for details. View license at GNU.org

1.0.2

5 months ago

1.0.1

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.0

5 months ago

0.1.2

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.1

5 months ago

0.0.40

5 months ago

0.0.41

5 months ago

0.0.42

5 months ago

0.0.43

5 months ago

0.0.44

5 months ago

0.0.37

5 months ago

0.0.38

5 months ago

0.0.39

5 months ago

0.1.0

5 months ago

0.0.36

5 months ago

0.0.35

5 months ago

0.0.34

5 months ago

0.0.33

5 months ago

0.0.32

5 months ago

0.0.31

5 months ago

0.0.30

5 months ago

0.0.29

5 months ago

0.0.28

5 months ago

0.0.27

5 months ago

0.0.26

5 months ago

0.0.25

5 months ago

0.0.24

5 months ago

0.0.23

5 months ago

0.0.22

5 months ago

0.0.21

5 months ago

0.0.20

5 months ago

0.0.19

5 months ago

0.0.18

5 months ago

0.0.17

5 months ago

0.0.16

5 months ago

0.0.15

5 months ago

0.0.14

5 months ago

0.0.13

5 months ago

0.0.12

5 months ago

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago