pdf
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v7View latest version
A web-based tool for splitting and merging PDF files built on Val Town.
- Split PDF: Extract specific pages or page ranges from a PDF
- Merge PDFs: Combine multiple PDF files into one
- Preview: View PDF pages before processing
- Download: Get processed PDFs instantly
├── 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
- Visit the application URL
- Choose between Split or Merge mode
- Upload your PDF file(s)
- Configure split ranges or merge order
- Download the processed PDF
- Backend: Hono (TypeScript)
- Frontend: React 18.2.0 with TypeScript
- PDF Processing: PDF-lib library
- Styling: TailwindCSS
- Storage: Client-side file handling (no server storage)