Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Manish-Tamang/newsletter-app
/ functions
Functions
264 in github.com/Manish-Tamang/newsletter-app
⨍
Functions
264
◇
Types & classes
69
↓ 223 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 27 callers
Function
toast
({ ...props }: Toast)
hooks/use-toast.ts:145
↓ 9 callers
Function
exec
(command: string, value?: string)
components/newsletter-editor/EditorToolbar.tsx:11
↓ 6 callers
Function
getNewsletterBlocksHtml
(storageKey: string = EMAIL_STORAGE_KEYS.campaignBlocks)
lib/email-content.ts:24
↓ 6 callers
Function
useToast
()
hooks/use-toast.ts:174
↓ 5 callers
Function
dispatch
(action: Action)
components/ui/use-toast.ts:136
↓ 5 callers
Function
dispatch
(action: Action)
hooks/use-toast.ts:136
↓ 5 callers
Method
isValidEmail
* Validate email address
lib/resend.ts:366
↓ 5 callers
Function
isValidEmailHtml
(html: string | null | undefined)
lib/email-content.ts:10
↓ 5 callers
Function
onChange
()
components/ui/use-mobile.tsx:10
↓ 5 callers
Function
toast
({ ...props }: Toast)
components/ui/use-toast.ts:145
↓ 4 callers
Function
blocksToHtml
(blocks: NewsletterBlock[])
components/newsletter-editor/types.ts:197
↓ 4 callers
Function
stripHeavyContent
(html: string)
components/newsletter-editor/types.ts:224
↓ 4 callers
Function
stripInlineImageData
(html: string)
lib/email-content.ts:17
↓ 4 callers
Function
useCarousel
()
components/ui/carousel.tsx:35
↓ 4 callers
Function
useFormField
()
components/ui/form.tsx:44
↓ 4 callers
Function
useSidebar
()
components/ui/sidebar.tsx:41
↓ 4 callers
Function
useSubscribers
()
hooks/use-subscribers.ts:16
↓ 4 callers
Function
useTemplates
()
hooks/use-templates.ts:47
↓ 3 callers
Method
checkApiStatus
* Check if the Resend API is properly configured and accessible
lib/resend.ts:374
↓ 3 callers
Function
fetchContacts
()
hooks/use-subscribers.ts:22
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
components/ui/chart.tsx:320
↓ 3 callers
Function
getPreviewContent
()
components/template-editor.tsx:128
↓ 3 callers
Function
loadSavedDesign
(storageKey: string)
lib/email-editor-storage.ts:20
↓ 3 callers
Method
sendEmail
* Send a single email
lib/resend.ts:64
↓ 3 callers
Function
useCampaigns
()
hooks/use-campaigns.ts:28
↓ 3 callers
Function
useToast
()
components/ui/use-toast.ts:174
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:61
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
hooks/use-toast.ts:61
↓ 2 callers
Function
autoOptimizeScreenshot
( screenshot: ScreenshotData, config: Partial<typeof DEFAULT_SCREENSHOT_CONFIG> = {} )
lib/screenshot.ts:409
↓ 2 callers
Function
captureEmailPreviewScreenshot
( emailContent: string, options: Partial<ScreenshotCaptureOptions> = {} )
lib/screenshot.ts:200
↓ 2 callers
Function
captureTemplateScreenshot
( element: HTMLElement, options: Partial<ScreenshotCaptureOptions> = {} )
lib/screenshot.ts:131
↓ 2 callers
Function
deleteTemplate
(id: string)
hooks/use-templates.ts:151
↓ 2 callers
Function
fetchAudiences
()
hooks/use-subscribers.ts:43
↓ 2 callers
Function
generateBlockId
()
components/newsletter-editor/types.ts:193
↓ 2 callers
Function
getContactName
(contact: Contact)
components/subscribers-table.tsx:26
↓ 2 callers
Function
getPreviewContent
()
components/template-preview-editor.tsx:90
↓ 2 callers
Function
getTemplate
(id: string)
hooks/use-templates.ts:183
↓ 2 callers
Function
handleFile
(_file: File)
components/newsletter-editor/blocks/ImageBlock.tsx:16
↓ 2 callers
Function
handleLinkChange
(platform: string, enabled: boolean, url: string)
components/newsletter-editor/blocks/SocialsBlock.tsx:27
↓ 2 callers
Function
handleLogoUpload
(file: File)
components/newsletter-editor/blocks/HeaderBlock.tsx:39
↓ 2 callers
Function
loadDraftFromStorage
( storageKey: string )
lib/email-content.ts:75
↓ 2 callers
Function
resizeImageToFit
* Resizes an image to fit within maximum dimensions while maintaining aspect ratio
lib/screenshot.ts:13
↓ 2 callers
Function
resolveContentForSend
()
app/campaigns/new/page.tsx:43
↓ 2 callers
Function
saveDraftToStorage
( storageKey: string, data: Record<string, unknown> )
lib/email-content.ts:60
↓ 2 callers
Function
screenshotToDataUrl
(screenshot: ScreenshotData)
lib/screenshot.ts:344
↓ 2 callers
Function
updateTemplate
(id: string, templateData: UpdateTemplateData)
hooks/use-templates.ts:113
↓ 2 callers
Function
useChart
()
components/ui/chart.tsx:27
↓ 2 callers
Function
validateScreenshot
( screenshot: ScreenshotData, config: Partial<typeof DEFAULT_SCREENSHOT_CONFIG> = {} )
lib/screenshot.ts:286
↓ 1 callers
Function
addContact
(email: string, firstName?: string, lastName?: string)
hooks/use-subscribers.ts:64
↓ 1 callers
Method
addContact
* Add a new contact to Resend
lib/resend.ts:280
↓ 1 callers
Function
checkApiStatus
()
app/settings/page.tsx:26
↓ 1 callers
Function
compressScreenshot
( screenshot: ScreenshotData, quality: number = 0.8 )
lib/screenshot.ts:354
↓ 1 callers
Function
createCampaign
(campaignData: CreateCampaignData)
hooks/use-campaigns.ts:56
↓ 1 callers
Function
createCorsSafeContent
* Creates a simplified version of HTML content without external images for CORS-safe screenshot capture
lib/screenshot.ts:93
↓ 1 callers
Function
createTemplate
(templateData: CreateTemplateData)
hooks/use-templates.ts:75
↓ 1 callers
Function
deleteCampaign
(id: number)
hooks/use-campaigns.ts:132
↓ 1 callers
Function
deleteContact
(contactId: string)
hooks/use-subscribers.ts:99
↓ 1 callers
Method
deleteContact
* Delete a contact from Resend
lib/resend.ts:326
↓ 1 callers
Function
dismiss
()
components/ui/use-toast.ts:153
↓ 1 callers
Function
dismiss
()
hooks/use-toast.ts:153
↓ 1 callers
Function
fetchCampaigns
()
hooks/use-campaigns.ts:34
↓ 1 callers
Function
fetchTemplate
()
app/templates/[id]/page.tsx:32
↓ 1 callers
Function
fetchTemplate
()
app/templates/[id]/edit/page.tsx:26
↓ 1 callers
Function
fetchTemplates
()
hooks/use-templates.ts:53
↓ 1 callers
Function
formatHtml
(html: string)
components/html-code-editor.tsx:25
↓ 1 callers
Function
genId
()
components/ui/use-toast.ts:30
↓ 1 callers
Function
genId
()
hooks/use-toast.ts:30
↓ 1 callers
Function
getApiStatusBadge
()
app/settings/page.tsx:66
↓ 1 callers
Function
getAudienceStats
(audienceId: string)
app/subscribers/lists/page.tsx:17
↓ 1 callers
Method
getAudiences
* Get all audiences from Resend
lib/resend.ts:242
↓ 1 callers
Method
getContacts
* Get all contacts from Resend
lib/resend.ts:186
↓ 1 callers
Function
getStatusBadge
(contact: Contact)
components/subscribers-table.tsx:33
↓ 1 callers
Function
getStatusBadge
(status: string)
app/campaigns/page.tsx:32
↓ 1 callers
Function
handleApplyUrl
()
components/newsletter-editor/blocks/ImageBlock.tsx:12
↓ 1 callers
Function
handleEdit
(template: Template)
app/templates/page.tsx:25
↓ 1 callers
Function
handleUseTemplate
(template: Template)
app/templates/page.tsx:39
↓ 1 callers
Function
isRateLimited
(ip: string)
app/api/proxy-image/route.ts:6
↓ 1 callers
Function
loadEmailEditor
()
hooks/use-email-editor.ts:10
↓ 1 callers
Function
reducer
(state: State, action: Action)
components/ui/use-toast.ts:77
↓ 1 callers
Function
reducer
(state: State, action: Action)
hooks/use-toast.ts:77
↓ 1 callers
Function
renderBlock
()
components/newsletter-editor/BlockRenderer.tsx:50
↓ 1 callers
Function
renderPaginationItems
()
app/subscribers/page.tsx:58
↓ 1 callers
Function
resolveContent
()
components/template-preview-editor.tsx:35
↓ 1 callers
Function
resolveContent
()
components/template-editor.tsx:83
↓ 1 callers
Function
resolveEmailHtml
(options: { content: string rawHtml: string useRawHtml: boolean blocksStorageKey?: string })
lib/email-content.ts:40
↓ 1 callers
Function
sendCampaign
(campaignData: CampaignData)
hooks/use-email.ts:101
↓ 1 callers
Method
sendCampaign
* Send a campaign to multiple subscribers
lib/resend.ts:106
↓ 1 callers
Function
sendTestEmail
(to: string, subject: string, content: string)
hooks/use-email.ts:64
↓ 1 callers
Method
sendTestEmail
* Send a test email
lib/resend.ts:154
↓ 1 callers
Method
transformAudienceData
* Transform raw audience data from Resend API to our Audience interface
lib/resend.ts:230
↓ 1 callers
Method
transformContactData
* Transform raw contact data from Resend API to our Contact interface
lib/resend.ts:170
↓ 1 callers
Function
triggerUpload
()
components/newsletter-editor/blocks/ImageBlock.tsx:53
↓ 1 callers
Function
useCampaignContent
()
hooks/use-campaign-content.ts:12
↓ 1 callers
Function
useDashboardMetrics
()
hooks/use-dashboard-metrics.ts:7
↓ 1 callers
Function
useEmail
()
hooks/use-email.ts:28
↓ 1 callers
Function
useEmailEditor
()
hooks/use-email-editor.ts:5
↓ 1 callers
Function
useIsMobile
()
components/ui/use-mobile.tsx:5
Function
AddBlockMenu
({ onAdd, alwaysVisible }: AddBlockMenuProps)
components/newsletter-editor/AddBlockMenu.tsx:25
Function
AddSubscriberDialog
({ isOpen, onOpenChange, onAddSubscriber, isLoading = false }: AddSubscriberDialogProps)
components/add-subscriber-dialog.tsx:26
next →
1–100 of 264, ranked by callers