{"id":21044363,"url":"https://github.com/ordinary-dev/next-shynet","last_synced_at":"2025-05-15T17:32:38.031Z","repository":{"id":63518352,"uuid":"568404336","full_name":"ordinary-dev/next-shynet","owner":"ordinary-dev","description":"A library for integrating Shynet (self-hosted privacy-friendly web analytics) into your next.js project.","archived":true,"fork":false,"pushed_at":"2024-05-01T10:08:36.000Z","size":422,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T22:09:45.454Z","etag":null,"topics":["analytics","monitoring","nextjs","shynet","typescript","web-analytics"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/next-shynet","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/ordinary-dev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2022-11-20T12:39:22.000Z","updated_at":"2024-10-21T14:10:46.000Z","dependencies_parsed_at":"2024-01-13T09:28:27.049Z","dependency_job_id":"98640cd5-cb13-40f4-bdc0-5e0ea351d137","html_url":"https://github.com/ordinary-dev/next-shynet","commit_stats":null,"previous_names":["alt-web/next-shynet"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordinary-dev%2Fnext-shynet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordinary-dev%2Fnext-shynet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordinary-dev%2Fnext-shynet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ordinary-dev%2Fnext-shynet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ordinary-dev","download_url":"https://codeload.github.com/ordinary-dev/next-shynet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388299,"owners_count":22063021,"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":["analytics","monitoring","nextjs","shynet","typescript","web-analytics"],"created_at":"2024-11-19T14:16:32.096Z","updated_at":"2025-05-15T17:32:37.601Z","avatar_url":"https://github.com/ordinary-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next-Shynet\n\nA library for integrating [shynet](https://github.com/milesmcc/shynet)\ninto your [next.js](https://nextjs.org/) project.\n\nIt helps to easily use shynet in a single page application.\nThe library also has declarations for typescript.\n\n## Usage\n\nInstall this library:\n\n```bash\nnpm install next-shynet\n```\n\n### App router\n\nChange your `app/layout.tsx`:\n\n```jsx\nimport { ShynetForAppRouter } from \"next-shynet\"\n\nexport default async function RootLayout({children}) {\n    return (\n        \u003chtml\u003e\n            \u003cbody\u003e\n                \u003cShynetForAppRouter\n                    scriptSrc=\"https://your-shynet-instance/.../index.js\"\n                    imgSrc=\"https://your-shynet-instance/.../pixel.gif\"\n                /\u003e\n            \u003c/body\u003e\n        \u003c/html\u003e\n    )\n}\n```\n\n### Pages router\n\nChange your `_app.js`:\n\n```jsx\nimport Shynet from \"next-shynet\"\n\nconst YourApp = ({ Component, pageProps }) =\u003e (\n    \u003cdiv\u003e\n        \u003cShynet\n            scriptSrc=\"https://your-shynet-instance/.../index.js\"\n            imgSrc=\"https://your-shynet-instance/.../pixel.gif\" /\u003e\n        \u003cComponent {...pageProps} /\u003e\n    \u003c/div\u003e\n)\n```\n\nThe link to the tracking pixel is optional.\n\nBy default, the script is not loaded during development.\nTo force the script to be included, add the `ignoreEnv` option:\n```jsx\n\u003cShynet scriptSrc=\"\" ignoreEnv /\u003e\n```\n\n## How to build\n\n```bash\nnpm install\nnpm run build\n```\n\nThe generated files will be in the `/dist` directory.\n\n## Authors\n\n- Ivan Reshetnikov \u003cordinarydev@protonmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fordinary-dev%2Fnext-shynet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fordinary-dev%2Fnext-shynet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fordinary-dev%2Fnext-shynet/lists"}