{"id":25804558,"url":"https://github.com/almahdy-byte/library-system","last_synced_at":"2026-04-13T06:02:23.667Z","repository":{"id":278570482,"uuid":"936059246","full_name":"almahdy-byte/Library-System","owner":"almahdy-byte","description":"library system with graphQl","archived":false,"fork":false,"pushed_at":"2025-06-25T19:20:49.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T20:27:16.269Z","etag":null,"topics":["authentication","authorization","bcrypt","crypto","express","graphql","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/almahdy-byte.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}},"created_at":"2025-02-20T13:14:28.000Z","updated_at":"2025-06-25T19:22:47.000Z","dependencies_parsed_at":"2025-02-20T14:26:54.068Z","dependency_job_id":"c0fcac34-8d2a-417a-9b6f-a4babcffad10","html_url":"https://github.com/almahdy-byte/Library-System","commit_stats":null,"previous_names":["almahdy-byte/library-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almahdy-byte/Library-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FLibrary-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FLibrary-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FLibrary-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FLibrary-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almahdy-byte","download_url":"https://codeload.github.com/almahdy-byte/Library-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FLibrary-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014524,"owners_count":26085536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["authentication","authorization","bcrypt","crypto","express","graphql","mongoose","nodejs"],"created_at":"2025-02-27T18:38:04.605Z","updated_at":"2025-10-13T09:34:00.960Z","avatar_url":"https://github.com/almahdy-byte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚 Library Management System - Backend (GraphQL Only)\n\nThis is the backend for a **Library Management System** built entirely using **GraphQL**. The system allows users to borrow books, manage accounts, and for admins/librarians to manage inventory, users, and borrow/return records.\n\n---\n\n## 🛠️ Technologies Used\n\n- **Node.js**\n- **Express.js**\n- **GraphQL** (Apollo Server or similar)\n- **MongoDB** + **Mongoose**\n- **JWT** (Authentication)\n- **Bcrypt** (Password Hashing)\n- **CORS**, **Helmet**, **Rate Limiter** (Security)\n\n---\n\n## 🌟 Features\n\n### 👨‍🎓 Users\n- Register and log in securely\n- View available books and details\n- Borrow and return books\n- View personal borrow history\n\n### 👩‍💼 Admin / Librarian\n- Add, edit, or remove books\n- Manage user accounts and permissions\n- View all borrow/return transactions\n- Monitor overdue books\n\n---\n\n## 🔐 Authentication \u0026 Security\n\n- **JWT** used for token-based authentication\n- **Bcrypt** for password hashing\n- **Role-based authorization** (user vs. admin)\n- API protected with **CORS**, **Helmet**, and **Rate Limiting**\n\n---\n\n## 📦 GraphQL API\n\nAll interactions with the backend are done through a **GraphQL schema**. This includes:\n\n- 📖 `books` – Query for books and search by title, author, etc.  \n- 👤 `users` – Register, log in, and get profile data  \n- 📚 `borrowBook`, `returnBook` – Mutations to borrow and return books  \n- 📑 `transactions` – Admin query to view system-wide borrow records  \n- 🔒 `login`, `logout`, `me` – Authentication and session management\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmahdy-byte%2Flibrary-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmahdy-byte%2Flibrary-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmahdy-byte%2Flibrary-system/lists"}