How hassamalidev/pentwin works
PenTwin is an early-stage product intended to turn DOCX/PDF documents into realistic handwriting based on a user’s writing sample. The README establishes that user-to-result workflow, but the web, worker, engine, extractor, and importer entry points are empty exports, so their internal responsibilities and runtime connections are not yet evidenced. The only implemented behavior visible here is shared branding, page-size configuration, types, and seeded randomness. The product flow below is documented intent, not a claim that it is already implemented.
Main entry points: src/index.ts Handwriting rendering · src/index.ts Document import · src/index.ts Text extraction
Components 12
Handwriting workflow
- DOCX/PDF input
- Writing sample
- Handwritten result
Runtime placeholders
- Document import
packages/importers/src/index.ts - Text extraction
packages/extractor/src/index.ts - Handwriting rendering
packages/engine/src/index.ts - Web entry
apps/web/src/index.ts - Worker entry
apps/worker/src/index.ts
Shared utilities
- Page settings
packages/shared/src/constants.ts - Seeded randomness
packages/shared/src/rng.ts - Brand identity
packages/shared/src/brand.ts
Other components
- User
Connections 7
- User → DOCX/PDF input: provides document
README.md - User → Writing sample: provides sample
README.md - DOCX/PDF input → Document import: intended import
README.md - Document import → Text extraction: intended extraction
- Text extraction → Handwriting rendering: intended rendering
- Writing sample → Handwriting rendering: informs rendering
README.md - Handwriting rendering → Handwritten result: intended result
README.md