---
id: TASK-28
title: Port folk-mycrozine-gen shape (AI zine generator)
status: Done
assignee: []
created_date: '2026-02-18 19:50'
updated_date: '2026-03-12 04:09'
labels:
  - shape-port
  - phase-2
  - ai
milestone: m-0
dependencies:
  - TASK-24
  - TASK-25
references:
  - canvas-website/src/shapes/MycroZineGeneratorShapeUtil.tsx
priority: medium
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Port MycroZineGeneratorShapeUtil from canvas-website to rspace-online.

Source: canvas-website/src/shapes/MycroZineGeneratorShapeUtil.tsx (1,222 lines)
Target: rspace-online/lib/folk-mycrozine-gen.ts

Features to implement:
- Prompt input for zine content
- Style and layout settings UI
- AI-powered multi-page zine generation via LLM
- Page preview/navigation
- Export/download functionality

Largest AI shape to port. Needs /api/mycrozine server endpoint (TASK-25).
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 Prompt input generates zine pages via LLM
- [ ] #2 Multi-page navigation works
- [ ] #3 Style/layout settings affect output
- [ ] #4 Results sync across clients via Automerge
- [ ] #5 Toolbar button added to canvas.html
<!-- AC:END -->

## Final Summary

<!-- SECTION:FINAL_SUMMARY:BEGIN -->
Implemented as folk-zine-gen.ts (renamed from folk-mycrozine-gen). Full 8-page zine generator with /api/zine/outline, /api/zine/page, /api/zine/regenerate-section endpoints live.
<!-- SECTION:FINAL_SUMMARY:END -->
