A modern web application built with Astro that provides instant access to downloadable PDF books. AllPDF.dev offers a curated collection of books in PDF format with an intuitive interface for browsing, searching, and downloading.
- Instant Downloads: One-click PDF downloads with no registration required
- Responsive Design: Optimized for all devices - desktop, tablet, and mobile
- Fast Performance: Built with Astro for lightning-fast page loads
- SEO Optimized: Structured data and meta tags for better search visibility
- Clean Interface: Modern, minimalist design for better user experience
- Pagination: Efficient browsing through large book collections
/
├── public/
│ ├── favicon.ico
│ ├── files/ # PDF and image files
│ └── robots.txt
├── src/
│ ├── components/
│ │ ├── BookCard.astro # Individual book display component
│ │ ├── Footer.astro # Site footer
│ │ ├── Header.astro # Site header with navigation
│ │ ├── Pagination.astro # Page navigation component
│ │ └── SearchBar.astro # Search functionality
│ ├── data/
│ │ └── books.json # Book data and metadata
│ ├── layouts/
│ │ └── Layout.astro # Base layout template
│ └── pages/
│ ├── book/
│ │ └── [slug].astro # Dynamic book detail pages
│ ├── page/
│ │ └── [page].astro # Paginated book listing
│ └── index.astro # Homepage
├── astro.config.mjs # Astro configuration
└── package.json
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
-
Clone the repository
git clone https://github.com/temaprint/allpdf.dev cd allpdf.dev -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser and navigate to
http://localhost:4321
npm run buildThe built site will be generated in the dist/ directory, ready for deployment to any static hosting service.
To add new books to the collection:
- Add PDF and cover image files to the
public/files/directory - Update the
src/data/books.jsonfile with the new book information:{ "title": "Book Title", "src_pdf": "https://allpdf.dev/files/book-folder/book.pdf", "src_pic": "https://allpdf.dev/files/book-folder/cover.jpg" }
- Astro - Static site generator
- HTML/CSS/JavaScript - Frontend fundamentals
- JSON - Data storage for book metadata
This project is open source and available under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.
For support or questions, please open an issue in the repository.

