Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brianlovin/github-stars-notion-sync
/ functions
Functions
80 in github.com/brianlovin/github-stars-notion-sync
⨍
Functions
80
◇
Types & classes
21
↓ 13 callers
Function
rewriteRelativeUrls
(markdown: string, opts: RewriteOptions)
src/markdown.ts:40
↓ 11 callers
Function
ok
(s: string)
scripts/lib.ts:29
↓ 11 callers
Function
rowFor
(id: string, createdAt: string, pageId: string)
tests/upsert.test.ts:40
↓ 9 callers
Function
bail
(s: string)
scripts/lib.ts:31
↓ 7 callers
Function
buildRepoProps
(rec: FullRepoRecord, syncedAt: Date = new Date())
src/repo-props.ts:58
↓ 6 callers
Function
githubRequest
( path: string, opts: GitHubClientOptions, req: RequestOptions = {}, )
src/github.ts:48
↓ 6 callers
Function
runNtn
( args: string[], { capture = false, quiet = false }: { capture?: boolean; quiet?: boolean } = {}, )
scripts/lib.ts:133
↓ 6 callers
Function
step
(s: string)
scripts/lib.ts:27
↓ 5 callers
Function
archiveDuplicates
(notion: Client, dataSourceId: string, id: string)
src/upsert.ts:70
↓ 4 callers
Function
isAbsolute
(url: string)
src/markdown.ts:31
↓ 4 callers
Function
makeFakeNotion
(queryRows: QueryRow[])
tests/upsert.test.ts:17
↓ 4 callers
Function
normalize
(path: string)
src/markdown.ts:35
↓ 4 callers
Function
prompt
(rl: readline.Interface, question: string, fallback?: string)
scripts/lib.ts:35
↓ 4 callers
Function
queryRows
( notion: Client, dataSourceId: string, externalId?: string, )
src/query.ts:22
↓ 4 callers
Function
requireEnv
(name: string)
scripts/lib.ts:62
↓ 4 callers
Function
selectProp
(name: string | null | undefined)
src/repo-props.ts:39
↓ 4 callers
Method
stop
(finalMessage?: string)
scripts/lib.ts:110
↓ 4 callers
Method
wait
()
scripts/backfill.ts:57
↓ 3 callers
Function
fail
(s: string)
scripts/lib.ts:30
↓ 3 callers
Function
notionClient
(token: string)
scripts/lib.ts:70
↓ 3 callers
Function
numberProp
(n: number | null | undefined)
src/repo-props.ts:38
↓ 3 callers
Function
readDotenv
(path: string)
scripts/lib.ts:43
↓ 3 callers
Function
readExistingIds
( notion: Client, dataSourceId: string, )
src/upsert.ts:55
↓ 3 callers
Method
render
()
scripts/lib.ts:116
↓ 3 callers
Function
sanitizeOptionName
(raw: string)
src/repos-schema.ts:65
↓ 3 callers
Method
start
(label: string)
scripts/lib.ts:94
↓ 3 callers
Function
truncateMarkdown
( markdown: string, maxBytes: number, opts: RewriteOptions, )
src/markdown.ts:89
↓ 3 callers
Function
urlProp
(u: string | null | undefined)
src/repo-props.ts:32
↓ 2 callers
Function
buildEnv
* Single source of truth for the `.env` shape. Merge prior values with * fresh ones — anything blank stays blank (writeDotenv filters empties).
scripts/setup.ts:122
↓ 2 callers
Function
buildRepoIcon
(owner: string)
src/repo-props.ts:85
↓ 2 callers
Function
configFromEnv
(env: Record<string, string | undefined>)
scripts/backfill.ts:44
↓ 2 callers
Function
dateProp
(iso: string | null | undefined)
src/repo-props.ts:33
↓ 2 callers
Function
fetchFullRepo
( star: StarredRepoMinimal, opts: GitHubClientOptions, )
src/github.ts:286
↓ 2 callers
Function
getStarredPage
( page: number, perPage: number, opts: GitHubClientOptions, )
src/github.ts:123
↓ 2 callers
Function
ghOpts
()
src/tools.ts:30
↓ 2 callers
Function
labelFor
(p: number)
scripts/backfill.ts:80
↓ 2 callers
Function
multiSelectProp
(names: readonly string[])
src/repo-props.ts:43
↓ 2 callers
Function
parseIntOrNull
(raw: string | null)
src/github.ts:261
↓ 2 callers
Function
richTextProp
(s: string | null | undefined)
src/repo-props.ts:18
↓ 2 callers
Function
runBackfill
(cfg: BackfillConfig)
scripts/backfill.ts:66
↓ 2 callers
Function
sleep
(ms: number)
src/github.ts:267
↓ 2 callers
Function
splitFullName
(fullName: string)
src/tools.ts:75
↓ 2 callers
Function
upsertRepoRow
( notion: Client, rec: FullRepoRecord, opts: UpsertOptions, )
src/upsert.ts:30
↓ 2 callers
Function
writeDotenv
(path: string, vars: Record<string, string>)
scripts/lib.ts:53
↓ 1 callers
Function
BLOB_BASE
(o: string, r: string, b: string)
src/markdown.ts:28
↓ 1 callers
Function
RAW_BASE
(o: string, r: string, b: string)
src/markdown.ts:26
↓ 1 callers
Function
assertEnv
()
src/index.ts:39
↓ 1 callers
Function
buildBodyMarkdown
(rec: FullRepoRecord, maxBytes: number)
src/upsert.ts:93
↓ 1 callers
Function
buildRunAuditRow
( started: Date, page: number, pageItemCount: number, added: number, errorLog: ReadonlyArray<{ fullName:
src/index.ts:171
↓ 1 callers
Function
buildRunBody
( started: Date, page: number, pageItemCount: number, added: number, errorLog: ReadonlyArray<{ fullName:
src/index.ts:203
↓ 1 callers
Function
checkboxProp
(b: boolean)
src/repo-props.ts:37
↓ 1 callers
Function
createDatabase
(notion: Client, parent: any)
scripts/setup.ts:68
↓ 1 callers
Function
createPageWithMarkdown
( token: string, dataSourceId: string, properties: unknown, icon: unknown, markdown: string, )
src/upsert.ts:112
↓ 1 callers
Function
createViews
(notion: Client, databaseId: string, dataSourceId: string)
scripts/setup.ts:87
↓ 1 callers
Function
extractNotionId
(input: string)
scripts/setup.ts:52
↓ 1 callers
Function
first
(it: AsyncIterable<T>)
src/upsert.ts:88
↓ 1 callers
Function
getLanguages
( owner: string, repo: string, opts: GitHubClientOptions, )
src/github.ts:204
↓ 1 callers
Function
getReadme
( owner: string, repo: string, opts: GitHubClientOptions, )
src/github.ts:234
↓ 1 callers
Function
getRepo
( owner: string, repo: string, opts: GitHubClientOptions, )
src/github.ts:173
↓ 1 callers
Function
hasNtn
()
scripts/lib.ts:123
↓ 1 callers
Function
info
(s: string)
scripts/lib.ts:28
↓ 1 callers
Function
main
()
scripts/dedup.ts:14
↓ 1 callers
Function
main
()
scripts/setup.ts:150
↓ 1 callers
Function
ntnAuthed
()
scripts/lib.ts:127
↓ 1 callers
Function
parseRetryAfter
(raw: string | null)
src/github.ts:252
↓ 1 callers
Function
pickGithubToken
(env: Record<string, string | undefined>)
scripts/backfill.ts:36
↓ 1 callers
Function
promptGithubOAuth
(rl: readline.Interface, prior: Record<string, string>)
scripts/setup.ts:313
↓ 1 callers
Function
registerStarringTools
( worker: Worker, githubAuth: OAuthCapability, github: PacerHandle, )
src/tools.ts:25
↓ 1 callers
Function
reportFailures
(failures: ReadonlyArray<Failure>)
scripts/backfill.ts:124
↓ 1 callers
Function
resolveParent
(rl: readline.Interface, notion: Client, tokenIsPat: boolean)
scripts/setup.ts:294
↓ 1 callers
Function
sleep
(ms: number)
scripts/setup.ts:42
↓ 1 callers
Function
starRepo
(owner: string, repo: string, opts: GitHubClientOptions)
src/github.ts:223
↓ 1 callers
Function
titleLink
(text: string, url: string)
src/repo-props.ts:23
↓ 1 callers
Function
truncate
(s: string)
src/repo-props.ts:89
↓ 1 callers
Function
unstarRepo
(owner: string, repo: string, opts: GitHubClientOptions)
src/github.ts:228
↓ 1 callers
Method
update
(label: string)
scripts/lib.ts:105
↓ 1 callers
Function
viewPayloads
( databaseId: string, dataSourceId: string, propIds: Record<string, string>, )
src/repos-schema.ts:79
↓ 1 callers
Function
workerExists
()
scripts/lib.ts:146
Method
constructor
(private intervalMs: number)
scripts/backfill.ts:56
Function
request
(args: any)
tests/upsert.test.ts:20