• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
pro989

pro989

pdf

Public
Like
pdf
Home
Code
4
backend
1
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://pro989--514bf5603ccf11f0bfcc9e149126039e.web.val.run
README.md

PDF Split & Merge Tool

A web-based tool for splitting and merging PDF files built on Val Town.

Features

  • 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

Project Structure

β”œβ”€β”€ 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

API Endpoints

  • GET / - Serve the main application
  • POST /api/split - Split a PDF file
  • POST /api/merge - Merge multiple PDF files
  • GET /frontend/* - Serve frontend assets
  • GET /shared/* - Serve shared assets

Usage

  1. Visit the application URL
  2. Choose between Split or Merge mode
  3. Upload your PDF file(s)
  4. Configure split ranges or merge order
  5. Download the processed PDF

Technology Stack

  • 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)
HTTP
  • index.ts
    pro989--51…9e.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.