# com.pagehare.document

> Published by [pagehare.com](https://lexicon.garden/identity/did:plc:wmpvkel5rsifjqzlxg7447ua)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wmpvkel5rsifjqzlxg7447ua/com.pagehare.document)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wmpvkel5rsifjqzlxg7447ua/com.pagehare.document/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wmpvkel5rsifjqzlxg7447ua/com.pagehare.document/examples)

## Definitions

### `com.pagehare.document`

**Type**: `record`

PageHare's sidecar for a site.standard.document it wrote: one per PageHare document, with the same rkey, so listing this collection enumerates exactly the PageHare documents in a repo (site.standard.document is shared with other apps). It carries the document's facets: mentions, links, and tags inside long-form content, as byte-slice offsets (UTF-8) over the document's textContent field, reusing app.bsky.richtext.facet feature types so facet-aware indexers can parse with existing logic. The human-readable layer stays in-band in the markdown as ordinary links; this record is the machine layer. A pure derivation: regenerated from the document's content.markdown on every write (rkey mirrors the document rkey), never hand-edited.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `document` | `string` (at-uri) | Yes | AT-URI of the site.standard.document this sidecar derives from. |
| `facets` | `array` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "PageHare's sidecar for a site.standard.document it wrote: one per PageHare document, with the same rkey, so listing this collection enumerates exactly the PageHare documents in a repo (site.standard.document is shared with other apps). It carries the document's facets: mentions, links, and tags inside long-form content, as byte-slice offsets (UTF-8) over the document's textContent field, reusing app.bsky.richtext.facet feature types so facet-aware indexers can parse with existing logic. The human-readable layer stays in-band in the markdown as ordinary links; this record is the machine layer. A pure derivation: regenerated from the document's content.markdown on every write (rkey mirrors the document rkey), never hand-edited.",
      "key": "any",
      "record": {
        "properties": {
          "document": {
            "description": "AT-URI of the site.standard.document this sidecar derives from.",
            "format": "at-uri",
            "type": "string"
          },
          "facets": {
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "document",
          "facets"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pagehare.document",
  "lexicon": 1
}
```
