💬

Naming conventions

Every platform (ManyVids today; OnlyFans, Fansly, Clips4Sale, LoyalFans, … later) exposes the same namespaces with the same method names for the same concept. A plugin written against Manyvids.Messages.send_message should port to Onlyfans.Messages.send_message by changing one identifier.

The cross-platform matrix is generated from the source and shows any drift.

Shape

<Platform>.<Namespace>.<verb>_<noun>(params, ctx)
  • Platform: PascalCase brand name, e.g. Manyvids, Onlyfans, Fansly. Its module id is lowercase (manyvids) and matches the plugin manifest's module.
  • Namespace: PascalCase plural noun from the fixed list below. Platforms don't invent new namespaces. If something doesn't fit, extend the list here first.
  • Method: snake_case, verb first, from the fixed verb list below.
  • Signature: always (params, ctx). params is a single object, even for one id. That way new options never shift positions, and the generated docs and types stay uniform. ctx is the account context (usually the plugin instance). Platform.bind(ctx) returns the same tree with ctx pre-applied.

Namespaces

NamespaceScopeManyVids termOnlyFans term (example)
AccountThe authenticated account ("me"): identity, session, settingsviewer, mvtoken/users/me
UsersAny other user: profiles, follow graphprofile, followusers, subscribers
CreatorsCreator-only data: ranks, awards, wishlists, batch metricsclub rank, awards—
MessagesDirect messages / inboxinbox roomschats
MediaUploading media for messages/postsinbox uploadvault upload
ContentThe creator's catalog: videos, clips, posts-as-productsstore videosposts, vault
StoreCommerce besides content: cart, physical items, custom offersstore items, customs—
SubscriptionsPaid fan subscriptionsVIP clubs / fanclubssubscriptions
FeedSocial timeline: posts, likes, shares, broadcastsfeedposts / mass messages
LiveLive streamingMV Livestreams
NotificationsActivity notifications, badgesnotificationsnotifications
AnalyticsTraffic/engagement reportscreator analyticsstatistics
EarningsRevenue ledger, payoutsearnings pagestatements
PromotionsDiscounts, campaigns, promo codesmass discountspromotions, trial links
ContestsSite contests and awardscontests—
DiscoverySite-wide browsing and search: featured, search, tagslander sections, searchexplore
ChatPlatform-neutral conversations, built on Messages/Users (see below)——

Chat is the exception to these rules. Night itself uses it (the conversation dialog, messenger replies) without knowing the platform, so every platform with direct messages implements exactly the same methods, params and return shapes: get_thread({ partner_id }) → ChatThread, send({ partner_id, text, files }), is_following({ partner_id }), set_following({ partner_id, follow }), get_own_bio(), is_member_type({ user_type }). Platform-specific calls stay in Messages/Users.

Use the platform-neutral column name even when the platform calls it something else. ManyVids "VIP clubs" live under Subscriptions. A ManyVids "Performer" is a Creator.

Verbs

VerbMeaningReturns
get_<noun>One resource, or one object describing somethingthe resource
list_<nouns>A collection: one page, or everything if the platform doesn't paginatearray, response, or Page<T>
list_all_<nouns>Convenience that walks every pagearray
search_<nouns>Collection filtered by a free-text or structured querysame as list_
count_<nouns>A number onlynumber
is_<adjective> / has_<past participle>Yes/no questionboolean
send_<noun>Deliver something to another userplatform confirmation
create_ / update_ / set_ / delete_Write operations (set_ = idempotent assignment)the result
follow / unfollow, like_<noun> / unlike_<noun>, share_<noun>Social actionsboolean confirmation
record_<noun>_viewFire-and-forget counterstrue

Parameter names

  • snake_case, never the platform's camelCase (video_id, not videoId).
  • <entity>_id for one id and <entity>_ids for arrays: user_id, creator_id, video_id, item_id, post_id.
    • user_id / creator_id are the platform's stable public id (the ManyVids legacy numeric id). Other id kinds are named for what they are, e.g. guid.
  • Paging: cursor in, next out (Page<T> = { items, next }). Offset-paged endpoints use page (1-based) / limit, or from / size where the platform does.
  • Dates YYYY-MM-DD as *_date, times HH:MM as *_time.

Return values and errors

  • Return the platform's response, typed. When a wrapper adds nothing ({ success: {...} }, data.profile.x), unwrap it with select. Return shapes are part of the public API: changing one is a breaking change.
  • Never return an { error } object. Every failure rejects with SdkError (code: TRANSPORT, UNEXPECTED_RESPONSE, REJECTED, UNAUTHORIZED, INVALID_ARGUMENT, NO_CONTEXT, UNSUPPORTED). A platform's HTTP 401 (the account's session is no longer accepted) is always UNAUTHORIZED.

Entities

Stateful helpers that wrap a raw object plus a context: new Platform.User(obj, ctx), Platform.Creator, Platform.TagCrawler. Entities hold no logic of their own; they call namespace methods. Stateful iteration uses next_<nouns>() plus an is_finished flag.

Versioning

SDK_VERSION (and sdk_version in plugin manifests) follows semver. Adding a method or optional param is a minor bump. Renaming or removing a method or param, or changing a return shape, is a major bump.