Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Small zitejs helpers: in-app notifications, PDF generation, and file uploads.
zitejs/notifications
import { ZiteNotifications } from 'zitejs/notifications'; await ZiteNotifications.create({ recipients: ['user_abc'], // user ids title: 'New ticket assigned', body: 'Ticket #482 was assigned to you.', // optional link: { path: '/tickets/482' }, // optional in-app destination idempotencyKey: 'ticket-482-assigned', // optional; dedupes retries });
{ created: number }
zitejs/pdf
import { ZitePdf } from 'zitejs/pdf'; const { url } = await ZitePdf.renderHtml({ html, filename: 'invoice.pdf' });
renderHtml({ html, filename? })
{ url, filename }
import { useUpload } from 'zitejs/upload'; const { upload, isUploading } = useUpload(); const { url } = await upload(file); // File | Blob | ArrayBuffer | string
uploadFile({ data, filename })
{ fileUrl }