Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/liveblocks/liveblocks
/ functions
Functions
8,448 in github.com/liveblocks/liveblocks
⨍
Functions
8,448
◇
Types & classes
1,052
↳
Endpoints
1
↓ 27 callers
Function
createLiveblocksClient
( options: ClientOptions<U> = DEFAULT_E2E_OPTIONS )
e2e/next-sandbox/utils/createClient.ts:17
↓ 27 callers
Function
enterAndConnect
( store: ReturnType<typeof createBasicStore>["store"], roomId: string = randomRoomId() )
packages/liveblocks-redux/src/__tests__/index.test.ts:191
↓ 27 callers
Function
makePoller
( callback: (signal: AbortSignal) => Promise<void> | void, intervalMs: number, options?: { maxStaleT
packages/liveblocks-core/src/lib/Poller.ts:84
↓ 27 callers
Function
makeSession
(options?: { secret?: string; tenantId?: string; organizationId?: string; })
packages/liveblocks-node/src/__tests__/Session.test.ts:11
↓ 27 callers
Function
makeUpdate
( liveList: LiveList<TItem>, deltaUpdates: LiveListUpdateDelta[] )
packages/liveblocks-core/src/crdts/LiveList.ts:1437
↓ 27 callers
Function
objectToQuery
(obj: { [key: string]: | FilterValue | { [key: string]: FilterValue | undefined } | undefined; }
packages/liveblocks-core/src/lib/objectToQuery.ts:107
↓ 27 callers
Method
reconcilePartially
* Like reconcile(), but only touches the top-level keys present in * `partialObj`. Keys on this LiveObject that are absent from `partialObj` * a
packages/liveblocks-core/src/crdts/LiveObject.ts:904
↓ 27 callers
Function
tryParseJson
(rawMessage: string)
packages/liveblocks-core/src/lib/utils.ts:96
↓ 26 callers
Function
cellKey
(rowId: string, colId: string)
examples/nextjs-ai-spreadsheet/liveblocks.config.ts:51
↓ 26 callers
Function
cn
(...inputs: ClassValue[])
examples/nextjs-notification-settings/utils/cn.ts:4
↓ 26 callers
Method
createThread
({ roomId, metadata, body, commentId, threadId, commentMetadata, attachmentIds,
packages/liveblocks-core/src/api-client.ts:138
↓ 26 callers
Function
nthDigit
(n: number)
packages/liveblocks-core/src/lib/position.ts:78
↓ 25 callers
Method
addNode
Adds a node. If a node with the same ID already exists, it is replaced.
packages/liveblocks-react-flow/src/node.ts:61
↓ 25 callers
Function
deleteComment
({ threadId, commentId, }: { roomId: string; threadId: string; commentId: string; })
packages/liveblocks-core/src/room.ts:3700
↓ 25 callers
Method
editCommentMetadata
({ roomId, threadId, commentId, metadata, }: { roomId: string; threadId: string;
packages/liveblocks-core/src/api-client.ts:183
↓ 25 callers
Method
fetchMessages
( threadId: string, options?: FetchOptions )
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:261
↓ 25 callers
Function
makeExternalRoomId
()
tools/liveblocks-cli/test/devserver/_helpers.ts:24
↓ 25 callers
Function
make_session
( secret: str = "sk_testingtesting", user_info: dict | None = None, organization_id: str | None =
packages/liveblocks-python/tests/test_session.py:15
↓ 25 callers
Function
simulateRemoteOps
* Injects server operations directly into the room's message handler, * bypassing the MockWebSocket transport layer.
packages/liveblocks-core/src/crdts/__tests__/LiveList.mockserver.test.ts:41
↓ 24 callers
Method
delete_node
* Delete a node and its entire subtree recursively. * Ignore if id="root" (root is immortal).
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:213
↓ 24 callers
Function
dispatch
(action: Action)
examples/nextjs-notification-settings/hooks/use-toast.ts:131
↓ 24 callers
Function
getUniqueRoomSuffix
()
e2e/next-sandbox/test/multi.test.ts:20
↓ 24 callers
Function
hasPermissionAccess
( matrix: Partial<PermissionMatrix>, resource: PermissionResources, requiredAccess: RequiredAccessLevel
packages/liveblocks-core/src/permissions.ts:239
↓ 24 callers
Method
indexOf
* Returns the first index at which a given element can be found in the LiveList, or -1 if it is not present. * @param searchElement Element to loca
packages/liveblocks-core/src/crdts/LiveList.ts:1323
↓ 24 callers
Method
put_leased_session
* Create or update a leased session. * Note: This is a full replace operation - the caller is responsible for * merging/patching presence if nee
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:353
↓ 24 callers
Function
useSignal
( signal: ISignal<T>, selector?: (value: T) => V, isEqual?: (a: V, b: V) => boolean )
packages/liveblocks-react/src/use-signal.ts:14
↓ 23 callers
Function
cn
(...inputs: ClassValue[])
examples/nextjs-ai-calendar/lib/utils.ts:4
↓ 23 callers
Function
createSerializedList
( id: string, parentId: string, parentKey: string )
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.setup.ts:592
↓ 23 callers
Method
delete_leased_session
* Delete a leased session by session ID.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:358
↓ 23 callers
Method
get_snapshot
* Return a readable snapshot of the storage tree. * * @param lowMemory When true, the call site hints that the snapshot should * be optimized
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:243
↓ 23 callers
Function
listUpdate
( items: ToJson<TItem>[], updates: JsonLiveListUpdateDelta<TItem>[] )
packages/liveblocks-core/src/__tests__/_updatesUtils.ts:134
↓ 23 callers
Method
list_feed_messages
* List feed messages for a feed with pagination. * Messages are sorted by createdAt descending (newest first).
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:407
↓ 23 callers
Method
put
(key: string, value: Json)
packages/liveblocks-server/src/MetadataDB.ts:28
↓ 23 callers
Function
randomInt
(max: number)
e2e/next-sandbox/utils/index.tsx:42
↓ 23 callers
Function
useRoomInfo
* Returns room info from a given room ID. * * @example * const { info, error, isLoading } = useRoomInfo("room-id");
packages/liveblocks-react/src/liveblocks.tsx:2116
↓ 23 callers
Function
useUnreadInboxNotificationsCount
* Returns the number of unread inbox notifications for the current user. * * @example * const { count, error, isLoading } = useUnreadInboxNotificat
packages/liveblocks-react/src/liveblocks.tsx:2046
↓ 22 callers
Function
assert
(duration: number, expected: string)
packages/liveblocks-react-ui/src/primitives/__tests__/Duration.test.tsx:57
↓ 22 callers
Function
createObjectOp
( id: string, parentId: string, parentKey: string, data: Partial<JsonObject>, intent?: "set" | "push
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:431
↓ 22 callers
Function
createObjectOp
( id: string, parentId: string, parentKey: string, data: Partial<JsonObject>, intent?: "set" | "push
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:426
↓ 22 callers
Function
dummyCommentData
({ roomId, ...overrides }: AtLeast<CommentData, "roomId">)
packages/liveblocks-react/src/__tests__/_dummies.ts:47
↓ 22 callers
Function
editComment
(options: { threadId: string; commentId: string; body: CommentBody; metadata?: Patchable<CM>;
packages/liveblocks-core/src/room.ts:3683
↓ 22 callers
Function
pause
()
examples/nextjs-react-flow-ai/app/flowchart/agent/agent.ts:100
↓ 22 callers
Function
preparePages
( url: string, options?: PreparePagesOptions )
e2e/next-sandbox/test/utils.ts:142
↓ 22 callers
Method
verifyRequest
* Verifies a webhook request and returns the event
packages/liveblocks-node/src/webhooks.ts:32
↓ 21 callers
Function
bothPhases
( initialStorageFn: () => S, mutate: (root: LiveObject<S>) => void, opts: { convergeTimeoutMs?: number }
packages/liveblocks-core/e2e/storage-notification-reconnect.test.ts:137
↓ 21 callers
Function
createBasicStore
()
packages/liveblocks-redux/src/__tests__/index.test.ts:165
↓ 21 callers
Method
disconnect
* Call this method to disconnect from the current WebSocket. Is going to be * a no-op if there is no active connection.
packages/liveblocks-core/src/connection.ts:1070
↓ 21 callers
Function
iso
(s: string)
packages/liveblocks-core/src/lib/utils.ts:267
↓ 21 callers
Function
pickFrom
(array: readonly T[])
e2e/next-sandbox/test/utils.ts:343
↓ 21 callers
Method
render
* A function that returns a DOM element for the cursor. * @param user The user details object * @example * render: user => { * const curs
packages/liveblocks-react-tiptap/src/collaboration-caret/collaboration-caret.ts:55
↓ 20 callers
Function
ROOM_NOT_FOUND
(roomId: string)
tools/liveblocks-cli/src/dev-server/routes/rest-api.ts:76
↓ 20 callers
Function
batch
(callback: Callback<void>)
packages/liveblocks-core/src/lib/signals.ts:69
↓ 20 callers
Function
createBasicStore
()
packages/liveblocks-zustand/src/__tests__/index.test.ts:139
↓ 20 callers
Method
editThreadMetadata
({ roomId, metadata, threadId, }: { roomId: string; metadata: Patchable<TM>; threadI
packages/liveblocks-core/src/api-client.ts:172
↓ 20 callers
Method
every
* Tests whether all elements pass the test implemented by the provided function. * @param predicate Function to test for each element, taking two a
packages/liveblocks-core/src/crdts/LiveList.ts:1253
↓ 20 callers
Method
filter
(predicate: (value: T) => boolean)
packages/liveblocks-core/src/lib/SortedList.ts:231
↓ 20 callers
Function
isLiveNode
(value: unknown)
packages/liveblocks-core/src/crdts/liveblocks-helpers.ts:106
↓ 20 callers
Function
makeConfig
(tsconfigPath = "./tsconfig.json")
shared/eslint-config/index.js:12
↓ 20 callers
Method
put_meta
* Store `value` under `key`. Overwrite any existing value.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:282
↓ 20 callers
Method
resume
* Immediately sends all buffered messages to the server, in order, and * stops buffering any new messages.
packages/liveblocks-core/e2e/utils.ts:76
↓ 20 callers
Method
stop
()
examples/nextjs-ai-elements-realtime/components/ai-elements/prompt-input.tsx:1062
↓ 20 callers
Method
toString
()
packages/liveblocks-core/src/comments/comment-body.ts:387
↓ 20 callers
Function
tryCatch
( promise: PromiseLike<T> | (() => PromiseLike<T>) | (() => T) )
packages/liveblocks-server/src/lib/tryCatch.ts:62
↓ 20 callers
Function
useSyncStatus
(options?: UseSyncStatusOptions)
packages/liveblocks-react/src/liveblocks.tsx:1734
↓ 20 callers
Function
wait
(millis: number)
packages/liveblocks-core/src/lib/utils.ts:186
↓ 19 callers
Function
authorizeWebSocket
( req: Request )
tools/liveblocks-cli/src/dev-server/auth.ts:87
↓ 19 callers
Method
contains
(target: Point | Rect)
examples/nextjs-notion-like-ai-editor/app/utils/rect.ts:74
↓ 19 callers
Method
delete_child_key
* Delete a key from node `id`. Handle two cases: * * 1. If id is an OBJECT with `key` in its data: remove that data field. * 2. If a child ex
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:224
↓ 19 callers
Function
expectStorageAndState
( data: ToJson<S>, expectedNodeCount?: number )
packages/liveblocks-core/src/__tests__/immutable.test.ts:40
↓ 19 callers
Method
findRight
Finds the rightmost item that matches the predicate.
packages/liveblocks-core/src/lib/SortedList.ts:284
↓ 19 callers
Function
flushNowOrSoon
()
packages/liveblocks-core/src/room.ts:2706
↓ 19 callers
Method
getYDoc
(logger: Logger, docId: YDocId)
packages/liveblocks-server/src/YjsStorage.ts:67
↓ 19 callers
Method
has_child_at
* Return true iff a child node exists at (parentId, parentKey). Static data * keys on OBJECT nodes do not count—return false for those.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:177
↓ 19 callers
Function
setPresence
({ cursor, thinking, ttl, }: { cursor?: Point; thinking?: boolean; ttl?: number; }
examples/nextjs-react-flow-ai/app/flowchart/agent/agent.ts:77
↓ 19 callers
Function
useGroupInfo
* Returns group info from a given group ID. * * @example * const { info, error, isLoading } = useGroupInfo("group-id");
packages/liveblocks-react/src/liveblocks.tsx:2136
↓ 19 callers
Function
useMyPresence
()
packages/liveblocks-react/src/room.tsx:1132
↓ 18 callers
Function
api
( method: string, path: string, body?: unknown )
tools/liveblocks-cli/test/devserver/rest-api/storage-mutation.test.ts:29
↓ 18 callers
Function
assertThat
( value: unknown, guard: (v: unknown) => v is T )
packages/liveblocks-core/src/__tests__/sync-config.test.ts:9
↓ 18 callers
Function
auth
(req: NextApiRequest, res: NextApiResponse)
examples/nextjs-form/pages/api/liveblocks-auth.ts:14
↓ 18 callers
Function
cmpSemver
(a: string, b: string)
packages/liveblocks-server/src/lib/semver.ts:27
↓ 18 callers
Function
collectListDeltas
( batches: StorageUpdate[][], targetNode: object )
packages/liveblocks-core/e2e/storage-notification-reconnect.test.ts:211
↓ 18 callers
Method
createTicket
* Issues a Ticket with a new/unique actor ID * * IMPORTANT! As the caller of this function, you are responsible for * ensuring you trust the
packages/liveblocks-server/src/Room.ts:620
↓ 18 callers
Function
defaultLiveblocksVitestConfig
(options = {})
shared/vitest-config/index.js:7
↓ 18 callers
Method
find
Finds the leftmost item that matches the predicate.
packages/liveblocks-core/src/lib/SortedList.ts:262
↓ 18 callers
Method
from
(obj: JsonObject, config?: SyncConfig)
packages/liveblocks-core/src/crdts/LiveObject.ts:868
↓ 18 callers
Function
getOutputJson
(page: Page)
e2e/next-sandbox/test/comments/composer.test.ts:30
↓ 18 callers
Method
getRooms
* Returns a list of your rooms. The rooms are returned sorted by creation date, from newest to oldest. You can filter rooms by metadata, users accesse
packages/liveblocks-node/src/client.ts:1061
↓ 18 callers
Method
iter_children
* Iterate all children of a node. Each child is yielded as [parentKey, * childId]. Children will be yielded in their parent_key order.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:94
↓ 18 callers
Function
mergeObjUpdates
( batches: StorageUpdate[][], targetNode: object )
packages/liveblocks-core/e2e/storage-notification-reconnect.test.ts:231
↓ 18 callers
Function
nanoSleep
()
e2e/next-sandbox/test/utils.ts:339
↓ 18 callers
Method
off
(event: "sync", listener: (synced: boolean) => void)
packages/liveblocks-core/src/room.ts:1228
↓ 18 callers
Function
register
( id: string, parentId: string, parentKey: string, data: Json )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:414
↓ 18 callers
Function
register
( id: string, parentId: string, parentKey: string, data: Json )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:409
↓ 18 callers
Method
serializePermissions
@internal - For unit tests only
packages/liveblocks-node/src/Session.ts:154
↓ 18 callers
Function
useRenderCount
()
e2e/next-sandbox/utils/index.tsx:64
↓ 18 callers
Function
wsReq
(params: Record<string, string>, version = "v8")
tools/liveblocks-cli/test/devserver/auth.test.ts:171
↓ 17 callers
Function
DUMMY
( data: J, status?: number | undefined, message = "This is a dummy response." )
tools/liveblocks-cli/src/dev-server/responses.ts:40
↓ 17 callers
Method
add_feed_message
* Add a message to a feed. * The message must have id, createdAt, and updatedAt already set (handled by Room layer). * The feed must exist, othe
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:417
↓ 17 callers
Method
createFeedMessage
* Creates a new message in a feed. * @param params.roomId The room ID to create the feed message in. * @param params.feedId The feed ID to creat
packages/liveblocks-node/src/client.ts:3611
↓ 17 callers
Function
createRandomChat
(page: Page)
e2e/next-ai-kitchen-sink/test/test-helpers.ts:11
← previous
next →
201–300 of 8,448, ranked by callers