{"_id":"@types-beta/sdk","_rev":"4-f82b1aabaa91dfe6a2cf0517a6ec0892","name":"@types-beta/sdk","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@types-beta/sdk","version":"0.1.0","license":"MIT","_id":"@types-beta/sdk@0.1.0","maintainers":[{"name":"types-beta","email":"types-beta@outlook.com"}],"dist":{"shasum":"81a697d5edb051fd21f8d04762b2e562a86d99e1","tarball":"https://registry.npmjs.org/@types-beta/sdk/-/sdk-0.1.0.tgz","fileCount":8,"integrity":"sha512-SB+N+P+l2QaPjL+0subilow5Tn1TAvWghRAR0SZVStwZ3Y6zjAnZgw/dBg/M82x3jYS+iBBLg9ANWF0kayAkBQ==","signatures":[{"sig":"MEUCIGaca0eDzhIrDildQbWRgYWhfimeymKCsoMCz5eN6CxZAiEA2U5m5r6t65apft1YKcARfDA33SIo7rY6pM+gtSN/yj4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1180204},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build"},"_npmUser":{"name":"types-beta","email":"types-beta@outlook.com"},"_npmVersion":"10.9.8","description":"Startup SDK for @types-beta apps. Runs once when a consumer imports it at their entry point.","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.23.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1785262255710_0.8606543625560783","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@types-beta/sdk","version":"0.1.1","license":"MIT","_id":"@types-beta/sdk@0.1.1","maintainers":[{"name":"types-beta","email":"types-beta@outlook.com"}],"dist":{"shasum":"b9b8d019ac2f620cca51c55de346d0cff98ed9f6","tarball":"https://registry.npmjs.org/@types-beta/sdk/-/sdk-0.1.1.tgz","fileCount":8,"integrity":"sha512-0dPW5q8BeqT9TduKDHEL67lMb1TCSFFtx2FEFHD0NPCRwyz4vdaj5LQQ4/Lvkj63tz7qNf3WsU2bDTBj3Rl/KA==","signatures":[{"sig":"MEYCIQC+hf3pM+oo+yjfduyFC4DP1Y0966MPotnxbJdDAN2GhAIhAORnmp00yjBupU7McISNJdmk/guXfv1+Im/EJ5PVnngD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1179419},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build"},"_npmUser":{"name":"types-beta","email":"types-beta@outlook.com"},"_npmVersion":"10.9.8","description":"Startup SDK for @types-beta apps. Runs once when a consumer imports it at their entry point.","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.23.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.1_1785262941706_0.7394287268613364","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@types-beta/sdk","version":"0.1.2","license":"MIT","_id":"@types-beta/sdk@0.1.2","maintainers":[{"name":"types-beta","email":"types-beta@outlook.com"}],"dist":{"shasum":"ae5607447e60b9a99ec62b4f12452fe0637091e9","tarball":"https://registry.npmjs.org/@types-beta/sdk/-/sdk-0.1.2.tgz","fileCount":8,"integrity":"sha512-dT/C3Gci+fe/s/AWkEut1CLN9FoXULpqCPAftJUgBStAPBLX7RvwYd+fz1zNjUXO+jlUBT7GCcLPrEdg61Y9/Q==","signatures":[{"sig":"MEUCIQDvymPHGhWuzAP8ssEDKpnlBgXHth8tHobF0hce++eG1QIgESE0XMK3PRiAWaz2Gls3QKFt0OfZR3HS03gSDPu9mUY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1179419},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build"},"_npmUser":{"name":"types-beta","email":"types-beta@outlook.com"},"_npmVersion":"10.9.8","description":"Startup SDK for @types-beta apps. Runs once when a consumer imports it at their entry point.","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.23.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.0","@types/node":"^22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.2_1785265073154_0.2501397340774665","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@types-beta/sdk","version":"0.1.3","description":"Startup SDK for @types-beta apps. Runs once when a consumer imports it at their entry point.","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"sideEffects":["./dist/index.js"],"scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build"},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^22.10.2","typescript":"^5.6.0"},"_id":"@types-beta/sdk@0.1.3","_nodeVersion":"22.23.0","_npmVersion":"10.9.8","dist":{"integrity":"sha512-j+cGgiCdtOt3PE4CWzzHXUvSqKfAEwCKSOCayMEUfYKFF67d+cLtl9MWCEkQcj9El5Nru+ow8NXwHjZ7jnMhkQ==","shasum":"ad7e1c27bcc6e313f74322d00d90a2ac87ba7d30","tarball":"https://registry.npmjs.org/@types-beta/sdk/-/sdk-0.1.3.tgz","fileCount":8,"unpackedSize":1179419,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAlygnTCa4E5VUoTuKESdZ+MgWsYq4Lzt53mB2w6FGj6AiB6Y/ClpCIzbyLI9qopqkFUJvCWraCPNPkR5YT3Oh63pw=="}]},"_npmUser":{"name":"types-beta","email":"types-beta@outlook.com"},"directories":{},"maintainers":[{"name":"types-beta","email":"types-beta@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.3_1785265575576_0.21735966903235648"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-28T18:10:55.465Z","modified":"2026-07-28T19:06:15.940Z","0.1.0":"2026-07-28T18:10:55.858Z","0.1.1":"2026-07-28T18:22:21.930Z","0.1.2":"2026-07-28T18:57:53.348Z","0.1.3":"2026-07-28T19:06:15.783Z"},"license":"MIT","description":"Startup SDK for @types-beta apps. Runs once when a consumer imports it at their entry point.","maintainers":[{"name":"types-beta","email":"types-beta@outlook.com"}],"readme":"# @types-beta/sdk\n\nA small runtime SDK that initializes itself **when your app starts**, by being imported at the entry point.\n\nThis is a normal runtime package — it ships compiled JavaScript in `dist/`. It is separate from `@types-beta/node`,\nwhich is type definitions only and never executes code.\n\n## Install\n\n```sh\nnpm install @types-beta/sdk\n```\n\n## Use — import at startup\n\nAdd one import as the **first** line of your application's entry point (e.g. `src/index.ts`, `src/main.ts`, `server.ts`):\n\n```ts\nimport \"@types-beta/sdk\";\n```\n\nImporting the package runs its `init()` once, as your app boots. You'll see:\n\n```\n[@types-beta/sdk] initialized at startup\n```\n\nPut it above your other imports so the SDK is initialized before the rest of your code runs.\n\n### Prefer an explicit call?\n\nIf you'd rather initialize explicitly (and pass options), import `init` and call it yourself. It's guarded to run once,\nso importing the package *and* calling `init()` won't double-initialize:\n\n```ts\nimport { init } from \"@types-beta/sdk\";\n\ninit();            // or init({ silent: true }) to skip the startup log\n```\n\n## Where your SDK code goes\n\nThe startup logic lives in [`src/init.ts`](src/init.ts), inside `init()`. Drop the entry logic of the SDK you built\ninto the marked block there, then rebuild. Keep synchronous setup inline; kick off async work without awaiting it so\nstartup isn't blocked.\n\n## Build\n\n```sh\nnpm install\nnpm run build\n```\n\nOutput goes to `dist/`. `npm run build` (and the `prepare` script that runs it) only compiles TypeScript — **it does\nnot run the SDK**. Nothing in this package executes on a consumer's `npm install`: the SDK runs only when their code\nimports it. Published installs get the prebuilt `dist/` and run no scripts at all.\n\n## Notes\n\n- `sideEffects` is set in `package.json` so bundlers (webpack, Rollup, esbuild) keep the startup import instead of\n  tree-shaking it away.\n- Output is CommonJS, so both `import \"@types-beta/sdk\"` (ESM) and `require(\"@types-beta/sdk\")` (CJS) work.\n","readmeFilename":"README.md"}