How thecodetech/lbs-invitation works
LBS Invitation Generator is a browser-only tool for creating personalized invitations for individual visitors or in bulk. The user enters meeting details and visitor names (manually or via CSV); the app keeps data in localStorage, previews a selected invitation, and exports PDF/PNG files, ZIP collections, or a combined PDF. WhatsApp sharing is also available. The graph reflects the sampled calls and README-documented capabilities; the asset path is identified in source comments, though the file tree does not list the image itself.
Main entry points: App.jsx App state and layout · InvitationPreview.jsx Live preview · BulkActions.jsx Bulk actions · renderInvitation.js Canvas renderer
Components 18
App and inputs
- React entry
src/main.jsx - App state and layout
src/App.jsx - Header
src/components/Header.jsx - Meeting details
src/components/MeetingForm.jsx - Visitor list
src/components/VisitorList.jsx - CSV parser
src/utils/csvImport.js - Date formatter
src/utils/formatDate.js
Invitation rendering
- Template configuration
src/config/templateConfig.js - Invitation artwork
- Live preview
src/components/InvitationPreview.jsx - Canvas renderer
src/utils/renderInvitation.js
Exports and sharing
- Bulk actions
src/components/BulkActions.jsx - PDF builder
src/utils/pdfExport.js - ZIP and downloads
src/utils/zipExport.js
Local persistence
- localStorage wrapper
src/utils/storage.js
Other components
- LBS user
- Browser share and download APIs
Connections 22
- LBS user → React entry: opens app
README.md - React entry → App state and layout: renders
src/main.jsx - App state and layout → Header: renders
src/App.jsx - App state and layout → Meeting details: renders
src/App.jsx - App state and layout → Visitor list: renders
src/App.jsx - App state and layout → Live preview: renders
src/App.jsx - App state and layout → Bulk actions: renders
src/App.jsx - App state and layout → Template configuration: loads template
src/App.jsx - Meeting details → Date formatter: formats date
src/components/MeetingForm.jsx - Visitor list → CSV parser: parses import
src/components/VisitorList.jsx - App state and layout → localStorage wrapper: loads and saves
src/App.jsx - Live preview → Canvas renderer: renders canvas
src/components/InvitationPreview.jsx - Canvas renderer → Invitation artwork: draws template
src/utils/renderInvitation.js - Live preview → PDF builder: builds PDF
src/components/InvitationPreview.jsx - Live preview → ZIP and downloads: downloads PNG
src/components/InvitationPreview.jsx - Live preview → WhatsApp: opens link
src/components/InvitationPreview.jsx - Live preview → Browser share and download APIs: shares image
src/components/InvitationPreview.jsx - Bulk actions → Canvas renderer: renders visitors
src/components/BulkActions.jsx - Bulk actions → PDF builder: builds PDFs
src/components/BulkActions.jsx - Bulk actions → ZIP and downloads: packages files
src/components/BulkActions.jsx - PDF builder → Browser share and download APIs: saves PDF
- ZIP and downloads → Browser share and download APIs: triggers download
src/utils/zipExport.js