{"id":27773562,"url":"https://github.com/sacconazzo/sora-image-generator","last_synced_at":"2026-05-05T12:31:19.897Z","repository":{"id":290242384,"uuid":"972531069","full_name":"sacconazzo/sora-image-generator","owner":"sacconazzo","description":"Use Puppeteer to interact with the sora.com and generate images","archived":false,"fork":false,"pushed_at":"2025-12-13T12:31:07.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T00:51:33.371Z","etag":null,"topics":["ai","bot","openai","puppeteer","sora"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sacconazzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-25T08:23:21.000Z","updated_at":"2025-12-13T12:31:10.000Z","dependencies_parsed_at":"2025-04-27T19:36:16.105Z","dependency_job_id":"117ba36a-4f76-43fb-ba91-98f4de17f9fc","html_url":"https://github.com/sacconazzo/sora-image-generator","commit_stats":null,"previous_names":["sacconazzo/sora-image-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sacconazzo/sora-image-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fsora-image-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fsora-image-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fsora-image-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fsora-image-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sacconazzo","download_url":"https://codeload.github.com/sacconazzo/sora-image-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fsora-image-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bot","openai","puppeteer","sora"],"created_at":"2025-04-30T01:10:20.601Z","updated_at":"2026-05-05T12:31:19.890Z","avatar_url":"https://github.com/sacconazzo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sora Image Generator\n\n## Description\n\nThis script uses **Puppeteer** to interact with the [sora.com](https://sora.com) website. It automates the process of entering prompts and generating images. The script requires **Chromium** to run.\n\n## Requirements\n\n1. **Chromium** installed on your system.\n2. You must be logged into the [sora.com](https://sora.com) website.\n3. Navigate to the **My Media** page and select a generated image (URL such as: https://sora.chatgpt.com/t/task_01jsw4zeykft8b36de9d73vfag).\n\n## Setup\n\n### Start Chromium with Remote Debugging\n\nRun the following command to start Chromium with remote debugging enabled:\n\n```bash\nchromium-browser \\\n  --remote-debugging-port=9222 \\\n  --user-data-dir=/tmp/rpi-puppeteer-profile \\\n  --no-first-run \\\n  --no-default-browser-check \\\n  --disable-features=TranslateUI \\\n  --no-sandbox \\\n  --disable-dev-shm-usage \\\n  --disable-gpu\n```\n\n### Install Dependencies\n\nEnsure **Node.js** is installed, then run:\n\n```bash\nyarn install\n```\n\n## Usage\n\n1. Start Chromium with the command above.\n2. Log in to [sora.com](https://sora.com) and navigate to the **My Media** page.\n3. Open a generated image.\n4. Run the script with:\n\n```bash\nyarn start\n```\n\nThe application will start both the generator script and a web server on port **6699**.\n\n### Web Interface\n\nAccess the web interface at `http://localhost:6699` to manage your playbook configuration and control the generator:\n\n**Features:**\n\n- **🚀 Generator Control**: Start and stop the image generation process with real-time status monitoring\n- **📋 Live Logs**: View generation logs in real-time with automatic updates via Server-Sent Events (SSE)\n- **📝 Prompt Management**: Add, edit, enable/disable, and remove prompts dynamically\n- **🔧 Variable Management**: Configure variables with multiple values for prompt randomization\n- **⚙️ Parameters**: Adjust wait times (min/max) between generation cycles\n- **💾 Playbook Management**: Load and save your configuration to `playbook.json`\n- **📚 Multiple Playbooks**: Save, load, and manage multiple playbook configurations in the `playbooks/` folder\n\nThe web interface provides a user-friendly way to manage your automation without editing JSON files manually. All changes are validated before being saved to ensure configuration integrity.\n\n## Notes\n\n- Prompts and variables used by the script are configured in the `playbook.json` file.\n- Ensure the `playbook.json` file is correctly set up before running the script.\n- Logs of operations are saved in the `logs.log` file.\n\n## API Endpoints\n\nThe application exposes the following REST API endpoints:\n\n- `GET /api/playbook` - Retrieve current playbook configuration\n- `POST /api/playbook` - Update playbook configuration (with validation)\n- `GET /api/playbooks` - List all saved playbooks\n- `GET /api/playbooks/:name` - Load a specific playbook\n- `POST /api/playbooks/:name` - Save a playbook with custom name\n- `DELETE /api/playbooks/:name` - Delete a playbook\n- `GET /api/generator/status` - Check if generator is running\n- `POST /api/generator/start` - Start the generator\n- `POST /api/generator/stop` - Stop the generator\n- `GET /api/logs` - Get recent logs\n- `GET /api/logs/stream` - Real-time log stream (SSE)\n\n## Dependencies\n\n- [puppeteer-core](https://www.npmjs.com/package/puppeteer-core)\n- [express](https://www.npmjs.com/package/express)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacconazzo%2Fsora-image-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsacconazzo%2Fsora-image-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacconazzo%2Fsora-image-generator/lists"}