> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Add follows and connections to your app with Sublay's social graph hooks

Sublay provides two distinct social relationship systems: **Follows** (one-directional) and **Connections** (mutual/bidirectional). You can use one or both depending on the social model your app needs.

> [!NOTE]
>
> **Requires the `follows` and/or `connections` bundles.** Follows need the `follows` bundle and connections need the `connections` bundle — install whichever you use. See [Bundles](https://docs.sublay.io/v7/bundles.md) to add them.

## Follows

Follows are one-directional. A user can follow another user without requiring approval or reciprocation — similar to Twitter or Instagram's follow model.

## Connections

Connections are bidirectional and require mutual acceptance — similar to LinkedIn. One user sends a request; the other must accept before a connection is established. Connections go through several states: `none`, `pending-sent`, `pending-received`, `connected`, `declined-sent`, `declined-received`.

## Choosing Between Follows and Connections

| | Follows | Connections |
| - | - | - |
| **Direction** | One-way | Mutual |
| **Approval required** | No | Yes |
| **Use case** | Content feeds, creator audiences | Professional networks, friend systems |
| **State** | Following / not following | None → Pending → Connected / Declined |

## Blocking

User-to-user **blocking** severs interaction between two users across every Sublay surface (follows, connections, DMs, content, mentions, notifications, discovery, and profiles). Blocking is a trust & safety primitive that ships with the **moderation bundle**, not the follows/connections bundles — see [Moderation — Blocking](https://docs.sublay.io/v7/sdk/moderation/overview.md#blocking) for the full enforcement behavior and the [`useBlockManager`](https://docs.sublay.io/v7/sdk/relationships/use-block-manager) hook.

## In This Section

> [card] [useFollowManager](https://docs.sublay.io/v7/sdk/relationships/use-follow-manager.md)
>
> High-level hook for toggling follow state on a profile

> [card] [useConnectionManager](https://docs.sublay.io/v7/sdk/relationships/use-connection-manager.md)
>
> High-level hook that manages the full connection lifecycle

> [card] [useBlockManager](https://docs.sublay.io/v7/sdk/relationships/use-block-manager.md)
>
> High-level hook for toggling block state on a profile

## Hooks

> [card] [useFollowUser (+ more)](https://docs.sublay.io/v7/hooks/follows/use-follow-user.md)
>
> All individual follow hooks for custom UIs

> [card] [useRequestConnection (+ more)](https://docs.sublay.io/v7/hooks/connections/use-request-connection.md)
>
> All individual connection hooks for custom UIs


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.