{"id":26341794,"url":"https://github.com/devsdenepal/api-osp","last_synced_at":"2025-03-16T04:44:45.115Z","repository":{"id":258175167,"uuid":"873500793","full_name":"devsdenepal/api-osp","owner":"devsdenepal","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-16T10:23:58.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T07:07:57.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://apiosp.vercel.app/repos","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/devsdenepal.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}},"created_at":"2024-10-16T09:20:21.000Z","updated_at":"2024-10-16T10:24:02.000Z","dependencies_parsed_at":"2024-10-18T06:48:05.659Z","dependency_job_id":null,"html_url":"https://github.com/devsdenepal/api-osp","commit_stats":null,"previous_names":["devsdenepal/api-osp","krimsonsquad/api-osp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsdenepal%2Fapi-osp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsdenepal%2Fapi-osp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsdenepal%2Fapi-osp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsdenepal%2Fapi-osp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsdenepal","download_url":"https://codeload.github.com/devsdenepal/api-osp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826776,"owners_count":20354220,"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","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":[],"created_at":"2025-03-16T04:44:44.577Z","updated_at":"2025-03-16T04:44:45.062Z","avatar_url":"https://github.com/devsdenepal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Source GitHub Repos API\n\n## Overview\n\nThis project provides a simple RESTful API built with Node.js and Express that serves a list of open-source GitHub repositories, along with their respective links and star counts. The API fetches data directly from GitHub's API and includes custom repositories specified in the configuration.\n\n## Features\n\n- Fetch a list of open-source repositories from GitHub.\n- Sort repositories based on the number of stars and forks.\n- Simple REST API structure for easy integration.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (\u003e=14.x)\n- npm (Node package manager)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/devsdenepal/api-osp.git\n   cd devsdenepal/api-osp\n   ```\n\n2. Install the required dependencies:\n\n   ```bash\n   npm install\n   ```\n\n### Configuration\n\n- Ensure your custom repositories are defined in `repos.js`. Add or modify repositories as needed.\n\n### Running the API\n\nTo start the server, run:\n\n```bash\nnode index.js\n```\n\nThe API will be available at `https://apiosp.vercel.app/repos`.\n\n### Example Request\n\nYou can use a tool like Postman or curl to test the API:\n\n```bash\ncurl https://apiosp.vercel.app/repos\n```\n\n### Response Format\n\nThe API returns a JSON array of repositories, each containing:\n\n- `name`: The name of the repository.\n- `url`: The GitHub link to the repository.\n- `stars`: The number of stars the repository has received.\n- `forks`: The number of forks of the repository.\n\nExample Response:\n\n```json\n[\n  {\n    \"name\": \"React\",\n    \"url\": \"https://github.com/facebook/react\",\n    \"stars\": 195000,\n    \"forks\": 39200\n  },\n  {\n    \"name\": \"Bootstrap\",\n    \"url\": \"https://github.com/twbs/bootstrap\",\n    \"stars\": 164000,\n    \"forks\": 77900\n  }\n]\n```\n\n## Contributing\n\nContributions are welcome! If you would like to contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Commit your changes.\n4. Push to the branch and submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsdenepal%2Fapi-osp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsdenepal%2Fapi-osp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsdenepal%2Fapi-osp/lists"}