A web-based tool for splitting and merging PDF files built on Val Town.
├── backend/
│ ├── index.ts # Main Hono server with API routes
│ └── README.md # Backend documentation
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main React application
│ │ ├── PdfSplitter.tsx # PDF splitting component
│ │ ├── PdfMerger.tsx # PDF merging component
│ │ └── PdfViewer.tsx # PDF preview component
│ ├── index.html # Main HTML template
│ ├── index.tsx # Frontend entry point
│ └── style.css # Custom styles
├── shared/
│ └── types.ts # Shared TypeScript types
└── README.md # This file
GET / - Serve the main applicationPOST /api/split - Split a PDF filePOST /api/merge - Merge multiple PDF filesGET /frontend/* - Serve frontend assetsGET /shared/* - Serve shared assets