Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/transitive-bullshit/nextjs-notion-starter-kit
/ functions
Functions
73 in github.com/transitive-bullshit/nextjs-notion-starter-kit
⨍
Functions
73
◇
Types & classes
15
↓ 22 callers
Function
getSiteConfig
( key: string, defaultValue?: TDefault )
lib/get-config-value.ts:27
↓ 7 callers
Function
getEnv
( key: string, defaultValue?: string | T, env = process.env )
lib/get-config-value.ts:52
↓ 5 callers
Function
mapImageUrl
(url: string | undefined, block: Block)
lib/map-image-url.ts:6
↓ 4 callers
Function
getPage
(pageId: string)
lib/notion.ts:45
↓ 4 callers
Function
getSiteMap
()
lib/get-site-map.ts:17
↓ 3 callers
Function
getCanonicalPageId
( pageId: string, recordMap: ExtendedRecordMap, { uuid = true }: { uuid?: boolean } = {} )
lib/get-canonical-page-id.ts:9
↓ 3 callers
Function
getRequiredSiteConfig
(key: string)
lib/get-config-value.ts:40
↓ 3 callers
Function
useDarkMode
()
lib/use-dark-mode.ts:3
↓ 2 callers
Function
cleanPageUrlMap
( pageUrlMap: PageUrlOverridesMap, { label }: { label: string } )
lib/config.ts:173
↓ 2 callers
Function
createUrl
(path: string, searchParams: URLSearchParams)
lib/map-page-url.ts:41
↓ 2 callers
Function
getCanonicalPageUrl
(site: Site, recordMap: ExtendedRecordMap)
lib/map-page-url.ts:28
↓ 2 callers
Function
getCompatibleImageUrl
( url: string | undefined | null, fallbackUrl: string | undefined | null )
pages/api/social-image.tsx:287
↓ 2 callers
Function
getSocialImageUrl
(pageId: string | undefined)
lib/get-social-image-url.ts:3
↓ 2 callers
Function
mapPageUrl
(site: Site, recordMap: ExtendedRecordMap, searchParams: URLSearchParams)
lib/map-page-url.ts:13
↓ 2 callers
Function
resolveNotionPage
( domain: string, rawPageId?: string )
lib/resolve-notion-page.ts:11
↓ 1 callers
Function
bootstrap
()
lib/bootstrap-client.ts:1
↓ 1 callers
Function
createSitemap
(siteMap: SiteMap)
pages/sitemap.xml.tsx:34
↓ 1 callers
Function
getNotionPageInfo
({ pageId }: { pageId: string })
pages/api/social-image.tsx:167
↓ 1 callers
Function
getPageTweet
( block: types.Block, recordMap: types.ExtendedRecordMap )
lib/get-page-tweet.ts:5
↓ 1 callers
Function
getPreviewImageMap
( recordMap: ExtendedRecordMap )
lib/preview-images.ts:16
↓ 1 callers
Function
getTweetsMap
( recordMap: ExtendedRecordMap )
lib/get-tweets.ts:10
↓ 1 callers
Function
invertPageUrlOverrides
( pageUrlOverrides: PageUrlOverridesMap )
lib/config.ts:208
↓ 1 callers
Function
isUrlReachable
( url: string | undefined | null )
pages/api/social-image.tsx:272
↓ 1 callers
Function
search
(params: SearchParams)
lib/notion.ts:73
↓ 1 callers
Function
siteConfig
(config: SiteConfig)
lib/site-config.ts:44
Function
App
({ Component, pageProps }: AppProps)
pages/_app.tsx:35
Function
ErrorPage
({ statusCode }: { statusCode: number })
components/ErrorPage.tsx:4
Function
FooterImpl
()
components/Footer.tsx:13
Function
GitHubIcon
()
lib/icons/github.tsx:1
Function
GitHubShareButton
()
components/GitHubShareButton.tsx:3
Function
LikeIcon
()
lib/icons/like.tsx:1
Function
LinkedInIcon
()
lib/icons/linkedin.tsx:1
Function
Loading
()
components/Loading.tsx:4
Function
LoadingIcon
(props: any)
components/LoadingIcon.tsx:5
Function
MoonIcon
()
lib/icons/moon.tsx:1
Function
NotionDomainDynamicPage
(props: PageProps)
pages/[pageId].tsx:55
Function
NotionDomainPage
(props: PageProps)
pages/index.tsx:20
Function
NotionPage
({ site, recordMap, error, pageId }: types.PageProps)
components/NotionPage.tsx:204
Function
NotionPageHeader
({ block }: { block: types.CollectionViewPageBlock | types.PageBlock })
components/NotionPageHeader.tsx:35
Function
OGImage
( req: NextApiRequest, res: NextApiResponse )
pages/api/social-image.tsx:22
Function
Page404
({ site, pageId, error }: types.PageProps)
components/Page404.tsx:6
Function
PageActions
({ tweet }: { tweet: string })
components/PageActions.tsx:9
Function
PageAside
({ block, recordMap, isBlogPost }: { block: Block recordMap: ExtendedRecordMap isBlogPost: boolean
components/PageAside.tsx:8
Function
PageHead
({ site, title, description, pageId, image, url, isBlogPost }: types.PageProps & { title?: str
components/PageHead.tsx:7
Function
PageSocial
()
components/PageSocial.tsx:72
Function
RetweetIcon
()
lib/icons/retweet.tsx:1
Function
SunIcon
()
lib/icons/sun.tsx:1
Function
ToggleThemeButton
()
components/NotionPageHeader.tsx:13
Function
Tweet
({ id }: { id: string })
components/NotionPage.tsx:137
Function
TwitterIcon
()
lib/icons/twitter.tsx:1
Function
createPreviewImage
( url: string, { cacheKey }: { cacheKey: string } )
lib/preview-images.ts:41
Function
getAllPagesImpl
( rootNotionPageId: string, rootNotionSpaceId?: string, { maxDepth = 1 }: { maxDepth?: number
lib/get-site-map.ts:43
Function
getMastodonHandle
()
lib/config.ts:67
Function
getPage
(pageId: string, opts?: any)
lib/get-site-map.ts:33
Function
getServerSideProps
({ req, res })
pages/robots.txt.tsx:5
Function
getServerSideProps
({ req, res })
pages/feed.tsx:17
Function
getServerSideProps
({ req, res })
pages/sitemap.xml.tsx:7
Function
getStaticPaths
()
pages/[pageId].tsx:27
Function
getStaticProps
( context )
pages/[pageId].tsx:9
Function
getStaticProps
()
pages/index.tsx:6
Function
getTweetImpl
(tweetId: string)
lib/get-tweets.ts:30
Function
noop
()
pages/robots.txt.tsx:45
Function
noop
()
pages/feed.tsx:101
Function
noop
()
pages/sitemap.xml.tsx:57
Function
oembed
({ url, maxWidth, maxHeight, dark = false }: { url: string maxWidth?: number maxHeight?: number
lib/oembed.ts:6
Function
onRouteChangeComplete
()
pages/_app.tsx:39
Function
pageAcl
({ site, recordMap, pageId }: PageProps)
lib/acl.ts:5
Function
propertyDateValue
( { data, schema, pageHeader }: any, defaultFn: () => React.ReactNode )
components/NotionPage.tsx:161
Function
propertyLastEditedTimeValue
( { block, pageHeader }: any, defaultFn: () => React.ReactNode )
components/NotionPage.tsx:148
Function
propertyTextValue
( { schema, pageHeader }: any, defaultFn: () => React.ReactNode )
components/NotionPage.tsx:178
Method
render
()
pages/_document.tsx:4
Function
searchNotion
( req: NextApiRequest, res: NextApiResponse )
pages/api/search-notion.ts:6
Function
searchNotionImpl
( params: types.SearchParams )
lib/search-notion.ts:12