A userscript to enhance Margoedi with additional functionality for image generation, sampling, and Eagle integration.
Note: The name "Margoedi" is used throughout the codebase as a simple obfuscation for "Ideogram" (spelled backwards) to reduce the chance of this repository being found through keyword searches.
- Image Generation: Generate images using random prompts from a loaded prompt file
- Auto Generation: Automatically generate images at set intervals
- Eagle Integration: Seamlessly import generated images into Eagle
- Image Fetching: Fetch your generated images and top images from Margoedi
- Image Description: Get AI descriptions for your images
- Bulk Deletion: Delete all uploaded images at once
- Install a userscript manager extension like Tampermonkey
- Create a new userscript and paste the content of
margoedi.user.js - Update the
REPO_URLvariable in the script to point to your forked repository - Save and activate the script
The loader script will automatically download all the required modules from GitHub and run them in the correct order.
If you prefer a single file solution:
- Install a userscript manager extension like Tampermonkey
- Run
node build.jsto generate the combined script - Create a new userscript and paste the content of the generated
margoedi.user.js - Save and activate the script
If you want to modify the code and create your own version:
- Fork this repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/margoedi-tools.git - Navigate to the project:
cd margoedi-tools - Make your changes to the files in the
srcdirectory - Commit and push your changes
- Update the
REPO_URLinmargoedi.user.jsto point to your repository
- Navigate to Margoedi and you should see the control panel
- Click "Set Token" to set your Margoedi API token
- Use "Select Prompt File" to load a text file with prompts (one per line)
- Use the buttons to trigger various actions:
- "Run Image Generation": Generate a single image with a random prompt
- "Start Auto Generation": Begin generating images automatically at intervals
- "Fetch Images & Submit to Eagle": Import your generated images to Eagle
- "Fetch Top Images": Import top images from Margoedi based on timeline
- "Handle Image Description": Get AI descriptions for local images
- "Delete All Uploads": Remove all your uploaded images from Margoedi
The script has several configurable options at the top of the eagle.js and api.js files:
- EAGLE_SERVER_URL: URL for your Eagle server
- EAGLE_IMPORT_API_PATH_URL: API path for importing to Eagle
- DEFAULT_EAGLE_FOLDER_ID: Default Eagle folder ID to use
- STYLE_EXPERT: Default style to use for image generation
MIT License - See LICENSE file for details