mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7480] [Feature]: Browse and import PlotLight characters and personas in the Card Browser #4167
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4167
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7480
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
The Card Browser (Download Cards) lets you search ChubAI, JannyAI, Pygmalion, Wyvern and DataCat, then import a card as a character or persona. PlotLight now has a public, read-only content API, but its cards and personas can only be added by downloading the file on the website and uploading it into Marinara.
Proposed solution
Add PlotLight as a Card Browser source, for both characters and personas, using its public content API: https://plotlightstudios.com/docs/api/public-content
What the API offers:
credentials: 'omit'), and it uses no inference tokens.GET /api/v1/content/{type}, withtypecards(orcharacters) orpersonas.q(up to 200 characters);mode: for cardsnames,creators,tags,fandomsorgenres; for personasnamesorcreators;tags(all must match) andexclude_tags(any removes), at most 10 slugs each;sort:recent,popularorrating;limit, 1–100;offset, 0–10000.min_rating(0–5) andhas_vn. Personas acceptmin_favorites.dataarray of{ id, type, name, description, image_url, updated_at, creator { name, username }, tags[], detail_url, downloads { format: relative URL } }, pluspagination { limit, offset, has_more, next_offset }.next_offsetisnull; a short or empty page doesn't mean the end.GET /api/v1/content/tags?type=…&category=…returns slugs. Use the slugs exactly, never derive them from display names.GET /api/v1/content/{type}/{id}?format=….png3(V3 with V2 compatibility, portrait embedded),png(V2),json3(V3),json(V2) orbackyard.json.character_book. V3 cards may reference sprites that have to be fetched separately.400: invalid query; unknown or repeated parameters are rejected.401/403: not exportable to guests.404: unavailable.429: rate limited.Retry-AfterandX-RateLimit-*, debounce searches, and avoid parallel bulk downloads.include_after_darkon the tag catalog doesn't unlock adult content, so the source's adult-content toggle should reflect what guests can actually get.detail_url) on the detail page, as the other sources do.Implementation notes:
packages/client/src/components/bot-browser/BotBrowserView.tsx. If proxying is needed for image or download URLs, add a server route likepackages/server/src/routes/bot-browser-*.routes.ts.png3, falling back tojson3orjson, so the import keeps the portrait and any embedded book.docs/characters/bot-browser.md, which lists the sources, and thedocs-i18npacks (or open a[docs-i18n]follow-up).Alternatives considered
/api/v1) and meant for this.Additional context
docs/characters/bot-browser.mdTemplate check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 12, 2026):
@SpicyMarinara owns this; the implementation is in #7495 (ready for review). Note: PlotLight currently returns 404 for every persona download I tried, so persona import shows "PlotLight doesn't offer this for download." until PlotLight serves those files.
@SpicyMarinara commented on GitHub (Oct 12, 2026):
Fixed on staging by #7495.