https://github.com/Oneirocom/Magick
Magick is a cutting-edge toolkit for a new kind of AI builder. Make Magick with us!
https://github.com/Oneirocom/Magick
agent agi ai blueprints-visual-scripting embeddings fine-tuning gemini gpt-3 gpt-3-prompts gpt-4o langchain large-language-models no-code node-editor pgvector prompt-engineering text-generation typescript virtual-assistant visual-scripting
Last synced: 28 days ago
JSON representation
Magick is a cutting-edge toolkit for a new kind of AI builder. Make Magick with us!
- Host: GitHub
- URL: https://github.com/Oneirocom/Magick
- Owner: Oneirocom
- License: other
- Created: 2022-11-24T00:52:46.000Z (over 2 years ago)
- Default Branch: development
- Last Pushed: 2025-03-18T22:00:05.000Z (about 2 months ago)
- Last Synced: 2025-04-06T17:06:36.600Z (30 days ago)
- Topics: agent, agi, ai, blueprints-visual-scripting, embeddings, fine-tuning, gemini, gpt-3, gpt-3-prompts, gpt-4o, langchain, large-language-models, no-code, node-editor, pgvector, prompt-engineering, text-generation, typescript, virtual-assistant, visual-scripting
- Language: TypeScript
- Homepage: https://magickml.com
- Size: 230 MB
- Stars: 787
- Watchers: 27
- Forks: 127
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
WARNING! This repository is undergoing a massive upgrade. Our readme is outdated and our local deploy process is being migrated. Check back soon for the new and improved Magick!
Magick is a groundbreaking visual AIDE (Artificial Intelligence Development Environment) for no-code data pipelines and multimodal agents. Magick can connect to other services and comes with nodes and templates well-suited for intelligent agents, chatbots, complex reasoning systems and realistic characters.
## ๐ Key Features
- Realtime agents which can perform actions on their own, interact with users and other agents in different modalities with a unified memory and self
- Social connectors to Discord, Twitter and Twilio -- Zoom, Google Meet, Reddit, Slack connectors will be available soon as plugins!
- Search Google, Wikipedia and the Semantic Web
- Many included powertools, including voice and image generation and vector search
- Powerful graph-based IDE for complex data pipelines
- Graphs can be embedded in subgraphs and shared for rapid community development.## ๐ฎ Magick: Automate, Build, and Bring Your Ideas to Life with AI.
With Magick, you can unleash the power of AI without needing to know how to code everytbing in a command line interface. Using our visual node based environment, you can connect to popular services and explore a world of pre-built nodes and connectors to bring your vision to life.
![]()
โถ๏ธ Click the image above to watch the video## Core Concepts
### Spells
A spell is a pipeline that describes data moving from one place to another, running through different processes we call "nodes", via wires we call "connections". In Magick, the collection of data, nodes, variables, and presets for each graph is known as a "spell".
Spell is not a machine learning term.We just like it. Spells can be imported and exported at any time. Spells in their raw form are JSON, a standard format that is easy to share.
### Nodes
**At the core, Magick is a system for taking in data, doing stuff to it, and then sending the final data out.**
This "stuff" is called a "transformation", the data transforms from one thing into the next. The "stuff" that is happening to the data is a black box that takes something in, anything, and returns something out.
We call the black box where the transformstion takes place a "node". Nodes are the building blocks of Magick.
### Creating Nodes
Nodes are created in the composer window of the "Spells" tab. You can right-click in the composer and add nodes from the context menu. You can also drag and drop nodes from the "Nodes" tab into the composer. Nodes can be dragged and dropped around the composer to re-arrange them.
Nodes can be deleted by right-clicking on them and selecting "Delete".
### Node Types
- Input Node
- Prompt Template
- Code Node: Lets you define both inputs and outputs.
- Generator Node: Lets you define your own input sockets and then work with that data inside of the node.
- Wait For All Node: Used to wait for different execution branches to complete before joining back into a single branch -- this is a good way to do several slow tasks at once.
- ...and lots more! (if you have suggestions for any, do let us know)### Inputs and Outputs
All nodes have some inputs and/or outputs, although they don't necessarily have to have both. Inputs and outputs are visually displayed as sockets. The color of the socket determines the type of data it can receive, with "gray" being the default untyped or "any" type.
### Sockets
Data passed into sockets is available to the node. It can process that data, do something to it, and return the result to the output socket. Some nodes (like Generator node) let you define your own input sockets and then work with that data inside of the node. Some nodes (like the Code node) let you define both inputs and outputs.
### Triggers
Triggers tell nodes to start asynchronous tasks. Some nodes can process data without needing a trigger, but most nodes need triggers. Triggers can be emitted from one socket out to more than one input, however the order of execution is not guaranteed. You can use the "Wait For All" node to wait for different execution branches to complete before joining back into a single branch -- this is a good way to do several slow tasks at once
# โ๏ธ Installation
## ๐ [Documentation / Guide](https://magick-docs.vercel.app/)
### Prerequisites
Before you start, ensure you have the following software installed on your machine:
- **git**: Version control system, required for cloning the repository.
- [Download git](https://git-scm.com/downloads)
- **node.js 18+**: JavaScript runtime, needed for running the application.
- [Download Node.js](https://nodejs.org/en/download/)
- **Docker**: Enables you to run the project within containers for easier setup and distribution.
- [Download Docker Desktop](https://www.docker.com/products/docker-desktop)Follow the respective installation guides to set up each piece of software.
- Install **pipx**: A tool for installing and running Python applications in isolated environments.
On Unix and macOS: Open a terminal and run the following command:
```bash
python3 -m pip install --user pipx
python3 -m pipx ensurepath
```On Windows: Open a command prompt and execute:
```bash
py -m pip install --user pipx
py -m pipx ensurepath
```Install Poetry (Manages python packages)
```bash
pipx install poetry
```Verify Installation
```bash
pipx --version
```Once installed, proceed to set up Magick.
## Setup
Clone and set up Magick
```bash
git clone https://github.com/Oneirocom/Magick
cd Magick
npm install
poetry install --no-root
npm run dev
```## Run Magick!
```bash
npm run dev
```Note: Installation is automatic. Most Node projects require `npm install` - With Magick, dependencies will automatically be installed for you. Linux users may need to enter sudo password to install some dependencies.
#### Build
Build will take some time initially. When everything is ready, the client will be ready at [localhost:4200](http://localhost:4200/home)
_Please be aware Magick is under heavy development which may cause breaking changes._
## Database
Magick installs postgres by default. If you want to use a different database, you can change the database connection in the [`.env` file](.env)
## Webhooks
Some connectors (like Github) require webhooks. In development, Magick uses [ngrok](https://ngrok.com/) to create a tunnel to your local machine. You will need to create an account and add your auth token to the [`.env` file](.env)
### Deploy your own Postgres database
To deploy your own database, we suggest using Supabase or another Postgres database. The current setup for events and documents requires the [`pgvector`](https://supabase.com/docs/guides/database/extensions/pgvector) extension to be enabled.
The following documents should help you with setup:
- [Connecting to Postgres](https://supabase.com/docs/guides/database/connecting-to-postgres)
- [OpenAI Embeddings- Postgres Vector](https://supabase.com/blog/openai-embeddings-postgres-vector)### Initialize a new database
Magick uses [Feathers 5](https://feathersjs.com/) for backend, which in turn uses [Knex](https://knexjs.org/) for making database queries. We will offer a better database configuration experience in the future. For now, you will need to manually configure the database connection in the [`.env` file](.env) and then run the migration script.
```
cd apps/server
npm run migrate
```## Self signed certificates
Developing locally, it can be very helpful to have google chrome accept all self signed cetificates coming from localhost. To do this, simply paste the following snippet into chromes URL bar and enable the feature:
`chrome://flags/#allow-insecure-localhost`
## Contributors
[](#contributors-)
Michael
๐ป ๐ฆ ๐ผ
Mฬตอฬ ฬฬฬฬฬฬผOฬดฬฬฬฬฬฬฬปOฬทฬอฬผNฬธฬฟอฬฉ ฬถอฬฬ ฬนฬผฬฉ
๐ป ๐ฆ
alextitonis
๐ป
Daniel Adams
๐ป
Anthony Burchell
๐ป ๐
jin
๐
Shivaditya Shivganesh
๐ป
khalildh
๐ป
Pigloo
๐ป
avirtualfuture
๐ป ๐
Alexandre Ferreira
๐ป
Matei Anghel
๐ป
Trentalantar
๐
Lisa Mega Watts
๐
r2
๐
IRANKUNDA Fabrice
๐ป
Kien Nguyen
๐ป
Ben Moore
๐ป
Q
๐ป
thomageanderson
๐ป
Pietro
๐ป
codingsh
๐ป
Ben Botwin
๐ป ๐ฆ
K. S. Ernest (iFire) Lee
๐ป
coffeeorgreentea
๐ป ๐ ๐ผ
Knar
๐ป
Emmy NSABIMANA
๐ป
## Based on Thoth by Latitude Games
The original source code was made by the following contributors to Thoth, which is archived [here](http://github.com/latitudegames/thoth)
Jakob
๐ป
Sean Gillespie
๐ป
Michael
๐ป
Preston Gull
๐ป๐จ
Nick Walton
๐ป
Mitchell Gordon
๐ป
?/janus
๐ป
Alan Walton
๐ป
# Come Build With Us!
We are building Magick as a community in the open on Discord. If you are interested in contributing to the project, we'd love to have you.
Join us here: https://bit.ly/magickdiscordgh