---
title: "meme.template@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/meme.template"
updated: null
---

# meme.template@1 · OpenVibe.Services

HTML: [meme.template@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/meme.template)

# MemeTemplate `meme.template@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: meme
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/meme/template.v1.json`](/docs/contracts/meme.template.json)

meme.template@1: a reusable meme image with its source, reuse licence and caption layout. Public templates have passed any required review.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `image_url` | string | yes |  | - `format uri-reference`<br>- `maxLength 2048` |
| `box_count` | integer | yes |  | - `minimum 1`<br>- `maximum 8` |
| `source` | string | yes |  | - `maxLength 160` |
| `license` | string | yes |  | - `maxLength 200` |
| `credit` | string |  |  | - `maxLength 300` |
| `source_url` | string |  |  | - `format uri`<br>- `maxLength 2048` |
| `attribution` | string |  |  | - `maxLength 500` |
| `created_at` | string | yes |  | - `format date-time` |
| `layout` | object |  |  |  |
| `layout.width` | integer | yes |  | - `minimum 64`<br>- `maximum 4096` |
| `layout.height` | integer | yes |  | - `minimum 64`<br>- `maximum 4096` |
| `layout.boxes` | array of object | yes |  | - `minItems 1`<br>- `maxItems 8` |
| `captions` | integer |  |  | - `minimum 0` |
| `uses_today` | integer |  |  | - `minimum 0` |

## Examples

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

 Valid: commons-template

~~~~
{
  "id": "tpl_distracted-boyfriend",
  "name": "Distracted Boyfriend",
  "image_url": "https://openvibe.media/o/med_01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "box_count": 3,
  "source": "Wikimedia Commons",
  "license": "CC BY-SA 4.0",
  "credit": "Photographer",
  "source_url": "https://commons.wikimedia.org/wiki/File:Example.jpg",
  "created_at": "2026-11-08T00:00:00.000Z",
  "layout": {
    "width": 440,
    "height": 280,
    "boxes": [
      {
        "x": 4,
        "y": 5,
        "w": 90,
        "h": 20
      }
    ]
  },
  "captions": 10,
  "uses_today": 2
}
~~~~

Rejected: no-image

~~~~
{
  "id": "tpl_example",
  "name": "Example",
  "box_count": 2,
  "source": "Commons",
  "license": "CC BY-SA",
  "created_at": "2026-11-08T00:00:00.000Z"
}
~~~~

## Validate

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