Browser-only PDF merger built with React, Vite, TypeScript, Tailwind CSS, and pdf-lib.
- Upload multiple PDF files
- Add files by drag-and-drop
- Sort new uploads alphabetically by default
- Reorder files with drag-and-drop sorting
- Remove files from the queue
- Merge PDFs entirely in the browser
- Download the final
merged.pdf - Popup settings modal with
light,dark, andsystemtheme profiles - Theme preference persisted in
localStorage - Ready for Vercel, Netlify, and GitHub Pages
pdf-merge/
+- .github/
¦ L- workflows/
¦ L- deploy-pages.yml
+- public/
+- src/
¦ +- components/
¦ ¦ +- ActionBar.tsx
¦ ¦ +- AppBackground.tsx
¦ ¦ +- ErrorBanner.tsx
¦ ¦ +- FileDropzone.tsx
¦ ¦ +- FileList.tsx
¦ ¦ +- FileListItem.tsx
¦ ¦ +- HeroSection.tsx
¦ ¦ +- ProgressBar.tsx
¦ ¦ +- SettingsButton.tsx
¦ ¦ +- SettingsModal.tsx
¦ ¦ L- ThemeToggle.tsx
¦ +- hooks/
¦ ¦ +- usePdfMerge.ts
¦ ¦ L- useTheme.ts
¦ +- services/
¦ ¦ L- mergePdfs.ts
¦ +- types/
¦ ¦ +- pdf.ts
¦ ¦ L- theme.ts
¦ +- utils/
¦ ¦ +- file.ts
¦ ¦ L- format.ts
¦ +- App.tsx
¦ +- main.tsx
¦ L- styles.css
+- .gitignore
+- index.html
+- netlify.toml
+- package.json
+- README.md
+- tsconfig.app.json
+- tsconfig.json
+- tsconfig.node.json
+- vercel.json
L- vite.config.ts
npm install
npm run devnpm run build
npm run previewAutomatic deployment is included in .github/workflows/deploy-pages.yml.
- Push the repository to GitHub.
- Open
Settings -> Pages. - Set
SourcetoGitHub Actions. - Push to
mainormaster.
The workflow configures the correct base path for Pages, builds the app, and deploys dist/ automatically.
App.tsxcomposes the page from high-level components only.hooks/usePdfMerge.tsowns queue state, merge actions, progress, errors, and download URL lifecycle.hooks/useTheme.tsowns theme preference persistence and DOM theme synchronization.components/SettingsModal.tsxprovides the popup settings surface for choosing a theme profile.services/mergePdfs.tsencapsulates the PDF merging workflow withpdf-lib.