Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/campsite/campsite
/ functions
Functions
3,480 in github.com/campsite/campsite
⨍
Functions
3,480
◇
Types & classes
736
↓ 680 callers
Function
dataTaggedQueryKey
(key: unknown)
packages/types/generated.ts:4443
↓ 671 callers
Method
request
({ body, secure, path, type, query, format, baseUrl, cancelToken, ...param
packages/types/generated.ts:4370
↓ 576 callers
Function
cn
(...inputs: ClassValue[])
packages/ui/src/utils/cn.ts:4
↓ 510 callers
Method
map
(mapping, doc)
packages/editor/src/lib/recreate-transform/merge.js:72
↓ 436 callers
Function
useScope
()
apps/web/contexts/scope.tsx:75
↓ 162 callers
Method
push
(elt: Node)
packages/editor/src/utils/MarkdownParser.ts:118
↓ 140 callers
Function
onOpenChange
()
packages/ui/src/Popover/Popover.tsx:25
↓ 105 callers
Function
useGetCurrentUser
()
apps/web/hooks/useGetCurrentUser.ts:7
↓ 96 callers
Method
focus
(pos: 'start' | 'end' | 'restore' | 'start-newline' | MouseEvent)
apps/web/components/NoteEditor/NoteContent.tsx:51
↓ 83 callers
Function
useQueryNormalizer
()
apps/web/utils/normy/QueryNormalizerProvider.tsx:34
↓ 61 callers
Function
setTypedInfiniteQueriesData
(queryClient: TQueryClient, queryKey: TaggedQueryKey, updater: Updater<NoInfer<TPagedData>>)
apps/web/utils/queryClient.ts:181
↓ 61 callers
Function
useGetCurrentOrganization
({ enabled = true, select }: Props<T> = {})
apps/web/hooks/useGetCurrentOrganization.ts:15
↓ 60 callers
Function
createNormalizedOptimisticUpdate
({ queryNormalizer, type, id, update }: { queryNormalizer: ReturnType<typeof useQueryNormalizer> t
apps/web/utils/queryNormalization.ts:64
↓ 60 callers
Function
setValue
(key: keyof NewOrgSchema, value: any)
apps/web/components/NewOrganizationForm.tsx:134
↓ 59 callers
Function
setOpen
(open: boolean)
packages/ui/src/DropdownMenu/index.tsx:41
↓ 56 callers
Function
flattenInfiniteData
(data?: InfiniteData<DataPage<T>>)
apps/web/utils/flattenInfiniteData.ts:11
↓ 55 callers
Function
setTypedQueryData
( queryClient: TQueryClient, queryKey: TaggedQueryKey, updater: Updater<NoInfer<TInferredData>> )
apps/web/utils/queryClient.ts:169
↓ 47 callers
Function
useIsDesktopApp
()
packages/ui/src/hooks/useIsDesktopApp.ts:9
↓ 43 callers
Function
buildMenuItems
(items?: (MenuItem | undefined | false | null | '')[] | false)
packages/ui/src/Menu/utils.ts:7
↓ 41 callers
Function
setNormalizedData
({ queryNormalizer, type, id, update }: { queryNormalizer: ReturnType<typeof useQueryNormalizer> t
apps/web/utils/queryNormalization.ts:39
↓ 40 callers
Function
createNormalizer
(normalizerConfig?: NormalizerConfig, initialNormalizedData?: NormalizedData)
apps/web/utils/normy/core/create-normalizer.ts:50
↓ 35 callers
Function
isAlphaNumeric
(char: string)
apps/web/utils/isAlphaNumeric.ts:3
↓ 35 callers
Function
setTypedQueriesData
(queryClient: TQueryClient, queryKey: TaggedQueryKey, updater: Updater<NoInfer<TInferredData>>)
apps/web/utils/queryClient.ts:158
↓ 34 callers
Function
isKeyboardCharacter
(char: string | undefined | null)
apps/web/utils/isKeyboardCharacter.ts:3
↓ 34 callers
Method
parse
(text: string, markdownEnv: Object = {})
packages/editor/src/utils/MarkdownParser.ts:459
↓ 33 callers
Function
useBindCurrentUserEvent
(eventName: string, callback: Function, options?: Options)
apps/web/hooks/useBindCurrentUserEvent.ts:9
↓ 32 callers
Method
getBoundingClientRect
()
apps/web/components/SuggestionList.tsx:39
↓ 29 callers
Function
useCopyToClipboard
()
packages/ui/src/hooks/useCopyToClipboard.ts:11
↓ 28 callers
Function
getNormalizedData
({ queryNormalizer, type, id }: { queryNormalizer: ReturnType<typeof useQueryNormalizer> type: Key
apps/web/utils/queryNormalization.ts:92
↓ 27 callers
Function
createSampleProject
(partial: Partial<Project> = {})
apps/web/utils/__tests__/normy/react-query/queryNormalization.test.ts:14
↓ 25 callers
Function
useCurrentUserOrOrganizationHasFeature
(feature: UserFeatures & OrgFeatures)
apps/web/hooks/useCurrentUserOrOrganizationHasFeature.ts:4
↓ 23 callers
Function
createMarkdownParser
( schema: Schema, extensions: AnyExtension[], // WARNING: Provide JSDOM window and document objects to a
packages/editor/src/utils/createMarkdownParser.ts:61
↓ 23 callers
Function
fetch
* Fetch the document state from Campsite, or generate a new document from the existing * HTML if the document has never been edited before.
apps/sync-server/src/database.ts:53
↓ 23 callers
Function
useBreakpoint
(size: keyof typeof BREAKPOINTS, minMax: 'min' | 'max' = 'min')
packages/ui/src/hooks/useBreakpoint.ts:23
↓ 23 callers
Function
usePusherSocketIdHeader
()
apps/web/contexts/pusher.tsx:42
↓ 22 callers
Function
setupEditor
(content: string)
packages/editor/src/extensions/__tests__/SplitNearHardBreaks.test.ts:9
↓ 21 callers
Method
getHTML
()
apps/web/components/MarkdownEditor/index.tsx:98
↓ 21 callers
Function
useBindChannelEvent
(channel: Channel | null, eventName: string, callback: Function)
apps/web/hooks/useBindChannelEvent.ts:4
↓ 20 callers
Function
atomWithWebStorage
( key: string | string[], initialValue: T, storage = typeof window !== 'undefined' ? window.localStorage
apps/web/utils/atomWithWebStorage.ts:7
↓ 20 callers
Function
createMarkdownParserSpec
(spec: ParseSpec)
packages/editor/src/utils/createMarkdownParser.ts:59
↓ 20 callers
Function
getNoteExtensions
(options?: GetNoteExtensionsOptions)
packages/editor/src/note.ts:66
↓ 20 callers
Function
getTypedQueryData
(queryClient: TQueryClient, queryKey: TaggedQueryKey)
apps/web/utils/queryClient.ts:190
↓ 20 callers
Function
useViewerIsAdmin
({ enabled }: Props = {})
apps/web/hooks/useViewerIsAdmin.ts:11
↓ 18 callers
Function
iconForFavoritableType
(favoritableType: Favorite['favoritable_type'], size = 20)
apps/web/components/Sidebar/SidebarFavorite.tsx:18
↓ 18 callers
Function
useCanHover
()
apps/web/hooks/useCanHover.ts:4
↓ 18 callers
Function
useGetPost
(options?: Options)
apps/web/hooks/useGetPost.ts:20
↓ 18 callers
Function
useIsCommunity
()
apps/web/hooks/useIsCommunity.ts:5
↓ 17 callers
Function
trimHtml
(html: string)
apps/web/utils/trimHtml.ts:36
↓ 16 callers
Function
mockImageAttachment
({ url }: Pick<Attachment, 'url'>)
apps/web/components/AttachmentGrid/mockData.ts:144
↓ 15 callers
Function
containsOnlyReactions
(html: string)
apps/web/utils/reactions/containsOnlyReactions.ts:12
↓ 15 callers
Function
navigate
(destination: Url)
apps/web/components/CommandMenu/LocalCommandMenu.tsx:123
↓ 14 callers
Function
setQuery
(queryKey: string, queryData: Data)
apps/web/utils/normy/core/create-normalizer.ts:56
↓ 14 callers
Function
useCallbackRef
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a * prop or avoid re-executing effects when passed as
packages/ui/src/hooks/useCallbackRef.ts:10
↓ 14 callers
Function
usePostComposer
()
apps/web/components/PostComposer/hooks/usePostComposer.ts:63
↓ 14 callers
Function
useToken
()
apps/figma/src/core/tokens.ts:20
↓ 13 callers
Function
apiErrorToast
(error: Error)
apps/web/utils/apiErrorToast.ts:5
↓ 13 callers
Function
close
()
apps/web/components/CommandMenu/LocalCommandMenu.tsx:117
↓ 13 callers
Function
getDependencies
( data: Data, config = defaultConfig, usedKeys?: UsedKeys, path = '' )
apps/web/utils/normy/core/normalize.ts:27
↓ 13 callers
Function
isStandardReaction
(reaction: StandardReaction | SyncCustomReaction)
apps/web/utils/reactions/index.ts:13
↓ 13 callers
Function
normalize
(data: Data, config = defaultConfig)
apps/web/utils/normy/core/normalize.ts:62
↓ 13 callers
Function
useGetOrganizationMember
({ username, org, enabled = true }: { username?: string org?: string enabled?: boolean })
apps/web/hooks/useGetOrganizationMember.ts:8
↓ 13 callers
Function
useGetOrganizationMemberships
(options?: Props)
apps/web/hooks/useGetOrganizationMemberships.ts:13
↓ 13 callers
Function
useSyncedMembers
({ enabled = true, includeDeactivated = false, deactivated = false, excludeCurrentUser = false, only
apps/web/hooks/useSyncedMembers.ts:29
↓ 12 callers
Function
denormalize
( data: Data, normalizedData: { [key: string]: Data }, usedKeys: UsedKeys, path = '' )
apps/web/utils/normy/core/denormalize.ts:3
↓ 12 callers
Function
getMarkdownExtensions
(options?: GetMarkdownExtensionsOptions)
packages/editor/src/markdown.ts:53
↓ 12 callers
Function
removeFavorite
({ queryClient, scope, resourceId }: RemoveFavoriteOpts)
apps/web/utils/optimisticFavorites.ts:92
↓ 12 callers
Function
useCommand
()
packages/ui/src/Command/Command.tsx:182
↓ 12 callers
Function
useScopedStorage
(key: string, initialValue: T)
apps/web/hooks/useScopedStorage.ts:5
↓ 11 callers
Function
encodeCommandListSubject
( subject: Post | Note | Call | CommandListSubject, { href, pinned = false }: { href?: string; pinned?: bo
apps/web/utils/commandListSubject.ts:54
↓ 11 callers
Method
init
()
packages/editor/src/lib/recreate-transform/recreate.js:45
↓ 11 callers
Function
isMetaEnter
(evt: React.KeyboardEvent)
packages/ui/src/utils/isMetaEnter.ts:1
↓ 11 callers
Function
useGetProject
({ id, enabled = true, organization }: { id?: string enabled?: boolean organization?: PublicOrgani
apps/web/hooks/useGetProject.ts:12
↓ 11 callers
Function
useStoredState
( key: string | string[], initialValue: T, storage: Storage | undefined = typeof window !== 'undefined'
apps/web/hooks/useStoredState.ts:12
↓ 10 callers
Method
addText
(text: string)
packages/editor/src/utils/MarkdownParser.ts:124
↓ 10 callers
Function
getImmediateScrollableNode
(node: HTMLElement | null)
apps/web/utils/scroll.ts:6
↓ 10 callers
Function
groupByDate
(items: T[], getDate: (item: T) => string, sortOrder: 'asc' | 'desc' = 'desc')
apps/web/utils/groupByDate.ts:1
↓ 10 callers
Function
longTimestamp
(timestamp: string, overrides?: Intl.DateTimeFormatOptions)
apps/web/utils/timestamp.ts:10
↓ 10 callers
Function
onChange
(inView)
apps/web/components/Sidebar/SidebarLink.tsx:68
↓ 10 callers
Function
select
(index: number, debounce: boolean = true)
apps/web/components/InboxItems/InboxSplitView.tsx:284
↓ 10 callers
Function
setupEditor
(content: string)
packages/editor/src/extensions/__tests__/MediaGallery.test.ts:9
↓ 10 callers
Function
setupEditor
(content: string)
packages/editor/src/extensions/__tests__/PostNoteAttachment.test.ts:9
↓ 10 callers
Function
useGetNotifications
({ enabled = true, unreadOnly = false, organization, filter }: Props = {})
apps/web/hooks/useGetNotifications.ts:17
↓ 9 callers
Method
apply
(user, index)
packages/editor/src/lib/recreate-transform/merge.js:133
↓ 9 callers
Function
createQueryNormalizer
( queryClient: QueryClient, normalizerConfig: Omit<NormalizerConfig, 'structuralSharing'> & { normaliz
apps/web/utils/normy/react-query/create-query-normalizer.ts:13
↓ 9 callers
Function
getChangelog
()
apps/site/lib/changelog.ts:23
↓ 9 callers
Function
getGroupDateHeading
(date: string)
apps/web/utils/getGroupDateHeading.ts:1
↓ 9 callers
Function
isNotification
(item: Notification | FollowUp)
apps/web/components/InboxItems/utils/index.ts:8
↓ 9 callers
Method
top
()
packages/editor/src/utils/MarkdownParser.ts:114
↓ 9 callers
Function
useGetUnreadNotificationsCount
()
apps/web/hooks/useGetUnreadNotificationsCount.ts:40
↓ 9 callers
Function
useIsSplitViewAvailable
()
apps/web/components/SplitView/hooks/useIsSplitViewAvailable.ts:9
↓ 9 callers
Function
usePusher
()
apps/web/contexts/pusher.tsx:40
↓ 9 callers
Function
useUpdatePreference
()
apps/web/hooks/useUpdatePreference.ts:7
↓ 8 callers
Function
desktopJoinCall
(url: string)
packages/ui/src/Link/utils.ts:48
↓ 8 callers
Function
getExpiration
(expiresIn: OrganizationsOrgSlugMembersMeStatusesPostRequest['expiration_setting'])
apps/web/hooks/useCreateStatus.ts:13
↓ 8 callers
Function
getFileMetadata
( attachment: Partial< Pick<Attachment, 'name' | 'file_type' | 'url' | 'download_url' | 'origami' | 'pri
apps/web/utils/getFileMetadata.ts:7
↓ 8 callers
Function
next
(e: KeyboardEvent, mod: 'none' | 'meta' | 'alt' = 'none')
packages/ui/src/Command/Command.tsx:602
↓ 8 callers
Function
prependNewPost
(post: Post)
apps/web/hooks/useCreatePost.ts:10
↓ 8 callers
Function
resolve
()
apps/web/utils/reactions/mutations.ts:22
↓ 8 callers
Function
scrollImmediateScrollableNodeToBottom
(node: HTMLElement | null)
apps/web/utils/scroll.ts:25
↓ 8 callers
Function
signinUrl
({ inviteToken, from }: UrlProps = {})
apps/web/utils/queryClient.ts:13
next →
1–100 of 3,480, ranked by callers