Currently tightly coupled with [Redacted Person] backend
Uses Celery for task processing
Custom error handling and logging
Asset Management:
Handles resources like images, CSS, fonts
Custom URL handling and security measures
To make this a standalone project, you would need to:
Create a clear API boundary for:
Template input
Data injection
Resource handling
Output formats
Decouple from [Redacted Person]:
Remove [Redacted Person]-specific serialization
Create standalone configuration system
Implement independent resource handling
Create a standalone service that:
Accepts templates and data
Manages rendering pipeline
Returns rendered PDFs
Handles errors and logging
Build a separate UI component library for:
PDF preview
Template editing
Real-time rendering
While challenging, it's definitely feasible to extract this into its own project. The architecture is already somewhat modular, with clear separation between HTML generation and PDF rendering stages. The biggest work would be in decoupling from [Redacted Person] and creating clean interfaces for template/data input and resource management.
The preview UI could be extracted as a separate Vue component library, as it's already relatively self-contained in the rendering package.