{"id":31562884,"url":"https://github.com/pavanscales/own_multi_thread_server","last_synced_at":"2025-10-15T10:45:30.504Z","repository":{"id":263464163,"uuid":"890519700","full_name":"pavanscales/own_multi_thread_server","owner":"pavanscales","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-19T13:55:00.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T04:53:59.047Z","etag":null,"topics":["mutlithreading","threads","threads-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pavanscales.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-11-18T17:55:34.000Z","updated_at":"2024-11-20T06:14:11.000Z","dependencies_parsed_at":"2024-11-20T06:29:01.371Z","dependency_job_id":null,"html_url":"https://github.com/pavanscales/own_multi_thread_server","commit_stats":null,"previous_names":["isafcck/own_multi_thread_server","pawannnnn/own_multi_thread_server","pawanjs/own_multi_thread_server","pawvan/own_multi_thread_server","manikupireddii/own_multi_thread_server","pawanthegoat/own_multi_thread_server","pawanchief/own_multi_thread_server","pawanlifes/own_multi_thread_server","pawanscales/own_multi_thread_server","pavanscales/own_multi_thread_server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pavanscales/own_multi_thread_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanscales%2Fown_multi_thread_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanscales%2Fown_multi_thread_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanscales%2Fown_multi_thread_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanscales%2Fown_multi_thread_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavanscales","download_url":"https://codeload.github.com/pavanscales/own_multi_thread_server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavanscales%2Fown_multi_thread_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279074452,"owners_count":26097629,"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-15T02:00:07.814Z","response_time":56,"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":["mutlithreading","threads","threads-api"],"created_at":"2025-10-05T04:53:47.253Z","updated_at":"2025-10-15T10:45:30.498Z","avatar_url":"https://github.com/pavanscales.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Here's the `README.md` file for your multi-threaded HTTP server project:\n\n```markdown\n# Multi-Threaded HTTP Server in Node.js\n\nThis project demonstrates a multi-threaded HTTP server built using Node.js and the `worker_threads` module. It processes incoming requests concurrently using a pool of workers, improving performance for CPU-intensive tasks.\n\n## Features\n- Multi-threaded architecture using Node.js worker threads.\n- Basic routing and dynamic responses based on request URL.\n- Handles GET requests with basic routing (`/`, `/info`, `/health`).\n- Scalable to handle higher concurrency through worker thread pooling.\n\n## Requirements\n- Node.js (\u003e= v12.0)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone (my url)\n  cd (my rep )\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Start the server:\n   ```bash\n   node src/server.js\n   ```\n\n4. Alternatively, you can use the shell script to start the server:\n   ```bash\n   ./scripts/start.sh\n   ```\n\n5. Visit [http://localhost:3000](http://localhost:3000) in your browser or use `curl` to test the server.\n\n## Routes\n- `/`: A welcome message.\n- `/info`: Information about the server.\n- `/health`: Health check message.\n- `/unknown`: Will respond with \"Not Found\" for any unrecognized routes.\n\n## Testing\n\nTo test the server, you can use Mocha or any other testing framework. The following tests are available:\n- Respond to `GET /` with a welcome message.\n- Respond to `GET /health` with a health message.\n- Respond to unknown routes with a \"Not Found\" message.\n\nTo run the tests:\n1. Make sure your server is not running.\n2. Run the tests:\n   ```bash\n   npm test\n   ```\n\n## Configuration\n\nThe server configuration, such as the number of worker threads and the port number, can be found in the `config/config.js` file.\n\nExample config:\n\n```javascript\nmodule.exports = {\n  PORT: 3000,\n  NUM_WORKERS: require('os').cpus().length,  // Number of CPU cores\n};\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nFeel free to open issues or pull requests if you find any bugs or want to add new features!\n\n```\n\n---\n\nThis `README.md` file provides an overview of the project, setup instructions, features, and testing guidelines. Make sure to replace the GitHub URL (`https://github.com/your-username/multi-threaded-server.git`) with the actual URL if you publish it on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavanscales%2Fown_multi_thread_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavanscales%2Fown_multi_thread_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavanscales%2Fown_multi_thread_server/lists"}