MCPcopy Index your code
hub / github.com/liveblocks/liveblocks

github.com/liveblocks/liveblocks @v3.22.0-file1 sqlite

repository ↗ · DeepWiki ↗ · release v3.22.0-file1 ↗
9,501 symbols 33,104 edges 3,279 files 1,129 documented · 12%
README

Liveblocks Liveblocks

X Discord YouTube License

Liveblocks gives you the building blocks and infrastructure to enable people and AI to work together inside your app.

Get started for free

Liveblocks Collaboration Infrastructure

Ready-made features

Liveblocks includes a set of collaboration building blocks you can use individually or together. These ready-made features provide pre-built components, hooks, and APIs that handle the complexity of realtime collaboration, allowing you to focus on building your product’s unique experience.

  • Comments - Add contextual comments directly inside your product
  • Multiplayer - Add realtime collaboration to your product experience
  • AI Agents - Add AI collaborators to your product
  • Notifications - Add notifications to your app to keep users coming back

SDKs and packages

Packages for specific libraries and frameworks to add Liveblocks-powered collaborative experiences to your product. Integrations are designed to serve various collaboration use cases such as collaborative text editors, comments, notifications, and more.

Developers

Community and support

  • GitHub issues to file bugs and errors you encounter using Liveblocks.
  • Discord to get involved with the Liveblocks community, ask questions and share tips.
  • Email to contact us directly for support and sales enquiries.
  • X to receive updates, announcements, blog posts, and general Liveblocks tips.

License

Most of this repository is licensed under the Apache License 2.0, Copyright © 2021-present Liveblocks. Some components are licensed under AGPL-3.0-or-later.

See LICENSE for details.

Extension points exported contracts — how you extend this code

ILiveblocksClient (Interface)
* A minimal interface for the Liveblocks Node client — just the * `mutateStorage` method we actually need. This avoids [1 …
packages/liveblocks-react-flow/src/node.ts
FlattenedTiptapParagraphNodeMarker (Interface)
* Internal type helper when flattening nodes. * It helps to better extract mention node with context by marking * star
packages/liveblocks-emails/src/tiptap-editor.ts
IWebSocketInstance (Interface)
(no doc) [2 implementers]
packages/liveblocks-core/src/types/IWebSocket.ts
IStorageDriver (Interface)
(no doc) [2 implementers]
packages/liveblocks-server/src/interfaces/IStorageDriver.ts
User (Interface)
* Returns a list of user IDs from a partial search input * For `resolveMentionSuggestions` in liveblocks.config.ts
examples/nextjs-comments-search/src/app/api/users/search/route.ts
Session (Interface)
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
examples/nextjs-nextauth-google-avatars/next-auth-d.ts
User (Interface)
* Returns a list of user IDs from a partial search input * For `resolveMentionSuggestions` in liveblocks.config.ts
examples/nextjs-comments-canvas/src/app/api/users/search/route.ts
ComposerProps (Interface)
* Custom composer that allows you to create new comments/threads.
examples/nextjs-comments-primitives/src/components/Composer.tsx

Core symbols most depended-on inside this repo

get
called by 1886
packages/liveblocks-core/src/lib/signals.ts
map
called by 1161
packages/liveblocks-core/src/crdts/LiveList.ts
json
called by 885
packages/liveblocks-core/src/lib/IncrementalJsonParser.ts
push
called by 589
packages/liveblocks-core/src/lib/Deque.ts
set
called by 534
packages/liveblocks-core/src/lib/signals.ts
pop
called by 510
packages/liveblocks-core/src/lib/Deque.ts
waitForJson
called by 427
e2e/next-sandbox/test/utils.ts
cx
called by 340
examples/nextjs-ai-dashboard-reports/src/lib/utils.ts

Shape

Function 6,413
Method 2,035
Interface 592
Class 441
Enum 19
Route 1

Languages

TypeScript83%
Python17%

Modules by API surface

packages/liveblocks-react/src/room.tsx256 symbols
packages/liveblocks-python/liveblocks/client.py183 symbols
packages/liveblocks-core/src/room.ts133 symbols
packages/liveblocks-core/src/api-client.ts120 symbols
packages/liveblocks-node/src/client.ts108 symbols
packages/liveblocks-react/src/umbrella-store.ts88 symbols
packages/liveblocks-react/src/liveblocks.tsx75 symbols
tools/liveblocks-devtools/src/devtools/components/Tree.tsx72 symbols
packages/liveblocks-server/src/Room.ts67 symbols
packages/liveblocks-core/src/ai.ts67 symbols
tools/liveblocks-cli/src/dev-server/db/BunSQLiteDriver.ts66 symbols
packages/liveblocks-core/src/crdts/LiveList.ts62 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.25 · 1×
@ai-sdk/openai3.0.20 · 1×
@ai-sdk/openai-compatible0.1.17 · 1×
@ai-sdk/react3.0.56 · 1×
@ai-sdk/rsc2.0.53 · 1×
@arethetypeswrong/cli0.18.2 · 1×
@babel/core7.18.13 · 1×
@babel/preset-env7.18.10 · 1×
@babel/preset-typescript7.18.6 · 1×
@babel/runtime7.26.10 · 1×
@blocknote/core0.43.0 · 1×
@blocknote/mantine0.46.1 · 1×

For agents

$ claude mcp add liveblocks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact