{"id":16953633,"url":"https://github.com/thisislawatts/snyk-exercise","last_synced_at":"2026-04-11T03:32:06.488Z","repository":{"id":149172211,"uuid":"97096655","full_name":"thisislawatts/snyk-exercise","owner":"thisislawatts","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-15T17:18:39.000Z","size":2594,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-03T17:13:01.775Z","etag":null,"topics":["front-end","full-stack"],"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/thisislawatts.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}},"created_at":"2017-07-13T08:05:04.000Z","updated_at":"2017-08-10T12:36:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"be54a952-6715-4720-b9a1-fc9c819312f0","html_url":"https://github.com/thisislawatts/snyk-exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thisislawatts/snyk-exercise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fsnyk-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fsnyk-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fsnyk-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fsnyk-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisislawatts","download_url":"https://codeload.github.com/thisislawatts/snyk-exercise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisislawatts%2Fsnyk-exercise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["front-end","full-stack"],"created_at":"2024-10-13T22:07:35.115Z","updated_at":"2026-04-11T03:32:06.448Z","avatar_url":"https://github.com/thisislawatts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"npm Inspector\n===\n\nRepository containing two apps, __API__ and __Web__ for querying the [npm registry](https://registry.npmjs.org). __Web__ serves the results from the __API__.\n\n![Gif demo of the app](https://raw.githubusercontent.com/thisislawatts/snyk-exercise/master/images/demo.gif)\n\nGetting Started\n---\n\n* Clone the repository `git clone git@github.com:thisislawatts/snyk-exercise.git`\n* Open the `web` and `app` directories in seperate terminal and run `npm install` to install all of the dependencies for each of these.\n* Using the `npm run start` command in each of these directories will start a server process.\n\n\nAPI\n---\n\nResponsible for returning and formatting the data for the UI. This application runs on [Koa](https://github.com/koajs/koa) and requires NodeJS 8+.\n\n\n### Endpoint\n\n/package/{name}/{version}\n\n```\n{\n    \"name\": \"\"\n    \"version\": \"\",\n    \"dependencies\": [\n        {\n            \"name\": \"\",\n            \"version\": \"\",\n            \"dependencies\": \"\"\n        }\n    ],\n    \"devDependecies: [\n        {\n            \"name\": \"\",\n            \"version\": \"\",\n            \"dependencies\": \"\"\n        }\n    ]\n}\n```\n\n__Todo__\n\n* Add tests/\n* Improve error handling for invalid responses eg. 404\n* Add caching for [registry.npmjs.org](https://registry.npmjs.org) queries, potentially Redis over Couch DB setup. \n* With caching in place increase depth to which dependencies are resolved.\n\n\nWeb\n---\n\n🌈 Beautiful front end. This runs on [Express](https://expressjs.com) and NodeJS 8.\n\n* [Homepage](http://localhost:3001/)\n* [Individual Package](http://localhost:3001/package/snyk)\n\n__Todo__\n\n* Add tests\n* Server/client side validation of search queries\n* Add loading indicator for loading items when\n* Improve UI when expanding tree, the primary action is for users to expand tree rather than","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fsnyk-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisislawatts%2Fsnyk-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisislawatts%2Fsnyk-exercise/lists"}