{"id":23236647,"url":"https://github.com/alwalxed/zero-deps-prayer-times","last_synced_at":"2026-02-18T00:02:03.223Z","repository":{"id":268679867,"uuid":"904994382","full_name":"alwalxed/zero-deps-prayer-times","owner":"alwalxed","description":"A lightweight, embeddable Islamic prayer times calculator based on date and coordinates, with zero external dependencies.","archived":false,"fork":false,"pushed_at":"2024-12-21T02:58:05.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T01:38:15.021Z","etag":null,"topics":["bun","coordinates","embedable","islam","islamic","islamic-prayer-times","npm-package","prayer-times","prayertimes","typescript","utilities","utility","zero-dependency"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/zero-deps-prayer-times","language":"TypeScript","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/alwalxed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-12-18T00:21:14.000Z","updated_at":"2024-12-21T02:58:08.000Z","dependencies_parsed_at":"2024-12-18T09:34:36.993Z","dependency_job_id":"be4bb010-e0ab-422e-853d-a742f6112530","html_url":"https://github.com/alwalxed/zero-deps-prayer-times","commit_stats":null,"previous_names":["alwalxed/zero-deps-prayer-times"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/alwalxed/zero-deps-prayer-times","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fzero-deps-prayer-times","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fzero-deps-prayer-times/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fzero-deps-prayer-times/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fzero-deps-prayer-times/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alwalxed","download_url":"https://codeload.github.com/alwalxed/zero-deps-prayer-times/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fzero-deps-prayer-times/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29563275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bun","coordinates","embedable","islam","islamic","islamic-prayer-times","npm-package","prayer-times","prayertimes","typescript","utilities","utility","zero-dependency"],"created_at":"2024-12-19T04:11:44.833Z","updated_at":"2026-02-18T00:02:03.208Z","avatar_url":"https://github.com/alwalxed.png","language":"TypeScript","funding_links":[],"categories":["Prayer Times Calculation and Display (73 projects)"],"sub_categories":["TypeScript"],"readme":"# Zero Deps Prayer Times\n\nA lightweight, embeddable Islamic prayer times calculator based on date and coordinates, with zero external dependencies.\n\n## Key Features\n\n- Zero Dependencies\n- Embeddable\n- Customizable\n\n## Installation\n\n```\nnpm install zero-deps-prayer-times\n```\n\n## Usage\n\nImport the library and use the `getPrayerTimes` function to retrieve prayer times for a specific date and location.\n\n```js\nimport { getPrayerTimes } from \"zero-deps-prayer-times\";\n\nconst date = new Date();\nconst coordinates = { latitude: 21.42251, longitude: 39.826168 };\nconst options = {\n  convention: \"Umm al-Qura University, Makkah\",\n  hanafiAsr: false,\n};\n\nconst { data, error } = getPrayerTimes(date, coordinates, options);\n```\n\n## Returned Data\n\nThe `data` object contains prayer times and additional information, formatted as follows:\n\n```js\n{\n  \"prayers\": {\n    \"fajr\": {\n      \"date\": \"2024-12-20T05:30:00.000Z\",\n      \"formatted12H\": \"05:30 AM\",\n      \"formatted24H\": \"05:30\"\n    },\n    \"dhuhr\": {\n      \"date\": \"2024-12-20T12:00:00.000Z\",\n      \"formatted12H\": \"12:00 PM\",\n      \"formatted24H\": \"12:00\"\n    },\n    \"asr\": {\n      \"date\": \"2024-12-20T15:15:00.000Z\",\n      \"formatted12H\": \"03:15 PM\",\n      \"formatted24H\": \"15:15\"\n    },\n    \"maghrib\": {\n      \"date\": \"2024-12-20T18:30:00.000Z\",\n      \"formatted12H\": \"06:30 PM\",\n      \"formatted24H\": \"18:30\"\n    },\n    \"isha\": {\n      \"date\": \"2024-12-20T20:00:00.000Z\",\n      \"formatted12H\": \"08:00 PM\",\n      \"formatted24H\": \"20:00\"\n    }\n  },\n  \"extras\": {\n    \"sunrise\": {\n      \"date\": \"2024-12-20T06:00:00.000Z\",\n      \"formatted12H\": \"06:00 AM\",\n      \"formatted24H\": \"06:00\"\n    },\n    \"midnight\": {\n      \"date\": \"2024-12-20T23:15:00.000Z\",\n      \"formatted12H\": \"11:15 PM\",\n      \"formatted24H\": \"23:15\"\n    },\n    \"dayOfYear\": 355,\n    \"dayLength\": \"12:30\",\n    \"nextPrayer\": {\n      \"name\": \"asr\",\n      \"remainingSeconds\": 5400\n    }\n  }\n}\n```\n\n## Applications Built with This Library\n\n- CLI Tool: [cli-prayer-times](https://github.com/alwalxed/cli-prayer-times)\n- VS Code Extension: [vscode-extension-prayer-times](https://github.com/alwalxed/vscode-extension-prayer-times)\n\nIf you’ve created an application using this library, feel free to submit a PR to add your project here.\n\n## Contributing\n\nIf you encounter any issues or have suggestions, please submit them via issues or PR\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/alwalxed/zero-deps-prayer-times/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwalxed%2Fzero-deps-prayer-times","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falwalxed%2Fzero-deps-prayer-times","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwalxed%2Fzero-deps-prayer-times/lists"}