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

# host.project@1 · OpenVibe.Services

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

# HostProject `host.project@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: host
- Visibility: first-party
- Status: retired
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/host/project.v1.json`](/docs/contracts/host.project.json)

Deprecated since 0.150.0; use space.project@1. Removed after 1.0.0. the static hosting engine moved from OpenVibe.Host to OpenVibe.Space (2026-10-12, plan T20)

host.project@1: one OpenVibe.Host tenant project (server/http/serialize.js project): owned by a person (usr\_…), production or sandbox, with the caller's role in it and any staff takedown. POST /api/v1/projects and GET /api/v1/projects/:id add the effective quota and the usage.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^prj_[0-9A-HJKMNP-TV-Z]{26}$` |
| `name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `environment` | enum | yes |  | - `one of "production", "sandbox"` |
| `network_project_id` | string \| null | yes | The OpenVibe.Network project once Network has projects. |  |
| `owner` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `role` | enum | yes | The caller's role (staff: a Network admin who is not a member). | - `one of "owner", "maintainer", "deployer", "staff", null` |
| `created_at` | string | yes |  | - `format date-time` |
| `takedown` | object \| null | yes | A staff takedown covering it: serving stops while the content is kept for review. |  |
| `quota` | object |  | The effective quota: the project's override where set, else its environment's default. |  |
| `quota.storage_bytes` | integer | yes |  | - `minimum 0` |
| `quota.deploys_per_day` | integer | yes |  | - `minimum 0` |
| `quota.max_files` | integer | yes |  | - `minimum 0` |
| `quota.max_file_bytes` | integer | yes |  | - `minimum 0` |
| `quota.sites` | integer | yes |  | - `minimum 0` |
| `quota.custom_domains` | integer | yes |  | - `minimum 0` |
| `usage` | object |  |  |  |
| `usage.storage_bytes` | integer | yes |  | - `minimum 0` |
| `usage.objects` | integer | yes |  | - `minimum 0` |
| `usage.deploys_last_24h` | integer | yes |  | - `minimum 0` |
| `usage.sites` | integer | yes |  | - `minimum 0` |
| `usage.custom_domains` | integer | yes |  | - `minimum 0` |

## Examples

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

 Valid: listed

~~~~
{
  "id": "prj_01JAD1P2R3J4K5M6N7P8Q9R0S1",
  "name": "Harbour Radio",
  "environment": "production",
  "network_project_id": null,
  "owner": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "role": "owner",
  "created_at": "2026-09-24T08:15:00.000Z",
  "takedown": null
}
~~~~

Valid: owner

~~~~
{
  "id": "prj_01JAD1P2R3J4K5M6N7P8Q9R0S1",
  "name": "Harbour Radio",
  "environment": "production",
  "network_project_id": null,
  "owner": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "role": "owner",
  "created_at": "2026-09-24T08:15:00.000Z",
  "takedown": null,
  "quota": {
    "storage_bytes": 1073741824,
    "deploys_per_day": 50,
    "max_files": 5000,
    "max_file_bytes": 26214400,
    "sites": 5,
    "custom_domains": 5
  },
  "usage": {
    "storage_bytes": 482113,
    "objects": 37,
    "deploys_last_24h": 3,
    "sites": 1,
    "custom_domains": 1
  }
}
~~~~

Rejected: bad-environment

~~~~
{
  "id": "prj_01JAD1P2R3J4K5M6N7P8Q9R0S1",
  "name": "Harbour Radio",
  "environment": "staging",
  "network_project_id": null,
  "owner": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "role": "owner",
  "created_at": "2026-09-24T08:15:00.000Z",
  "takedown": null
}
~~~~

## Validate

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