{"id":51608508,"url":"https://github.com/gimesha-adikari/pdfnest","last_synced_at":"2026-07-12T04:02:12.725Z","repository":{"id":363022348,"uuid":"1261686858","full_name":"gimesha-adikari/pdfnest","owner":"gimesha-adikari","description":"PDFNest is a Next.js PDF utility app for editing, protecting, converting, and extracting content from PDF files. It provides a browser UI for uploading documents, previewing pages where needed, sending files to a PDF processing backend, and downloading the processed output.","archived":false,"fork":false,"pushed_at":"2026-07-11T09:54:15.000Z","size":4428,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-11T11:08:29.815Z","etag":null,"topics":["nextjs","pdf-processing","react"],"latest_commit_sha":null,"homepage":"https://pdfnest.gimesha.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gimesha-adikari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-07T02:52:52.000Z","updated_at":"2026-07-11T09:54:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gimesha-adikari/pdfnest","commit_stats":null,"previous_names":["gimesha-adikari/pdfnest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gimesha-adikari/pdfnest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimesha-adikari%2Fpdfnest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimesha-adikari%2Fpdfnest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimesha-adikari%2Fpdfnest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimesha-adikari%2Fpdfnest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gimesha-adikari","download_url":"https://codeload.github.com/gimesha-adikari/pdfnest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gimesha-adikari%2Fpdfnest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35381310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","pdf-processing","react"],"created_at":"2026-07-12T04:02:11.504Z","updated_at":"2026-07-12T04:02:12.717Z","avatar_url":"https://github.com/gimesha-adikari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Project cover](cover.png)\n\n# PDFNest\n\nPDFNest is a Next.js PDF utility app for editing, protecting, converting, and extracting content from PDF files. It provides a browser UI for uploading documents, previewing pages where needed, sending files to a PDF processing backend, and downloading the processed output.\n\n## Features\n\n- Merge multiple PDFs into one document\n- Split PDFs by selected pages\n- Rotate, reorder, and delete PDF pages\n- Add text watermarks and page numbers\n- Compress PDF files\n- Edit PDF metadata\n- Lock and unlock protected PDFs\n- Convert images to PDF\n- Convert PDF pages to images\n- Extract text from PDFs\n- Convert text images into searchable PDF output\n- Light and dark theme support\n\n## Tech Stack\n\n- Next.js 16 App Router\n- React 19\n- TypeScript\n- Tailwind CSS 4\n- pdfjs-dist for client-side PDF previews\n- @dnd-kit for drag-and-drop page ordering\n- lucide-react icons\n\n## Requirements\n\n- Node.js 20 or newer\n- npm\n- A compatible PDF processing API server\n\nThe frontend sends processing requests to `NEXT_PUBLIC_API_BASE_URL`, which defaults to:\n\n```bash\nhttp://localhost:8080/api\n```\n\n## Getting Started\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nCreate a local environment file if your backend is not running at the default URL:\n\n```bash\nNEXT_PUBLIC_API_BASE_URL=http://localhost:8080/api\n```\n\nStart the development server:\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Available Scripts\n\n```bash\nnpm run dev\n```\n\nStarts the local development server.\n\n```bash\nnpm run build\n```\n\nBuilds the app for production.\n\n```bash\nnpm run start\n```\n\nStarts the production server after a successful build.\n\n```bash\nnpm run lint\n```\n\nRuns ESLint.\n\n## Backend API\n\nMost tools use `lib/api.ts` to upload a `FormData` payload and download the returned file. The current UI expects these backend paths under the configured API base URL:\n\n- `POST /structure/merge`\n- `POST /structure/split`\n- `POST /structure/rotate`\n- `POST /structure/delete-pages`\n- `POST /structure/reorder-pages`\n- `POST /structure/watermark`\n- `POST /structure/add-page-numbers`\n- `POST /structure/metadata/fetch`\n- `POST /structure/update-metadata`\n- `POST /optimize/compress`\n- `POST /security/lock`\n- `POST /security/unlock`\n- `POST /conversion/to-pdf`\n- `POST /conversion/pdf-to-images`\n- `POST /ocr/extract-text`\n- `POST /images/to-text-pdf`\n\nThe app also includes `app/api/lock/route.ts`, a Next.js route handler that proxies lock requests to `http://localhost:8080/api/security/lock`.\n\n## Project Structure\n\n```text\napp/                  App Router pages and route handlers\ncomponents/           Shared UI components\ncomponents/pdf/       PDF-specific upload, preview, and action components\nlib/                  Tool metadata, API client, and error helpers\npublic/               Static assets and PDF.js worker\n```\n\n## Adding a Tool\n\n1. Add the page under `app/\u003ctool-route\u003e/page.tsx`.\n2. Add the navigation entry to `lib/toolsData.ts`.\n3. Reuse the shared PDF components in `components/pdf/` where possible.\n4. Use `uploadAndDownloadFile()` from `lib/api.ts` for upload-and-download API flows.\n\n## License\n\nThis project is licensed under the terms in [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgimesha-adikari%2Fpdfnest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgimesha-adikari%2Fpdfnest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgimesha-adikari%2Fpdfnest/lists"}