Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akuya-ekorot/notebooklm-mastra
/ functions
Functions
87 in github.com/akuya-ekorot/notebooklm-mastra
⨍
Functions
87
◇
Types & classes
27
↓ 68 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 4 callers
Function
useSidebar
()
src/components/ui/sidebar.tsx:41
↓ 3 callers
Function
formatBytes
( bytes: number, opts: { decimals?: number; sizeType?: "accurate" | "normal"; } = {}, )
src/lib/utils.ts:15
↓ 2 callers
Function
isFileWithPreview
(file: File)
src/components/custom/file-uploader.tsx:310
↓ 2 callers
Function
pollJobStatus
(jobId: string)
src/lib/submit-parse-job.ts:29
↓ 2 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
src/hooks/use-callback-ref.ts:11
↓ 1 callers
Method
checkStatus
* Checks the status of a podcast generation job
src/lib/play-ai.ts:84
↓ 1 callers
Function
fetchNavbarName
( notebookId: string, sessionId: string, )
src/db/queries/notebooks/index.ts:14
↓ 1 callers
Function
fetchNotebookSummary
(notebookId: string)
src/db/queries/notebooks/index.ts:58
↓ 1 callers
Function
fetchSourceSummariesStatus
(notebookId: string)
src/db/queries/notebooks/index.ts:70
↓ 1 callers
Function
formatDate
(date: Date)
src/lib/utils.ts:8
↓ 1 callers
Method
generatePodcast
* Triggers podcast generation
src/lib/play-ai.ts:56
↓ 1 callers
Function
getJobResultsInMarkdown
(jobId: string)
src/lib/submit-parse-job.ts:47
↓ 1 callers
Function
getStepProgress
(stepIndex: number)
src/components/custom/status-card.tsx:92
↓ 1 callers
Function
handleDeleteNotebook
(notebookId: string)
src/components/custom/notebooks-view.tsx:38
↓ 1 callers
Function
onRemove
(index: number)
src/components/custom/file-uploader.tsx:171
↓ 1 callers
Function
processEvents
()
src/hooks/use-steps.tsx:77
↓ 1 callers
Function
submitParseJob
(file: File)
src/lib/submit-parse-job.ts:6
↓ 1 callers
Function
useControllableState
({ prop, defaultProp, onChange = () => {}, }: UseControllableStateParams<T>)
src/hooks/use-controllable-state.tsx:17
↓ 1 callers
Function
useIsMobile
()
src/hooks/use-mobile.tsx:5
↓ 1 callers
Function
usePollForParsingJobStatus
({ jobId, notebookId, processingStatus, sourceId, }: { jobId: string; notebookId: string; proces
src/hooks/source-processing-hooks/index.ts:7
↓ 1 callers
Function
useProcessSource
({ jobId, notebookId, processingStatus, sourceId, sourceName, }: { jobId: string; notebookId: st
src/hooks/source-processing-hooks/index.ts:58
↓ 1 callers
Function
useSessionStorage
( key: string, initialValue: T, )
src/hooks/use-session-storage.ts:11
↓ 1 callers
Function
useSteps
({ audioUrl, notebookId, }: { audioUrl: string | undefined; notebookId: string; })
src/hooks/use-steps.tsx:63
↓ 1 callers
Function
useSummarizeSource
({ jobId, notebookId, processingStatus, sourceId, }: { jobId: string; notebookId: string; proces
src/hooks/source-processing-hooks/index.ts:37
↓ 1 callers
Function
useUncontrolledState
({ defaultProp, onChange, }: Omit<UseControllableStateParams<T>, "prop">)
src/hooks/use-controllable-state.tsx:48
↓ 1 callers
Method
waitForCompletion
* Polls for job completion
src/lib/play-ai.ts:107
Function
Badge
({ className, variant, ...props }: BadgeProps)
src/components/ui/badge.tsx:30
Function
ClientOnly
({ children })
src/components/custom/client-only.tsx:3
Function
CustomSidebar
({ notebookId, sessionId, })
src/components/custom/custom-sidebar.tsx:21
Function
CustomSidebarHeader
({ sessionId }: { sessionId: string })
src/components/custom/custom-sidebar-header.tsx:6
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
Function
Feature
({ icon: Icon, text, link, textAfter, })
src/components/custom/home-page/feature.tsx:31
Function
FileCard
({ file, progress, onRemove }: FileCardProps)
src/components/custom/file-uploader.tsx:277
Function
FilePreview
({ file }: FilePreviewProps)
src/components/custom/file-uploader.tsx:318
Function
FileUploader
(props: FileUploaderProps)
src/components/custom/file-uploader.tsx:99
Function
GenerateNotebookSummary
({ notebookId })
src/components/custom/notebook-summary/generate-notebook-summary.tsx:13
Function
GeneratePodcast
({ audioUrl, notebookId, notebookStatus, })
src/components/custom/studio-panel/generate-podcast.tsx:15
Function
Home
({ searchParams, }: { searchParams: Promise<{ sessionId?: string }>; })
src/app/page.tsx:12
Function
Navbar
({ sessionId, notebookId, })
src/components/custom/navbar.tsx:13
Function
NotebookCard
({ notebook, sessionId, })
src/components/custom/home-page/notebook-card.tsx:18
Function
NotebookContent
({ notebooks, })
src/components/custom/home-page/notebook-content.tsx:18
Function
NotebookNameForm
({ initialName, })
src/components/custom/notebook-name/notebook-name.tsx:17
Function
NotebookNameSkeleton
()
src/components/custom/notebook-name/notebook-name.tsx:96
Function
NotebookNameWrapper
({ notebookId, sessionId, })
src/components/custom/notebook-name/notebook-name-wrapper.tsx:8
Function
NotebookPage
({ params, searchParams, }: NotebookPageProps)
src/app/notebook/[notebookId]/page.tsx:18
Function
NotebookPageLayout
({ children })
src/app/notebook/[notebookId]/layout.tsx:10
Function
NotebookSummary
({ notebookId, })
src/components/custom/notebook-summary/index.tsx:13
Function
NotebookSummarySection
({ notebookSummary, sourcesSummarized, })
src/components/custom/notebook-summary.tsx:13
Function
NotebookSummarySkeleton
()
src/components/custom/notebook-summary/index.tsx:53
Function
NotebooksGrid
({ sessionId, })
src/components/custom/home-page/notebooks-grid.tsx:9
Function
NotebooksSkeleton
()
src/components/custom/home-page/notebook-skeleton.tsx:3
Function
NotebooksView
({ notebooks, sessionId, })
src/components/custom/notebooks-view.tsx:21
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
src/app/layout.tsx:17
Function
SessionProvider
({ children })
src/providers/index.tsx:22
Function
SheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/sheet.tsx:91
Function
SheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/sheet.tsx:77
Function
SidebarNotebooks
({ notebookId, })
src/components/custom/sidebar-notebooks.tsx:9
Function
SidebarNotebooksSkeleton
()
src/components/custom/sidebar-notebooks.tsx:34
Function
Skeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/skeleton.tsx:3
Function
SourceItem
({ id, name, processingStatus, })
src/components/custom/sources/source-item.tsx:15
Function
SourceItemContent
({ sourceId, name, })
src/components/custom/sources/source-item-content.tsx:17
Function
SourceProcessing
(props)
src/components/custom/sources/source-processing.tsx:14
Function
SourceProcessingWrapper
({ sourceId, }: { sourceId: string; })
src/components/custom/sources/source-item-content.tsx:75
Function
SourceSummary
({ sourceId }: { sourceId: string })
src/components/custom/sources/source-item-content.tsx:41
Function
SourceTopics
({ sourceId }: { sourceId: string })
src/components/custom/sources/source-item-content.tsx:49
Function
SourceTopicsSkeleton
()
src/components/custom/sources/source-item-content.tsx:65
Function
StatusCard
({ sourcesStatus, notebookStatus, })
src/components/custom/status-card.tsx:65
Function
StudioPanel
({ notebookId, })
src/components/custom/studio-panel/index.tsx:9
Function
StudioPanelSkeleton
()
src/components/custom/studio-panel/index.tsx:52
Function
Toaster
({ ...props }: ToasterProps)
src/components/ui/sonner.tsx:8
Function
UploadSources
(props)
src/components/custom/uploads/upload-sources.tsx:32
Function
UploadSourcesHomeTrigger
(props)
src/components/custom/uploads/upload-sources.tsx:89
Function
UploadSourcesSidebarTrigger
({ onOpenChange })
src/components/custom/uploads/upload-sources.tsx:112
Function
WelcomeCard
()
src/components/custom/welcome-card.tsx:5
Method
constructor
(config: Config)
src/lib/play-ai.ts:44
Function
createVectorStore
(indexName: string)
src/lib/vector-store.ts:3
Function
fetchNotebookSources
(notebookId: string)
src/db/queries/sources/index.ts:9
Function
fetchNotebookWithSources
(notebookId: string)
src/db/queries/notebooks/index.ts:28
Function
fetchNotebooks
(sessionId: string)
src/db/queries/notebooks/index.ts:7
Method
generateAndWaitForPodcast
* Helper method to generate podcast and wait for completion
src/lib/play-ai.ts:146
Function
handleGenerate
()
src/hooks/use-steps.tsx:182
Function
handleKeyDown
(event: KeyboardEvent)
src/components/ui/sidebar.tsx:101
Function
handleStorageChange
()
src/hooks/use-session-storage.ts:69
Function
onChange
()
src/hooks/use-mobile.tsx:10
Function
useSession
()
src/providers/index.tsx:12