Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aspen-cloud/triplit
/ functions
Functions
1,840 in github.com/aspen-cloud/triplit
⨍
Functions
1,840
◇
Types & classes
348
↓ 16 callers
Method
startSession
* Starts a new sync session with the provided token * * @param token - The token to start the session with * @param connect - If true, the cl
packages/client/src/client/triplit-client.ts:1077
↓ 15 callers
Function
clientSchemaAttributes
( client: TriplitClient<M> )
packages/integration-tests/tests/transport-tests.spec.ts:58
↓ 15 callers
Method
error
(message: any, ...args: any[])
packages/server/src/logger.ts:52
↓ 15 callers
Function
sessionRolesAreEquivalent
( a: SessionRole[] | undefined, b: SessionRole[] | undefined )
packages/db/src/session.ts:77
↓ 15 callers
Method
status
()
packages/db/src/kv-store/transactions/memory-tx.ts:34
↓ 14 callers
Function
bold
(text: string)
packages/cli/src/log-handlers/dev-server-logs.ts:31
↓ 14 callers
Method
getSchema
()
packages/client/src/client/triplit-client.ts:256
↓ 14 callers
Function
hashQuery
(params: Q)
packages/db/src/query/hash-query.ts:37
↓ 14 callers
Function
parseAndValidateToken
( token: string | null | undefined, triplitSecret: string | undefined, // Signing secret for triplit token
packages/server-core/src/token.ts:49
↓ 14 callers
Function
pause
(delay: number)
packages/db/test/utils/test-kv-store.ts:169
↓ 13 callers
Function
compareValue
(a: Value, b: Value)
packages/db/src/codec.ts:229
↓ 13 callers
Function
createServerRequesterMiddleware
({ destructive, }: { destructive: boolean; })
packages/cli/src/middleware/add-server-requester.ts:8
↓ 13 callers
Method
scanValues
(options: ScanOptions, scope?: Tuple)
packages/db/src/types.ts:118
↓ 13 callers
Method
updateViews
(storeChanges: StoreChanges<C>)
packages/db/test/ivm.prototype.spec.ts:362
↓ 13 callers
Function
wrapSchema
(definition: any)
packages/db/test/schema-checking.spec.ts:12
↓ 12 callers
Method
SubqueryMany
(alias: any, subquery: any)
packages/db/src/query/query-builder.ts:293
↓ 12 callers
Method
applyChanges
( tx: KVStoreTransaction, buffer: DBChanges, options: ApplyChangesOptions )
packages/db/src/types.ts:49
↓ 12 callers
Method
applyChangesWithTimestamp
( tx: KVStoreTransaction, buffer: DBChanges, timestamp: Timestamp, options: ApplyChangesOption
packages/db/src/types.ts:40
↓ 12 callers
Method
errorResponse
(e: unknown, options?: { fallbackMessage?: string })
packages/server-core/src/session.ts:277
↓ 12 callers
Function
getVariableComponents
(variable: string)
packages/db/src/variables.ts:48
↓ 12 callers
Function
isTraversalRelationship
( dataType: SchemaTraversalData )
packages/db/src/schema/utilities.ts:154
↓ 12 callers
Method
lockAndSwitchBuffers
()
packages/db/src/types.ts:93
↓ 12 callers
Method
onSyncMessageReceived
(callback: OnMessageReceivedCallback)
packages/client/src/sync-engine.ts:515
↓ 12 callers
Function
seedMessagingData
(db: DB<typeof messagingSchema.collections>)
packages/db/test/permissions.spec.ts:145
↓ 12 callers
Method
start
()
packages/server-core/src/sync-connection.ts:97
↓ 12 callers
Function
testSubscribeWithPagination
(client: TriplitClient<M> | WorkerClient<M>, query: Q, steps: Steps<M, Q>)
packages/client/test/client.spec.ts:62
↓ 11 callers
Function
QUERY_INPUT_TRANSFORMERS
()
packages/db/src/query/query-builder.ts:692
↓ 11 callers
Function
createDB
( options: DBOptions<M, E> & { failOnBackwardsIncompatibleChange?: boolean } )
packages/db/src/db.ts:978
↓ 11 callers
Method
freeStatement
* If a statement is busy, we will prepare a new one to use temporarily * A statement may be busy if it is being iterated over (and we are performin
packages/db/src/kv-store/storage/sqlite.ts:128
↓ 11 callers
Method
freeStatement
(statement: Statement)
packages/db/src/kv-store/storage/bun-sqlite.ts:109
↓ 11 callers
Method
getUnlockedBuffer
()
packages/db/src/types.ts:95
↓ 11 callers
Method
onSyncMessageSent
(callback: OnMessageSentCallback)
packages/client/src/sync-engine.ts:522
↓ 11 callers
Method
subscribeWithStatus
( query: Q, callback: (state: SubscriptionSignalPayload<M, Q>) => void, options?: Partial<Subscrip
packages/client/src/client/triplit-client.ts:596
↓ 11 callers
Function
useQuery
( client: TriplitClient<M> | WorkerClient<M>, query: Q, options?: Partial<EnabledSubscriptionOptions> )
packages/react/src/use-query.ts:85
↓ 10 callers
Function
getRolesFromSession
( schema: S | undefined, token: Record<string, any> )
packages/db/src/session.ts:55
↓ 10 callers
Method
info
(message: any, ...args: any[])
packages/server/src/logger.ts:44
↓ 10 callers
Function
mergeDBChanges
( target: DBChanges, ...sources: DBChanges[] )
packages/db/src/memory-write-buffer.ts:54
↓ 10 callers
Function
normalizeSessionVars
(variables: Record<string, any>)
packages/db/src/session.ts:112
↓ 9 callers
Method
After
(value: AfterInput<M, CN>, inclusive?: boolean)
packages/db/src/query/query-builder.ts:131
↓ 9 callers
Function
NotAdminResponse
()
packages/server-core/src/session.ts:39
↓ 9 callers
Method
SubqueryOne
(alias: any, subquery: any)
packages/db/src/query/query-builder.ts:248
↓ 9 callers
Method
cancel
()
packages/db/src/types.ts:136
↓ 9 callers
Function
dim
(text: string)
packages/cli/src/log-handlers/dev-server-logs.ts:27
↓ 9 callers
Function
isTriplitClient
( client: TriplitClient<M> | WorkerClient<M> )
packages/integration-tests/tests/sessions.spec.ts:50
↓ 9 callers
Method
onEntitySyncError
( collection: string, entityId: string, callback: EntitySyncErrorCallback )
packages/client/src/sync-engine.ts:540
↓ 9 callers
Method
onSessionError
(callback: OnSessionErrorCallback)
packages/client/src/sync-engine.ts:558
↓ 9 callers
Method
schema
()
packages/client/src/http-client/http-client.ts:42
↓ 9 callers
Method
sendMessage
( messageType: Msg['type'], payload: Msg['payload'] )
packages/server-core/src/sync-connection.ts:131
↓ 9 callers
Method
sendRequest
( uri: string, method: string, body: any, options: { isFile?: boolean } = { isFile: false }
packages/client/src/http-client/http-client.ts:58
↓ 9 callers
Function
testDBAndTransaction
( // should return a new instance if you are performing writes in your test dbFactory: () => DB<M> | Promi
packages/db/test/utils/db-helpers.ts:4
↓ 9 callers
Method
updateSessionToken
* Attempts to update the token of the current session, which re-use the current connection. If the new token does not have the same roles as the curre
packages/client/src/sync-engine.ts:289
↓ 8 callers
Method
Vars
(value: Record<string, any>)
packages/db/src/query/query-builder.ts:147
↓ 8 callers
Method
checkTxStatusBeforeOperation
()
packages/db/src/kv-store/transactions/memory-tx.ts:136
↓ 8 callers
Function
closeSocket
( socket: WSContext, reason: ServerCloseReason, code?: number )
packages/server/src/hono.ts:582
↓ 8 callers
Function
closeSocket
(socket: WS, reason: ServerCloseReason, code?: number)
packages/server/src/legacy-node-server.ts:214
↓ 8 callers
Function
compare
(a: K, b: K)
packages/db/src/codec.ts:36
↓ 8 callers
Method
date
()
packages/db/bench/lazy-objects.ts:38
↓ 8 callers
Function
decodeJwt
(token: unknown)
packages/client/src/token.ts:21
↓ 8 callers
Method
getChangesForCollection
( storage: KVStoreOrTransaction, collectionName: CollectionName )
packages/db/src/types.ts:79
↓ 8 callers
Function
isBooleanFilter
( filter: WhereFilter | PreparedWhereFilter )
packages/db/src/filters.ts:332
↓ 8 callers
Method
isEmpty
(storage: KVStoreOrTransaction)
packages/db/src/types.ts:88
↓ 8 callers
Method
loadMore
(pageSize?: number)
packages/client/src/worker-client/worker-client.ts:391
↓ 8 callers
Method
nextPage
()
packages/client/src/worker-client/worker-client.ts:359
↓ 8 callers
Method
subscribe
* Subscribes to a client query and receives the results asynchronously. * * @param query - The client query to subscribe to. * @param onResul
packages/client/src/client/triplit-client.ts:518
↓ 8 callers
Function
toast
({ ...props }: Toast)
packages/console/src/hooks/useToast.tsx:139
↓ 8 callers
Method
unsubscribe
()
packages/client/src/worker-client/worker-client.ts:353
↓ 8 callers
Function
withWebsocketStub
( testFn: TestFunction<{ openSockets: Set<WebSocket> }> )
packages/integration-tests/utils/websockets.ts:3
↓ 7 callers
Function
Number
(opts: BuiltInFlagOpts)
packages/cli/src/flags.ts:35
↓ 7 callers
Function
and
(where: W)
packages/db/src/filters.ts:441
↓ 7 callers
Function
decodeToken
(token: unknown, claimsPath?: string)
packages/client/src/token.ts:5
↓ 7 callers
Function
decodeTuple
(str: string, options?: EncodingOptions)
packages/db/src/codec.ts:167
↓ 7 callers
Function
deepObjectAssign
( target: DeepMergeable, ...sources: DeepMergeable[] )
packages/db/src/utils/deep-merge.ts:3
↓ 7 callers
Function
diffEnumAttributes
( tx: DBTransaction<any>, original: any, different: any )
packages/db/test/schema-checking.spec.ts:390
↓ 7 callers
Method
fetch
( query: Q )
packages/client/src/http-client/http-client.ts:91
↓ 7 callers
Function
filterStatementIteratorFlat
(statements: any)
packages/db/src/filters.ts:517
↓ 7 callers
Function
getSchemaDiffIssues
( fetchHandler: FetchHandler, schemaDiff: Diff[] )
packages/db/src/schema/diff-issues.ts:396
↓ 7 callers
Function
getTriplitDependencies
(location)
scripts/generate-manual-dependency-changeset.js:14
↓ 7 callers
Function
green
(text: string)
packages/cli/src/log-handlers/dev-server-logs.ts:11
↓ 7 callers
Method
handleRequest
( route: Route, maybeParams: any, token: ProjectJWT )
packages/server-core/src/triplit-server.ts:99
↓ 7 callers
Function
hashAfter
(after: QueryAfter)
packages/db/src/query/hash-query.ts:195
↓ 7 callers
Method
insertTriples
(...params: any[])
packages/server-core/src/session.ts:207
↓ 7 callers
Function
isOptional
(type: DataType)
packages/db/src/schema/data-types/type.ts:514
↓ 7 callers
Method
overrideSchema
( newSchema: DBSchema, options?: { failOnBackwardsIncompatibleChange?: boolean } )
packages/db/src/db.ts:604
↓ 7 callers
Function
parseIssue
( issueContext: Awaited<ReturnType<typeof getSchemaDiffIssues>>[number] )
packages/console/src/utils/schema.ts:203
↓ 7 callers
Method
prevPage
()
packages/client/src/worker-client/worker-client.ts:362
↓ 7 callers
Method
registerHandler
( handler: LogHandler, options?: { exclusive?: boolean } )
packages/logger/src/index.ts:109
↓ 7 callers
Function
safeSchemaEdit
( client: TriplitClient<any>, callback: (tx: DBTransaction<any>) => Promise<void> )
packages/console/src/utils/schema.ts:153
↓ 7 callers
Method
sendErrorResponse
( originalMessageType: string | undefined, error: TriplitError, metadata?: any )
packages/server-core/src/sync-connection.ts:154
↓ 7 callers
Function
testSemver
(versionA, versionB)
scripts/test-semver.js:3
↓ 7 callers
Function
validateBaseDataTypeConfig
(type: DataType)
packages/db/src/schema/validation.ts:233
↓ 6 callers
Method
_log
* Catch all internal log method to dispatch to log handlers
packages/logger/src/index.ts:151
↓ 6 callers
Function
captureException
(e: any)
packages/server/src/legacy-node-server.ts:83
↓ 6 callers
Function
captureException
(e: any)
packages/server/src/server.ts:31
↓ 6 callers
Function
createSchemaEntriesIterator
( path: Iterable<string>, schema: Models, collectionName: string )
packages/db/src/schema/utilities.ts:78
↓ 6 callers
Method
current
()
packages/db/src/hybrid-clock.ts:23
↓ 6 callers
Function
encodedValueMismatchMessage
(type: string, value: any)
packages/db/src/schema/data-types/type.ts:518
↓ 6 callers
Function
expectSnapshotToEqualSubscriptionCall
()
packages/db/test/subscriptions.spec.ts:876
↓ 6 callers
Method
fireConnectionChangeHandlers
(session: SyncSession | undefined)
packages/client/src/sync-engine.ts:1089
↓ 6 callers
Function
getDisabledSubscriptionState
()
packages/client/src/subscription-utils.ts:14
↓ 6 callers
Method
getSchema
(params: { format?: 'json' })
packages/server-core/src/session.ts:95
← previous
next →
101–200 of 1,840, ranked by callers