{"id":19383696,"url":"https://github.com/jill64/sentry-sveltekit-edge","last_synced_at":"2025-04-23T21:32:00.697Z","repository":{"id":207798010,"uuid":"719496975","full_name":"jill64/sentry-sveltekit-edge","owner":"jill64","description":"♟️ Unofficial Sentry integration for SvelteKit edge runtime","archived":false,"fork":false,"pushed_at":"2025-04-15T00:12:24.000Z","size":1652,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T00:23:12.491Z","etag":null,"topics":["edge","sentry","sveltekit","vercel"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@jill64/sentry-sveltekit-edge","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/jill64.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,"zenodo":null}},"created_at":"2023-11-16T09:45:32.000Z","updated_at":"2025-02-03T18:50:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"fde68e47-d3f4-4ea7-a761-516b27986c11","html_url":"https://github.com/jill64/sentry-sveltekit-edge","commit_stats":null,"previous_names":["jill64/sentry-sveltekit-edge"],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsentry-sveltekit-edge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsentry-sveltekit-edge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsentry-sveltekit-edge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsentry-sveltekit-edge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jill64","download_url":"https://codeload.github.com/jill64/sentry-sveltekit-edge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250517957,"owners_count":21443864,"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":["edge","sentry","sveltekit","vercel"],"created_at":"2024-11-10T09:27:18.433Z","updated_at":"2025-04-23T21:32:00.288Z","avatar_url":"https://github.com/jill64.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!----- BEGIN GHOST DOCS HEADER -----\u003e\n\n# @jill64/sentry-sveltekit-edge\n\n\u003c!----- BEGIN GHOST DOCS BADGES -----\u003e\n\n\u003ca href=\"https://npmjs.com/package/@jill64/sentry-sveltekit-edge\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@jill64/sentry-sveltekit-edge\" alt=\"npm-version\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.com/package/@jill64/sentry-sveltekit-edge\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@jill64/sentry-sveltekit-edge\" alt=\"npm-license\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.com/package/@jill64/sentry-sveltekit-edge\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@jill64/sentry-sveltekit-edge\" alt=\"npm-download-month\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.com/package/@jill64/sentry-sveltekit-edge\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/min/@jill64/sentry-sveltekit-edge\" alt=\"npm-min-size\" /\u003e\u003c/a\u003e \u003ca href=\"https://github.com/jill64/sentry-sveltekit-edge/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/jill64/sentry-sveltekit-edge/actions/workflows/ci.yml/badge.svg\" alt=\"ci.yml\" /\u003e\u003c/a\u003e\n\n\u003c!----- END GHOST DOCS BADGES -----\u003e\n\n♟️ Unofficial Sentry integration for SvelteKit edge runtime\n\n\u003c!----- END GHOST DOCS HEADER -----\u003e\n\n## Installation\n\n```sh\nnpm i @jill64/sentry-sveltekit-edge\n```\n\n## Requirements\n\n- Any edge runtime that supports `fetch`\n\n\u003e [!NOTE]\n\u003e If running on `Cloudflare Pages`, use instead [`@jill64/sentry-sveltekit-cloudflare`](https://github.com/jill64/sentry-sveltekit-cloudflare).\n\n## Limitations\n\nThis library is `@sentry/sveltekit` without the node runtime dependencies.\n\n### Available\n\n- All features for client\n- Basic error capture on server\n\n### Unavailable\n\n- Default integrations\n- Auto session tracking\n\n## Configuration\n\nAdd the following settings to your SvelteKit application's `vite.config.js`.\n\n```js\n// vite.config.js\nimport { sveltekit } from '@sveltejs/kit/vite'\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  plugins: [sveltekit()],\n  ssr: {\n    noExternal: ['@jill64/sentry-sveltekit-edge']\n  }\n  // ...\n})\n```\n\n## Usage\n\n### Client\n\n```js\n// hooks.client.js\nimport { init } from '@jill64/sentry-sveltekit-edge/client'\n// or\n// import { clientInit } from '@jill64/sentry-sveltekit-edge'\n\nconst onError = init(\n  '__YOUR_SENTRY_DSN__'\n  // ,\n  // {\n  //   sentryOptions: {\n  //     // ... Other Sentry Config\n  //   },\n  //   enableInDevMode: boolean (default: false)\n  // }\n)\n\nexport const handleError = onError((e) =\u003e {\n  // Your Error Handler\n})\n```\n\n### Server\n\n```js\n// hooks.server.js\nimport { init } from '@jill64/sentry-sveltekit-edge/server'\n// or\n// import { serverInit } from '@jill64/sentry-sveltekit-edge'\n\nconst { onHandle, onError } = serverInit(\n  '__YOUR_SENTRY_DSN__'\n  // ,\n  // {\n  //   sentryOptions?: {\n  //     // ... Other Sentry Config (Based on NodeOptions)\n  //   },\n  //   handleOptions?: {\n  //     handleUnknownRoutes: boolean (default: false)\n  //   },\n  //   enableInDevMode?: boolean (default: false)\n  // }\n)\n\nexport const handle = onHandle(({ event, resolve }) =\u003e {\n  // Your Handle Code\n})\n\nexport const handleError = onError((e) =\u003e {\n  // Your Error Handler\n})\n```\n\n## Configure Source Map (Optional)\n\nUse [@sentry/vite-plugin](https://npmjs.com/package/@sentry/vite-plugin).\n\n### Example\n\n```js\n// vite.config.js\nimport { sentryVitePlugin } from '@sentry/vite-plugin'\nimport { sveltekit } from '@sveltejs/kit/vite'\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  build: {\n    sourcemap: true\n  },\n  plugins: [\n    sentryVitePlugin({\n      org: process.env.SENTRY_ORG,\n      project: process.env.SENTRY_PROJECT,\n      authToken: process.env.SENTRY_AUTH_TOKEN\n    }),\n    sveltekit()\n  ]\n})\n```\n\n\u003c!----- BEGIN GHOST DOCS FOOTER -----\u003e\n\n## License\n\n[MIT](LICENSE)\n\n\u003c!----- END GHOST DOCS FOOTER -----\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjill64%2Fsentry-sveltekit-edge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjill64%2Fsentry-sveltekit-edge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjill64%2Fsentry-sveltekit-edge/lists"}