{"id":19623830,"url":"https://github.com/appleple/nice-spy","last_synced_at":"2025-10-28T23:11:32.643Z","repository":{"id":66341134,"uuid":"121364239","full_name":"appleple/nice-spy","owner":"appleple","description":"A library used to update classnames of links based on scroll position","archived":false,"fork":false,"pushed_at":"2018-05-28T06:24:59.000Z","size":70,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-28T05:34:52.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/appleple.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":"2018-02-13T09:40:11.000Z","updated_at":"2018-09-27T14:55:12.000Z","dependencies_parsed_at":"2023-03-10T23:51:32.735Z","dependency_job_id":null,"html_url":"https://github.com/appleple/nice-spy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/appleple/nice-spy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fnice-spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fnice-spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fnice-spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fnice-spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleple","download_url":"https://codeload.github.com/appleple/nice-spy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fnice-spy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281527421,"owners_count":26516858,"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-28T02:00:06.022Z","response_time":60,"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":[],"created_at":"2024-11-11T11:35:40.393Z","updated_at":"2025-10-28T23:11:32.637Z","avatar_url":"https://github.com/appleple.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nice Spy\nA library used to update classnames of links based on scroll position\n\n## Demos\n\n\n\n## Installation\n- [npm](https://www.npmjs.com/package/nice-spy)\n- [standalone](https://raw.githubusercontent.com/appleple/nice-spy/master/js/nice-spy.js)\n\nvia npm\n```shell\nnpm install nice-spy --save\n```\n\nor yarn\n\n```shell\nyarn add nice-spy\n```\n\n### Basic\n\n```html\n\u003cnav\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"#section1\" class=\"js-nicespy\"\u003esection1\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#section2\" class=\"js-nicespy\"\u003esection2\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#section3\" class=\"js-nicespy\"\u003esection3\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/nav\u003e\n\u003csection data-spy=\"section1\"\u003e\n  section1\n\u003c/section\u003e\n\u003csection data-spy=\"section2\"\u003e\n  section2\n\u003c/section\u003e\n\u003csection data-spy=\"section3\"\u003e\n  section3\n\u003c/section\u003e\n```\n\n```js\nnew NiceSpy('.js-nicespy', {\n  offsetTop: 20,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fnice-spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleple%2Fnice-spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fnice-spy/lists"}