Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Y80/bmm
/ functions
Functions
544 in github.com/Y80/bmm
⨍
Functions
544
◇
Types & classes
68
↓ 51 callers
Function
runAction
( actionRes: ActionResult<U, Data>, opts: { okMsg?: string errToast?: { title?: string; hidden?: b
src/utils/client.ts:13
↓ 28 callers
Function
getAuthedUserId
()
src/lib/auth/index.ts:38
↓ 13 callers
Function
usePageUtil
()
src/hooks/usePageUtil.ts:6
↓ 12 callers
Function
count
()
src/controllers/User.controller.ts:10
↓ 12 callers
Function
exitWithDbClose
(code = 0)
scripts/utils.mjs:128
↓ 12 callers
Function
fetchHtml
(url: string)
src/utils/fetch-html.ts:10
↓ 12 callers
Function
getBookmarkHost
(url: string)
src/utils/bookmark-host.ts:10
↓ 10 callers
Function
action
(...args: ActionArgs)
src/actions/make-action.ts:43
↓ 10 callers
Function
createPublicBookmark
(input: { name?: string; url?: string })
src/controllers/tests/bookmark-host-check.test.ts:46
↓ 9 callers
Method
canParse
(err: any)
src/lib/SqlXError.ts:64
↓ 9 callers
Function
createFetchNetworkErrorMessage
(error: unknown)
src/utils/http.ts:79
↓ 9 callers
Function
parseAiJsonObject
(text: string, schema: T)
src/lib/ai/json.ts:60
↓ 8 callers
Function
extractArticleFromHtml
(html: string, url: string)
src/utils/extract-article.ts:105
↓ 8 callers
Function
isFetchTimeoutError
(error: unknown)
src/utils/http.ts:71
↓ 8 callers
Function
limiter
(userId: UserId, tagId?: TagId)
src/controllers/UserTag.controller.ts:47
↓ 8 callers
Function
loadEnv
(options = {})
scripts/utils.mjs:73
↓ 7 callers
Function
createHtmlResponse
(body: Buffer, opts?: { status?: number headers?: Record<string, string> effectiveUrl?: string })
src/utils/fetch-html.test.ts:17
↓ 7 callers
Function
createValidPassword
()
src/controllers/tests/credentials.test.ts:8
↓ 7 callers
Function
declareLocalType
()
scripts/utils.mjs:139
↓ 7 callers
Function
mockFetchStatus
(status: number)
src/controllers/tests/bookmark-host-check.test.ts:37
↓ 7 callers
Function
testDbConnect
()
scripts/utils.mjs:22
↓ 6 callers
Function
getBookmarkHostKey
(url: string)
src/controllers/BookmarkHostCheck.controller.ts:65
↓ 6 callers
Function
getRawConfig
()
src/controllers/AiProvider.controller.ts:120
↓ 6 callers
Function
to
( promise: Promise<T>, errorExt?: object )
src/utils/index.ts:15
↓ 6 callers
Function
useSlug
()
src/hooks/useSlug.ts:22
↓ 6 callers
Function
useUserContext
()
src/app/user/ctx.tsx:23
↓ 6 callers
Function
userLimiter
(userId: UserId, bookmarkId?: BookmarkId)
src/controllers/UserBookmark.controller.ts:45
↓ 5 callers
Function
applyUrlProxy
(url: string, proxyUrl?: string | null)
src/utils/http.ts:27
↓ 5 callers
Function
createBookmarkName
(prefix = 'host-check')
src/controllers/tests/bookmark-host-check.test.ts:29
↓ 5 callers
Function
generateAiObject
( params: GenerateAiObjectParams<T> )
src/lib/ai/generateObject.ts:12
↓ 5 callers
Function
getHeader
(headers: Record<string, string>, name: string)
src/utils/http.ts:66
↓ 5 callers
Function
getPinyin
(word: string)
src/utils/index.ts:98
↓ 5 callers
Function
makeActionInput
( input: MakeActionOptionsWithHandler<Args, Data> )
src/actions/make-action.ts:28
↓ 5 callers
Function
normalizeText
(text = '')
src/utils/extract-article.ts:14
↓ 5 callers
Function
parseSlug
(slug?: string)
src/hooks/useSlug.ts:3
↓ 5 callers
Function
probeWebsiteIcon
( url: string, opts: { timeout?: number createImage?: () => ProbeImage } = {} )
src/utils/website-icon.ts:30
↓ 5 callers
Function
useAdminContext
()
src/app/admin/ctx.tsx:25
↓ 4 callers
Function
batchCreateTags
(num = 5)
tests/db/utils.ts:18
↓ 4 callers
Function
buildWebsiteIconCandidates
(url: string)
src/utils/website-icon.ts:20
↓ 4 callers
Function
checkEnvs
()
scripts/utils.mjs:105
↓ 4 callers
Function
createBookmarkFilterByKeyword
( table: typeof schema.publicBookmarks | typeof schema.userBookmarks, kw: string )
src/controllers/common.ts:4
↓ 4 callers
Function
getDisplayName
(user: SelectUser)
src/app/admin/user/list/page.tsx:52
↓ 4 callers
Function
getTagLinkAttrs
(tag: SelectTag)
src/utils/index.ts:128
↓ 4 callers
Function
pageSpace
(urlOrPath?: 'auto' | (string & {}) | null)
src/utils/index.ts:114
↓ 4 callers
Function
resetProbeState
()
src/components/BookmarkIconDropdown.tsx:160
↓ 4 callers
Function
robustUrl
(url?: string)
src/utils/index.ts:4
↓ 4 callers
Function
traverse
(nodes: CategoryNode['nodes'])
src/components/UploadPage/index.tsx:138
↓ 4 callers
Function
updateTags
(tags)
src/app/user/ctx.tsx:42
↓ 4 callers
Function
updateTags
(tags)
src/app/admin/ctx.tsx:44
↓ 4 callers
Function
useIsClient
()
src/hooks/useIsClient.ts:7
↓ 4 callers
Function
userLimiter
(userId: UserId, id?: number)
src/controllers/UserReadLater.controller.ts:26
↓ 4 callers
Function
validateItem
(key: keyof typeof invalidInfos)
src/components/BookmarkSlugPage.tsx:90
↓ 3 callers
Function
calcForegroundColor
(originColor: string, isDarkBg?: boolean)
src/utils/color.ts:7
↓ 3 callers
Function
cloneThirdPartyIconApiConfigs
(list: ThirdPartyIconApiConfig[])
src/components/BookmarkIconDropdown.tsx:86
↓ 3 callers
Function
createProbeImageFactory
( results: Record<string, 'load' | 'error' | 'pending'>, visited: string[] = [] )
src/utils/website-icon.test.ts:89
↓ 3 callers
Function
dbExecute
(sql = '')
scripts/utils.mjs:7
↓ 3 callers
Function
extractAiJsonText
(text: string)
src/lib/ai/extractJsonText.ts:3
↓ 3 callers
Function
fullSetBookmarkToTag
* 完全更新 PublicBookmarkToTag 表,使与 bId 关联关联的 tId 全是 tagIds 中的 id
src/controllers/UserBookmark.controller.ts:28
↓ 3 callers
Function
getArticleHost
(url: string)
src/app/user/read-later/ClientPage.tsx:57
↓ 3 callers
Function
getDefaultThirdPartyIconApiConfigs
()
src/components/BookmarkIconDropdown.tsx:90
↓ 3 callers
Function
getEmptyConfig
()
src/controllers/AiProvider.controller.ts:89
↓ 3 callers
Function
normalizeCharset
将常见编码名映射为 iconv-lite 支持的名称
src/utils/fetch-html.ts:86
↓ 3 callers
Function
onDone
(_result: boolean)
src/utils/website-icon.ts:101
↓ 3 callers
Function
renderWideCard
(content: ReactNode)
src/components/HomeBody/components/Banner.tsx:48
↓ 3 callers
Function
resolveThirdPartyIconApiSrc
(srcTemplate: string, host: string)
src/components/BookmarkIconDropdown.tsx:113
↓ 3 callers
Function
saveConfig
(nextConfig: EditableConfig, okMsg = '配置已保存')
src/app/admin/ai-provider/page.tsx:147
↓ 3 callers
Function
sort
(orders: { id: TagId; order: SelectTag['sortOrder'] }[])
src/controllers/UserTag.controller.ts:143
↓ 3 callers
Function
testTagNameOrPinyin
( input: string, tag: Partial<Pick<SelectTag, 'name' | 'pinyin'>> )
src/utils/index.ts:74
↓ 3 callers
Function
toEditableConfig
(config: SafeAiProvidersConfig)
src/app/admin/ai-provider/page.tsx:78
↓ 3 callers
Function
toSafeConfig
(config: AiProvidersConfig)
src/controllers/AiProvider.controller.ts:93
↓ 3 callers
Function
useHomePageContext
()
src/components/HomeBody/ctx.ts:12
↓ 3 callers
Function
useIsDark
()
src/hooks/useIsDark.ts:3
↓ 3 callers
Function
useOnClickTag
({ tags }: { tags: SelectTag[] })
src/hooks/useOnClickTag.ts:13
↓ 2 callers
Function
analyzeRelatedTags
(tag: string, tags: string[])
src/lib/ai/index.ts:34
↓ 2 callers
Function
appendHostCheckSummary
( item: T, check: CheckHostResult | null | undefined )
src/controllers/BookmarkHostCheck.controller.ts:105
↓ 2 callers
Function
backfillBookmarkTable
(db, table, label, getBookmarkHostKey)
scripts/backfill-bookmark-host-keys.mjs:7
↓ 2 callers
Function
changeColor
(tag: SelectTag)
src/components/TagListPage.tsx:153
↓ 2 callers
Function
changePageSize
(value: string)
src/components/ui/PaginationControls.tsx:27
↓ 2 callers
Function
cleanup
()
src/utils/website-icon.ts:86
↓ 2 callers
Function
cleanup
({ newline = true } = {})
scripts/reset-user-password.mjs:63
↓ 2 callers
Function
createBookmarkHostCheckFilter
( table: { hostKey: any }, status: BookmarkHostCheckFilterStatus )
src/controllers/BookmarkHostCheck.controller.ts:69
↓ 2 callers
Function
createFindManyFilters
(query: z.output<typeof findManyBookmarksSchema>)
src/controllers/PublicBookmark.controller.ts:42
↓ 2 callers
Function
createFindManyFilters
(query: z.output<typeof findManyBookmarksSchema>, userId: UserId)
src/controllers/UserBookmark.controller.ts:50
↓ 2 callers
Function
createTagFilterByKeyword
( table: typeof schema.publicTags | typeof schema.userTags, kw: string )
src/controllers/common.ts:17
↓ 2 callers
Function
createThirdPartyIconApiConfig
( value: Partial<Omit<ThirdPartyIconApiConfig, 'id'>> = {} )
src/components/BookmarkIconDropdown.tsx:70
↓ 2 callers
Function
createThirdPartyIconApiConfigId
()
src/components/BookmarkIconDropdown.tsx:80
↓ 2 callers
Function
detectWebsiteIcon
(targetUrl: string)
src/components/BookmarkIconDropdown.tsx:171
↓ 2 callers
Function
doFetch
(config: FetchRequestConfig)
src/utils/http.ts:41
↓ 2 callers
Function
findJsonObjectTexts
(text: string)
src/lib/ai/json.ts:7
↓ 2 callers
Function
fullSetBookmarkToTag
(bId: BookmarkId, tagIds: TagId[])
src/controllers/PublicBookmark.controller.ts:28
↓ 2 callers
Function
getInnerText
* 获取文档的 body.innerText * @param html 网站的 HTML 文档字符串 * @returns <body> 标签的 innerText,通常是在浏览器中用户实际能看到的所有文本
src/lib/ai/payload.ts:8
↓ 2 callers
Function
getOpenAICompatibleModel
()
src/lib/ai/providers.ts:6
↓ 2 callers
Function
getPageSizeCacheKey
(pathname: string)
src/components/TagListPage.tsx:37
↓ 2 callers
Function
getPageSizeCacheKey
(pathname: string)
src/components/BookmarkListPage.tsx:91
↓ 2 callers
Function
getRemainingTimeout
()
src/controllers/BookmarkHostCheck.controller.ts:133
↓ 2 callers
Function
getResponseBodyText
(response: FetchResponse)
src/controllers/BookmarkHostCheck.controller.ts:155
↓ 2 callers
Function
getSelectionKey
(selection: unknown)
src/components/BookmarkListPage.tsx:80
↓ 2 callers
Function
initGlobalData
(params: InitGlobalDataParams<T>)
src/utils/global-data.ts:14
↓ 2 callers
Method
isLibsqlError
(err: any)
src/lib/SqlXError.ts:60
↓ 2 callers
Method
isPgError
(err: any)
src/lib/SqlXError.ts:56
next →
1–100 of 544, ranked by callers