CommunityFeedItem community.feed-item@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
community
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/community/feed-item.v1.json

community.feed-item@1: one card of the menu's Feed on every OpenVibe site (GET /api/v1/feed, OpenVibe.Community server/pulse/feed.js). Each card keeps its source and public visibility. Scheduled calendar cards appear only before their start time; bursts can carry a group of links. Counts carry Community's own views, likes and comments where it knows them.

Fields

FieldTypeRequiredDescriptionConstraints
idstringyesStable within one response: p:<pulse item id> for a Pulse item, t:<site>:<url> for a trending card.
  • minLength 1
  • maxLength 500
kindenumyes
  • one of "live", "stream", "clip", "video", "pic", "post", "meme", "game", "update", "wiki", "quest", "chat", "event", "member", "avatar", "banner", "paste", "site", "space", "follow", "episode"
urlstringyesWhere the card opens; https unless the source itself answered an http URL.
  • pattern ^https?://
  • maxLength 2000
titlestringyes
  • maxLength 300
textstringyesThe source's first 280 characters, on one line; empty when it has none.
  • maxLength 280
atstring | nullyesWhen it happened (Pulse provenance); null for a trending card.
  • format date-time
starts_atstringThe start time of a Coming up calendar item; absent on other kinds.
  • format date-time
visibilityenumPresent only for an item returned to a follower or its author.
  • one of "followers"
sitestringyesThe source service (live, media-hub, pics, games, blog, wiki, quest, chat, today, network, community…).
  • maxLength 40
site_namestringyes
  • maxLength 40
actorobject | nullyesWho did it; null for AI, system, aggregate and trending cards.
mediaobject | nullyesThe card's first picture, as a Media thumbnail; null when it has none.
countsobjectyesCommunity's own numbers, each present only when it knows it; {} for another service's item.
  • no other fields
counts.viewsinteger
  • minimum 0
counts.likesinteger
  • minimum 0
counts.commentsinteger
  • minimum 0
live_nowbooleanPresent on live and stream cards: true only while the channel is currently on air. A past broadcast has kind stream and live_now false.
groupobject
  • no other fields
group.countintegeryes
  • minimum 2
group.itemsarray of objectyes
  • minItems 2
  • items: no other fields
group.items[].idstringyes
group.items[].urlstringyes
  • pattern ^https://
group.items[].titlestringyes
group.items[].mediaobject | nullyes
labelenumPresent only when the card needs one.
  • one of "Trending", "AI", "System"

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: live
{
  "id": "p:42",
  "kind": "live",
  "url": "https://openvibe.live/@alex",
  "title": "Alex went live",
  "text": "",
  "at": "2026-11-09T10:15:00.000Z",
  "site": "live",
  "site_name": "Live",
  "actor": {
    "name": "Alex",
    "avatar": "https://openvibe.network/avatar/alex?s=96"
  },
  "media": null,
  "counts": {},
  "live_now": true
}
Valid: post-with-picture
{
  "id": "p:9171",
  "kind": "post",
  "url": "https://openvibe.community/forum/status/look-at-this-cat",
  "title": "Look at this cat",
  "text": "Look at this cat",
  "at": "2026-11-09T10:15:00.000Z",
  "site": "community",
  "site_name": "Community",
  "actor": {
    "name": "Alex",
    "avatar": "https://openvibe.network/avatar/alex?s=96"
  },
  "media": {
    "thumb": "https://openvibe.media/o/med_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "ratio": 1.7777777777777777
  },
  "counts": {
    "views": 7,
    "likes": 3,
    "comments": 2
  }
}
Valid: stream
{
  "id": "p:42",
  "kind": "stream",
  "url": "https://openvibe.live/@alex",
  "title": "Alex went live",
  "text": "",
  "at": "2026-11-09T10:15:00.000Z",
  "site": "live",
  "site_name": "Live",
  "actor": {
    "name": "Alex",
    "avatar": "https://openvibe.network/avatar/alex?s=96"
  },
  "media": null,
  "counts": {},
  "live_now": false
}
Rejected: kind-not-in-the-feed
{
  "id": "p:1",
  "kind": "food",
  "url": "https://openvibe.community/p/one",
  "title": "Not a kind the feed shows",
  "text": "",
  "at": null,
  "site": "community",
  "site_name": "Community",
  "actor": null,
  "media": null,
  "counts": {}
}
Rejected: live-now-string
{
  "id": "p:9171",
  "kind": "post",
  "url": "https://openvibe.community/forum/status/look-at-this-cat",
  "title": "Look at this cat",
  "text": "Look at this cat",
  "at": "2026-11-09T10:15:00.000Z",
  "site": "community",
  "site_name": "Community",
  "actor": {
    "name": "Alex",
    "avatar": "https://openvibe.network/avatar/alex?s=96"
  },
  "media": {
    "thumb": "https://openvibe.media/o/med_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "ratio": 1.7777777777777777
  },
  "counts": {
    "views": 7,
    "likes": 3,
    "comments": 2
  },
  "live_now": "false"
}
Rejected: negative-count
{
  "id": "p:9171",
  "kind": "post",
  "url": "https://openvibe.community/forum/status/look-at-this-cat",
  "title": "Look at this cat",
  "text": "Look at this cat",
  "at": "2026-11-09T10:15:00.000Z",
  "site": "community",
  "site_name": "Community",
  "actor": {
    "name": "Alex",
    "avatar": "https://openvibe.network/avatar/alex?s=96"
  },
  "media": {
    "thumb": "https://openvibe.media/o/med_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "ratio": 1.7777777777777777
  },
  "counts": {
    "likes": -1
  }
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('community.feed-item@1', value);   // { valid, errors: [{ path, message }] }