# at.happyproto.registry.project

> The HappyView facts about a software.release.project that make it a plugin. The record key is the project's name, and the record lives in the same repo as the project. The registry indexes a project's releases only while this record exists and is valid.

- Kind: record
- Record key: any
- Authority: registry.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.project)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.project/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.project/analytics)

## Record (`at.happyproto.registry.project`)

Type: record · key any

### Properties

- `authors` (array, required)
  - Constraints: minLength: 1, maxLength: 20
  - `items` (ref)
    - Reference: `#author`
- `keywords` (array)
  - Constraints: maxLength: 20
  - `items` (string)
    - Constraints: maxLength: 320, maxGraphemes: 32
- `pluginType` (string, required): What the plugin is. Every release must be of this type.
  - Constraints: knownValues: auth | library | interpreter
- `project` (string · at-uri, required): The software.release.project this describes: the one in the same repo, under the same record key.
- `publication` (ref, required): The site.standard.publication that holds the plugin's display name, description and icon, in the same repo under the same record key. Pinned by CID, so a change to the publication takes effect only when this record is updated to point at it.
  - Reference: `com.atproto.repo.strongRef`
- `security` (array, required): Where to report a vulnerability. At least one is required, because a plugin runs inside an operator's HappyView.
  - Constraints: minLength: 1, maxLength: 20
  - `items` (ref)
    - Reference: `#contact`

## #author (`at.happyproto.registry.project#author`)

Type: object

### Properties

- `email` (string)
  - Constraints: maxLength: 320
- `name` (string, required)
  - Constraints: maxLength: 1280, maxGraphemes: 128
- `url` (string · uri)
  - Constraints: maxLength: 2048

## #contact (`at.happyproto.registry.project#contact`)

Type: object

A security contact. It must carry a url, an email, or both.

### Properties

- `email` (string)
  - Constraints: maxLength: 320
- `url` (string · uri)
  - Constraints: maxLength: 2048

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "author": {
      "properties": {
        "email": {
          "maxLength": 320,
          "type": "string"
        },
        "name": {
          "maxGraphemes": 128,
          "maxLength": 1280,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "contact": {
      "description": "A security contact. It must carry a url, an email, or both.",
      "properties": {
        "email": {
          "maxLength": 320,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The HappyView facts about a software.release.project that make it a plugin. The record key is the project's name, and the record lives in the same repo as the project. The registry indexes a project's releases only while this record exists and is valid.",
      "key": "any",
      "record": {
        "properties": {
          "authors": {
            "items": {
              "ref": "#author",
              "type": "ref"
            },
            "maxLength": 20,
            "minLength": 1,
            "type": "array"
          },
          "keywords": {
            "items": {
              "maxGraphemes": 32,
              "maxLength": 320,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "pluginType": {
            "description": "What the plugin is. Every release must be of this type.",
            "knownValues": [
              "auth",
              "library",
              "interpreter"
            ],
            "type": "string"
          },
          "project": {
            "description": "The software.release.project this describes: the one in the same repo, under the same record key.",
            "format": "at-uri",
            "type": "string"
          },
          "publication": {
            "description": "The site.standard.publication that holds the plugin's display name, description and icon, in the same repo under the same record key. Pinned by CID, so a change to the publication takes effect only when this record is updated to point at it.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "security": {
            "description": "Where to report a vulnerability. At least one is required, because a plugin runs inside an operator's HappyView.",
            "items": {
              "ref": "#contact",
              "type": "ref"
            },
            "maxLength": 20,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "project",
          "publication",
          "pluginType",
          "authors",
          "security"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "at.happyproto.registry.project",
  "lexicon": 1
}
```
