LogicStudio.ai is a powerful, visual canvas-based tool designed to help you build, manage, and visualize complex logic flows involving AI agents, data inputs, and outputs. Whether you're designing intricate AI workflows, managing data transformations, or creating interactive systems, LogicStudio.ai provides an intuitive interface to streamline your development process.
-
This readme.md was created using LogicStudio.ai
-
Visual Canvas: Drag-and-drop interface to design your logic flows effortlessly.
-
Dynamic Components: A variety of components (cards) like Agents, Inputs, Outputs, Joins, Texts, Labels, and Views to construct complex workflows.
-
Real-Time Connections: Establish and manage connections between components with ease.
-
Import/Export: Save your canvas configurations as JSON or export your designs as PNG images.
-
Zoom & Pan: Navigate large canvases smoothly with intuitive zooming and panning controls.
-
File Management: Upload, rename, refresh, and remove files directly within InputCards.
-
AI Integration: Configure and trigger AI agents with customizable prompts and models.
-
Editable Views: Interactive views to display JSON or Markdown content with copy-to-clipboard functionality.
-
Export Outputs: Download your outputs in various formats including Markdown, DOCX, PDF, JSON, and TXT.
LogicStudio.ai Demo Site. Explore a live demonstration of LogicStudio.ai showcasing the creation of a simple AI workflow.
- Node.js (v20 or later)
- npm or yarn
-
Clone the Repository
git clone https://github.com/developmentation/logicstudio.ai.git cd logicstudio.ai
-
Install Dependencies
Using npm:
npm install
-
Create an .env file
Create a .env file and modify to get the appropriate API Keys:
cp .env.example .env
-
Start the Development Server
Using npm:
If you don't have
nodemon
installed, run the following to install it for running the backend server: run the following to install it globallynpm install -g nodemon
or as a dev dependency in the project:
npm install --save-dev nodemon
Then run the node.js server:
nodemon index.js
-
Access the Application
Open your browser and navigate to
http://localhost:3000
Upon launching LogicStudio.ai, you'll be presented with a blank canvas. The top toolbar provides options to manage your canvases, import/export configurations, and control the zoom level.
-
Open the Canvas Toolbar
On the left side of the canvas, find the toolbar with various component options.
-
Select a Component
Click on the desired component (e.g., Agent, Input, Output) to add it to the canvas.
-
Position the Component
Drag the newly added component to your preferred location on the canvas.
-
Initiate Connection
Click and drag from an output socket (right side) of one component to an input socket (left side) of another.
-
Establish the Connection
Release the drag on the target input socket to create a connection represented by a line.
-
Manage Connections
Click on a connection line to select or delete it using the
Delete
orBackspace
keys.
Each component has customizable properties:
-
AgentCard:
- Select AI models.
- Configure system and user prompts.
- Trigger AI processing and monitor status.
-
InputCard:
- Upload files via drag-and-drop or file selection.
- Rename, refresh, or remove uploaded files.
-
OutputCard:
- Choose output formats (Markdown, DOCX, PDF, JSON, TXT).
- Download individual outputs or all exports as a ZIP archive.
-
JoinCard:
- Combine multiple inputs with a specified separator.
-
TextCard:
- Edit text with support for breakpoints and segments.
-
LabelCard:
- Add and edit titles and subtitles for annotative purposes.
-
ViewCard:
- Display content as JSON or Markdown.
- Copy content directly to the clipboard.
-
Add Canvas: Click the
+
button on the top toolbar to create a new canvas. -
Switch Canvases: Use the left and right arrows beside the canvas name to navigate between canvases.
-
Close Canvas: Click the close (
×
) button to remove the current canvas.
-
Export to PNG: Capture your canvas as a PNG image by clicking the export button.
-
Export to JSON: Save your entire canvas configuration as a JSON file for later use or sharing.
-
Import from JSON: Load a previously exported JSON configuration to restore your canvas layout and components.
The core component that manages the entire canvas environment, including canvases, cards, connections, zooming, and panning.
A sidebar providing tools to add new components, export configurations, and toggle display options.
Represents an AI agent within the canvas. Allows selecting AI models, setting prompts, and triggering AI processes.
Handles file uploads. Supports drag-and-drop and manual file selection, with functionalities to rename, refresh, and remove files.
Manages the outputs from the workflow. Users can specify output formats and download results individually or collectively as a ZIP file.
Facilitates the merging of multiple inputs using a defined separator, enabling combined data flows.
Provides an editable text interface where users can define and manage text segments with associated sockets for connections.
Allows users to add annotations with titles and subtitles for better organization and clarity within the canvas.
Displays content in either JSON or Markdown formats. Features editable views and copy-to-clipboard functionality for easy content management.
- Vue.js: Frontend framework for building interactive user interfaces.
- Composition API: Provides a more flexible and scalable way to manage component logic.
- JSZip: Enables ZIP file creation for exporting multiple outputs.
- docx: Facilitates DOCX file generation from content.
- jsPDF: Allows PDF generation and customization.
- Markdown-it: Converts Markdown content to HTML for rendering purposes.
- WebSockets: Manages real-time communication for AI agent interactions.
- Tailwind CSS: Utilized for styling components with utility-first CSS classes.
We welcome contributions to enhance LogicStudio.ai! Whether it's reporting bugs, suggesting features, or submitting pull requests, your participation helps improve the project.
-
Fork the Repository
Click the "Fork" button on the repository page to create your own copy.
-
Create a Feature Branch
git checkout -b feature/YourFeatureName
-
Commit Your Changes
git commit -m "Add your message here"
-
Push to the Branch
git push origin feature/YourFeatureName
-
Open a Pull Request
Navigate to your forked repository and click "New Pull Request" to propose your changes.
Please ensure your code adheres to the project's coding standards and passes all tests before submitting a pull request.
This project is licensed under the MIT License.
Note: For any issues, feature requests, or questions, please open an issue in the LogicStudio.ai GitHub repository.