{"id":49421858,"url":"https://github.com/isekai-sh/isekai-core","last_synced_at":"2026-04-29T06:41:17.163Z","repository":{"id":329835891,"uuid":"1120181948","full_name":"isekai-sh/isekai-core","owner":"isekai-sh","description":"Open source DeviantArt posting management platform with scheduling, draft management, ComfyUI integration, and publishing automation.","archived":false,"fork":false,"pushed_at":"2026-02-02T16:20:36.000Z","size":3481,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-03T05:35:21.068Z","etag":null,"topics":["art-automation","automation","automation-tools","deviantart","deviantart-api","deviantart-publishing","deviantart-scheduling","open-source","scheduling","self-hosted","workflow-automation"],"latest_commit_sha":null,"homepage":"https://isekai.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isekai-sh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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-12-20T16:54:14.000Z","updated_at":"2026-02-02T16:20:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/isekai-sh/isekai-core","commit_stats":null,"previous_names":["isekai-sh/isekai-core"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/isekai-sh/isekai-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isekai-sh%2Fisekai-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isekai-sh%2Fisekai-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isekai-sh%2Fisekai-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isekai-sh%2Fisekai-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isekai-sh","download_url":"https://codeload.github.com/isekai-sh/isekai-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isekai-sh%2Fisekai-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32414422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["art-automation","automation","automation-tools","deviantart","deviantart-api","deviantart-publishing","deviantart-scheduling","open-source","scheduling","self-hosted","workflow-automation"],"created_at":"2026-04-29T06:41:12.438Z","updated_at":"2026-04-29T06:41:17.154Z","avatar_url":"https://github.com/isekai-sh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Isekai Core\n\n[![CI](https://github.com/isekai-sh/isekai-core/actions/workflows/ci.yml/badge.svg)](https://github.com/isekai-sh/isekai-core/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/isekai-sh/isekai-core/graph/badge.svg)](https://codecov.io/gh/isekai-sh/isekai-core)\n[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n[![Node](https://img.shields.io/badge/node-20.x-green.svg)](https://nodejs.org)\n[![pnpm](https://img.shields.io/badge/pnpm-9.x-orange.svg)](https://pnpm.io)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue.svg)](https://www.typescriptlang.org/)\n\n\u003e Open source DeviantArt posting management platform with scheduling, draft management, ComfyUI integration, and robust publishing automation.\n\n![Isekai](/screenshots/isekai-browse.png)\n\nIsekai is a modern web application that helps artists manage their DeviantArt posting workflow with features like scheduled publishing, draft organization, and AI image generation integration through ComfyUI.\n\n---\n\n## 📚 Documentation\n\n**For comprehensive documentation, see [`.context/substrate.md`](.context/substrate.md)**\n\nThe `.context/` directory contains complete documentation following the [Substrate Methodology](https://github.com/andrefigueira/.context):\n\n- **[Architecture](.context/architecture/overview.md)** - System design and patterns\n- **[API Reference](.context/api/endpoints.md)** - All 19 route groups documented\n- **[Database Schema](.context/database/schema.md)** - Complete Prisma schema\n- **[Features](.context/features/)** - Automation, publishing, browse, sales\n- **[Development](.context/workflows.md)** - Setup, testing, and contribution workflow\n- **[Code Style](.context/ai-rules.md)** - Conventions and patterns\n\nAI tools: See [CLAUDE.md](CLAUDE.md) for entry point.\n\n---\n\n## Features\n\n- **DeviantArt Integration**: OAuth authentication and seamless posting\n- **Scheduled Publishing**: Plan and automate your DeviantArt posts\n- **Draft Management**: Organize and edit your artwork before publishing\n- **ComfyUI Integration**: Generate and manage AI artwork -- check out [Isekai Comfy Node](https://github.com/isekai-sh/isekai-comfy-node)\n- **Cloud Storage**: Cloudflare R2 for reliable file storage\n\n## Tech Stack\n\n### Frontend (React App)\n\n- **Framework**: React 18 with TypeScript\n- **Build Tool**: Vite 6\n- **Styling**: Tailwind CSS 3\n- **Routing**: React Router\n- **State Management**: React Query (TanStack Query)\n\n### Backend (API)\n\n- **Runtime**: Node.js 20+\n- **Framework**: Express.js\n- **Language**: TypeScript\n- **Database**: PostgreSQL 16 with Prisma ORM\n- **Cache/Sessions**: Redis 7\n- **Authentication**: OAuth 2.0 (DeviantArt)\n- **Storage**: Cloudflare R2 (S3-compatible)\n- **Job Queue**: BullMQ\n\n### Publisher Worker (Microservice)\n\n- **Runtime**: Node.js 20+\n- **Architecture**: Dedicated background job processor\n- **Queue**: BullMQ with Redis\n- **Features**: Fault isolation, independent scaling, graceful shutdown\n- **Monitoring**: Health check endpoints (/health, /ready, /metrics)\n\n### Prerequisites\n\n- Node.js 20+\n- pnpm 9+\n- Docker \u0026 Docker Compose\n- PostgreSQL 16 (or use Docker)\n- Redis 7 (or use Docker)\n- Prisma CLI (installed via pnpm)\n- DeviantArt Application -- register your own app at https://www.deviantart.com/developers/apps\n- Cloudflare R2 credentials, free tier is enough for testing\n\n## Quick Start\n\n### Running Docker with pre-built image\n\n```bash\n# Clone the repository\ngit clone https://github.com/isekai-sh/isekai-core.git\ncd isekai-core\n\n# Copy and edit your environment variables\ncp .env.example .env\n\n# Start the Docker container\ndocker compose up --build\n```\n\nThe application will be available at:\n\n- Frontend (React): http://localhost:3000\n- Backend (API): http://localhost:4000\n- Publisher (Health): http://localhost:8000\n\n### Building Docker image locally\n\n```bash\n# Development: build locally and run\ndocker-compose -f docker-compose.local.yml up --build\n```\n\n## Project Structure\n\n```\nisekai/\n├── apps/\n│   ├── isekai-backend/     # Express backend API (port 4000)\n│   ├── isekai-frontend/    # React frontend application (port 3000)\n│   └── isekai-publisher/   # DeviantArt publishing worker (microservice)\n├── packages/\n│   └── shared/             # Shared types and database schema\n├── docker-compose.yml      # Local development services\n└── pnpm-workspace.yaml     # Monorepo configuration\n```\n\n## Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Start database and Redis with Docker\ndocker-compose up -d postgres redis\n\n# Set up individual environment variables\ncp apps/isekai-backend/.env.example apps/isekai-backend/.env\ncp apps/isekai-frontend/.env.example apps/isekai-frontend/.env\ncp apps/isekai-publisher/.env.example apps/isekai-publisher/.env\ncp packages/shared/.env.example packages/shared/.env\n\n# Run database migrations\npnpm db:migrate\n\n# Start development servers\npnpm dev\n```\n\n### Available Scripts\n\n```bash\n# Development\npnpm dev              # Start all apps in parallel\npnpm dev:frontend     # Start frontend only\npnpm dev:backend      # Start backend only\npnpm dev:publisher    # Start publisher worker only\npnpm dev:services     # Start API + Publisher together\n\n# Building\npnpm build            # Build all apps\npnpm build:frontend   # Build frontend\npnpm build:backend    # Build backend\npnpm build:publisher  # Build publisher worker\n\n# Database\npnpm db:generate      # Generate database migrations\npnpm db:migrate       # Apply database migrations\npnpm db:studio        # Open Prisma Studio GUI\n\n# Quality\npnpm lint             # Lint all apps\npnpm clean            # Clean build artifacts\n```\n\n### Docker Services\n\n```bash\n# Start all services\ndocker-compose up -d\n\n# Start specific services\ndocker-compose up -d postgres redis\n\n# View logs\ndocker-compose logs -f\n\n# Stop all services\ndocker-compose down\n\n# Stop and remove volumes\ndocker-compose down -v\n```\n\n## Running on Low-RAM VPS (1GB)\n\nIsekai can run on budget VPS with 1GB RAM using memory optimization. This requires:\n\n### Memory Configuration\n\nCreate a `.env` file with these optimized values:\n\n```bash\n# PostgreSQL Memory (total: ~180MB)\nMEMORY_LIMIT_POSTGRES=180M\nMEMORY_RESERVE_POSTGRES=64M\nPOSTGRES_SHARED_BUFFERS=64MB\nPOSTGRES_MAX_CONNECTIONS=20\nPOSTGRES_WORK_MEM=2MB\n\n# Redis Memory (total: ~50MB)\nMEMORY_LIMIT_REDIS=50M\nREDIS_MAX_MEMORY=32mb\n\n# Backend Node.js (total: ~256MB)\nMEMORY_LIMIT_BACKEND=256M\nNODE_OPTIONS=--max-old-space-size=256\nDB_POOL_SIZE=4\n\n# Publisher Worker (total: ~192MB)\nMEMORY_LIMIT_PUBLISHER=192M\nPUBLISHER_CONCURRENCY=2\n\n# Frontend nginx (total: ~50MB)\nMEMORY_LIMIT_FRONTEND=50M\n```\n\n**Total memory usage**: ~730MB + OS overhead = **~850-900MB peak usage**\n\n### System Requirements for 1GB VPS\n\n1. **Add swap file** (critical to prevent OOM kills):\n\n```bash\n# Create 2GB swap file\nsudo fallocate -l 2G /swapfile\nsudo chmod 600 /swapfile\nsudo mkswap /swapfile\nsudo swapon /swapfile\necho '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab\n\n# Reduce swappiness (prefer RAM, use swap as safety net)\necho 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf\nsudo sysctl -p\n```\n\n2. **Use lightweight OS**: Ubuntu Server 22.04 minimal or Alpine Linux\n\n3. **Disable unnecessary services**: Remove snapd, unattended-upgrades if not needed\n\n### Expected Performance\n\n- **Memory**: 700-850MB used, 150-300MB free (+ 2GB swap)\n- **CPU**: Low usage (~5-15% idle, peaks during publishing)\n- **Publishing**: 2 concurrent jobs (slower than 2GB+ VPS)\n- **Response time**: Acceptable for 1-3 users\n\n### When to Upgrade\n\nUpgrade to 2GB+ VPS if you experience:\n\n- Frequent OOM kills (check `dmesg | grep oom`)\n- Swap usage consistently \u003e500MB (`free -h`)\n- Slow response times (\u003e2s for API calls)\n- Publishing job failures due to timeouts\n\n## Documentation\n\nComplete documentation can be accessed at [Isekai Official Website](https://isekai.sh)\n\n## Contributing\n\nWe welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n### Development Workflow\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Make your changes\n4. Run tests and linting\n5. Commit your changes (`git commit -m 'feat: add amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request\n\n## Support\n\nOpen an issue to report problems and questions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisekai-sh%2Fisekai-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisekai-sh%2Fisekai-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisekai-sh%2Fisekai-core/lists"}