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.
index.ts
https://pro989--514bf5603ccf11f0bfcc9e149126039e.web.val.run
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)