Skip to content

Myna Studio: multi-user social scheduler (clean-room Postiz-style) on myna - #198

Merged
ralyodio merged 2 commits into
mainfrom
feat/studio
Nov 30, 2026
Merged

ralyodio merged 2 commits into
mainfrom
feat/studio

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

What

Myna Studio, a hosted multi-user social media scheduler built on myna's own engine, at /studio/ on mynaposter.com and on crawlproof.com (which proxies /studio/* here; crawlproof PR follows).

Clean room: designed from Postiz's public pricing/feature page only (plans by channel count, calendar, team seats, AI writer, analytics). No Postiz source was read or ported.

  • Calendar: month and week views, drag a post (or an unscheduled draft) onto a day to reschedule.
  • Composer: multi-channel, per-network character counters, titles for blog networks, draft / schedule / post now.
  • AI writer: three drafts from a brief, on c0mpute.com/v1 (model auto) with the person's own OAuth key, billed per use to their c0mpute balance.
  • Team: owner/admin/editor/viewer, invite links (7 days, one use), seats per plan.
  • Approvals: on Team/Agency, editors' posts wait as pending; owner/admin approve or send back with a note.
  • Analytics: sends/failures per day and channel, likes/reposts/replies pulled via each adapter's stats, top posts.
  • Plans: Free (3 channels, 30 posts/mo), Creator $9, Team $19, Agency $49 per 30 days, charged from the owner's c0mpute balance via POST c0mpute.com/api/v1/billing/charge kind social.plan (billing: social.plan kind for Myna Studio plans c0mpute#569), idempotent per click nonce. No auto-renew. 402 shows a CoinPay top-up link.
  • Funnel: header shows the c0mpute balance + top up; plan tab promotes rent-a-desktop/shell, chat, solutions.

How

  • apps/api/src/studio/: plans (pure), crypto (AES-256-GCM sealing under MYNA_STUDIO_KEY, signed OAuth state), c0mpute client, network catalog (paste-token networks only; private/http addresses refused), store (Postgres, every rule enforced here), routes (/v1/studio/*), sender (claims due posts with SKIP LOCKED, sends through myna-core tailor + adapter post, at most once).
  • Sign in with c0mpute: OAuth 2.1 + PKCE, public client c0c_NmUFL6mr7ZL_CfFQQIuL8Q, scope inference billing (falls back to inference if billing is refused). Accounts keyed on the c0mpute user id (bound to CoinPay sub there), never email.
  • Session cookie HttpOnly/Secure/Lax, Path=/studio; every write also needs x-studio: 1.
  • Web: /studio/api/* proxied to /v1/studio/*; page shell per host (mynaposter / crawlproof) with the clearnet fleet footer + Profullstack webring row; self-contained CSS/JS under /studio/.

Not in v1

OAuth-app networks (LinkedIn, X, Threads, Instagram, YouTube, TikTok, Pinterest), media uploads, AI images/video, RSS auto-post, public API keys for the studio, comments inbox.

Tests

  • bun x tsc --noEmit -p tsconfig.json clean.
  • apps/api/test/studio.test.ts 19 pass; apps/api/test/studio.integration.test.ts (real Postgres, c0mpute faked at fetch) 1 pass, 42 expects: sign-in, header CSRF guard, free limits, plan purchase + idempotency + 402, approvals, invites, drag, sender once, analytics.
  • Release test line: 929 pass. (mcp-oauth.integration / openconnection have 2 pre-existing failures on main, unrelated.)

🤖 Generated with Claude Code

Clean-room Postiz-style web app at /studio (mynaposter.com/studio, and
crawlproof.com/studio through a proxy): calendar with drag to reschedule,
composer with per-network limits, team seats and invite links, approvals,
analytics with engagement refresh, an AI writer on c0mpute, and 30-day plans
paid from the owner's c0mpute balance (app charge kind social.plan).

Sign in with c0mpute (OAuth 2.1 + PKCE, keyed on the c0mpute user id).
Channel credentials sealed with AES-256-GCM under MYNA_STUDIO_KEY. Sends go
through myna's own adapters and tailor(), at most once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

ThreatCrush Security Scan

31 finding(s) in the 18 file(s) this pull request changes.

HIGH: 1 | MEDIUM: 29 | LOW: 1

Severity Rule Location
HIGH js-ssrf-outbound-request apps/web/src/proxy.ts:61
MEDIUM sql-template-interpolation apps/api/src/studio/sender.ts:86
MEDIUM sql-template-interpolation apps/api/src/studio/sender.ts:98
MEDIUM sql-template-interpolation apps/api/src/studio/sender.ts:110
MEDIUM sql-template-interpolation apps/api/src/studio/sender.ts:122
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:61
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:67
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:73
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:86
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:95
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:96
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:154
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:158
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:170
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:175
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:187
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:204
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:206
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:219
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:223
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:240
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:259
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:311
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:341
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:366
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:373
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:384
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:393
MEDIUM sql-template-interpolation apps/api/src/studio/store.ts:413
MEDIUM insecure-randomness-for-secret apps/web/assets/studio.js:613
LOW sql-template-interpolation apps/api/test/studio.integration.test.ts:180
125 pre-existing finding(s) elsewhere in the repository — **HIGH**: 4 | **MEDIUM**: 82 | **LOW**: 39

Not introduced by this pull request.

Severity Rule Location
HIGH secret-database-url README.md:1556
HIGH secret-database-url README.md:1646
HIGH js-electron-node-integration apps/desktop/src/main.cjs:33
HIGH secret-database-url docker-compose.yml:4
MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2.yml:39
MEDIUM sql-template-interpolation apps/api/src/atproto.ts:63
MEDIUM sql-template-interpolation apps/api/src/atproto.ts:101
MEDIUM sql-template-interpolation apps/api/src/atproto.ts:121
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:51
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:118
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:133
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:134
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:135
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:138
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:168
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:175
MEDIUM sql-template-interpolation apps/api/src/cloud.ts:182
MEDIUM sql-template-interpolation apps/api/src/credits.ts:132
MEDIUM sql-template-interpolation apps/api/src/credits.ts:166
MEDIUM sql-template-interpolation apps/api/src/handoff.ts:71

…and 105 more; the full set is in the SARIF artifact.

Snippets are redacted; ThreatCrush never prints matched credential material.

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ThreatCrush found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 467b40c into main Nov 30, 2026
2 checks passed
@ralyodio
ralyodio deleted the feat/studio branch November 30, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants