{"_id":"@amar4enko/effect-schema-compiler","_rev":"4-bf0da4b5ee4dbdbfd7692f29fbbee23b","name":"@amar4enko/effect-schema-compiler","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.1":{"name":"@amar4enko/effect-schema-compiler","version":"0.1.1","license":"MIT","_id":"@amar4enko/effect-schema-compiler@0.1.1","maintainers":[{"name":"aleks-m","email":"amar4enko@gmail.com"}],"homepage":"https://github.com/amar4enko/effect-schema-compiler#readme","bugs":{"url":"https://github.com/amar4enko/effect-schema-compiler/issues"},"dist":{"shasum":"eba68d1d7f9cbf6cd5fdf9af16fd1630878c3618","tarball":"https://registry.npmjs.org/@amar4enko/effect-schema-compiler/-/effect-schema-compiler-0.1.1.tgz","fileCount":5,"integrity":"sha512-CI1us7YeygOWrhjT7Sb+pTzQekm7trtqCOw/BlB83dDDBD1joPLS5zHb7Kou8aISl99CYgHqWo+C2EM8xvkKqQ==","signatures":[{"sig":"MEYCIQDA6sOX4VDU+JLz94HOuMzHFYIUwtMumly6xhKOeol9OQIhAIFfS+WkvCjdx0+PV+0f5KrWy0FEilb87ghYSouJJlq+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11488},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"gitHead":"1e525bd2351f2307700c73427830cf2030a32462","scripts":{"dev":"bunup --watch","lint":"oxlint src","test":"bun test","build":"bunup --dts.infer-types","release":"bumpp --commit --push --tag","lint:fix":"oxlint --fix src","test:watch":"bun test --watch","type-check":"tsc --noEmit","postinstall":"bun simple-git-hooks","test:coverage":"bun test --coverage"},"_npmUser":{"name":"aleks-m","email":"amar4enko@gmail.com"},"repository":{"url":"git+https://github.com/amar4enko/effect-schema-compiler.git","type":"git"},"_npmVersion":"11.6.1","description":"Attempt at ergonomic effect/Schema compiler","directories":{},"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"add":"^2.0.6","bumpp":"^10.3.2","bunup":"^0.16.10","oxfmt":"^0.16.0","effect":"~3.19.8","oxlint":"^1.31.0","tstyche":"^5.0.1","@types/bun":"^1.3.3","typescript":"~5.9.3","@biomejs/biome":"^2.3.8","simple-git-hooks":"^2.13.1","@codeforbreakfast/bun-test-effect":"^0.4.0"},"peerDependencies":{"effect":"^3.18.0","typescript":">=5.9.0"},"simple-git-hooks":{"pre-commit":"bun run lint && bun run type-check"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/effect-schema-compiler_0.1.1_1764867304263_0.6004145493450974","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@amar4enko/effect-schema-compiler","version":"0.1.6","license":"MIT","_id":"@amar4enko/effect-schema-compiler@0.1.6","maintainers":[{"name":"aleks-m","email":"amar4enko@gmail.com"}],"homepage":"https://github.com/amar4enko/effect-schema-compiler#readme","bugs":{"url":"https://github.com/amar4enko/effect-schema-compiler/issues"},"dist":{"shasum":"b61822dc94b3454ba336e56411f8b559e583ac7c","tarball":"https://registry.npmjs.org/@amar4enko/effect-schema-compiler/-/effect-schema-compiler-0.1.6.tgz","fileCount":5,"integrity":"sha512-yM/nfjZY95/6UtU8waoDgAX97b2vXDPBM/tkJAbkd3+o2CGXfoOdGooV18DUwSD0e9cuH9WaAibg1xZ/5jiqRw==","signatures":[{"sig":"MEUCIDJj11esrX84STUj/pRJgtigNXFckKkT95EbB92nIPgbAiEAhJa6aPmla9q+/zOrydfFYZyF5OBdq5ubF6k2m74GgwE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amar4enko%2feffect-schema-compiler@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10778},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"gitHead":"4a0ea5c8cf905f22ed659d99f04dbf7086c142a9","scripts":{"dev":"bunup --watch","lint":"oxlint src","test":"bun test","build":"bunup --dts.infer-types","release":"bumpp --commit --push --tag","lint:fix":"oxlint --fix src","test:watch":"bun test --watch","type-check":"tsc --noEmit","postinstall":"bun simple-git-hooks","test:coverage":"bun test --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2158de1e-97b6-4bdd-b69b-ebd95b717ca0"}},"repository":{"url":"git+https://github.com/AMar4enko/effect-schema-compiler.git","type":"git"},"_npmVersion":"11.6.4","description":"Attempt at ergonomic effect/Schema compiler","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"devDependencies":{"add":"^2.0.6","bumpp":"^10.3.2","bunup":"^0.16.10","oxfmt":"^0.16.0","effect":"~3.19.8","oxlint":"^1.31.0","tstyche":"^5.0.1","@types/bun":"^1.3.3","typescript":"~5.9.3","@biomejs/biome":"^2.3.8","simple-git-hooks":"^2.13.1","@codeforbreakfast/bun-test-effect":"^0.4.0"},"peerDependencies":{"effect":"^3.18.0","typescript":">=5.9.0"},"simple-git-hooks":{"pre-commit":"bun run lint && bun run type-check"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/effect-schema-compiler_0.1.6_1764923509163_0.32232861567606874","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@amar4enko/effect-schema-compiler","version":"0.2.0","license":"MIT","_id":"@amar4enko/effect-schema-compiler@0.2.0","maintainers":[{"name":"aleks-m","email":"amar4enko@gmail.com"}],"homepage":"https://github.com/amar4enko/effect-schema-compiler#readme","bugs":{"url":"https://github.com/amar4enko/effect-schema-compiler/issues"},"dist":{"shasum":"6b487825c6a2bb95441f7ac12be0c3fa398b8537","tarball":"https://registry.npmjs.org/@amar4enko/effect-schema-compiler/-/effect-schema-compiler-0.2.0.tgz","fileCount":5,"integrity":"sha512-TtkUOqjaIu3/Q2uc0Xz7qnQ1YjvVrrcuThXmEvio+aQMu50ueOFyIKH6KAjtsn/v4GF6NP986JJnlmIUGOsGNg==","signatures":[{"sig":"MEUCIQDdm+oSjBaGQ4v1EXCIy4nhfitxat1AnP1zZg1L7eDZdgIgB9axVkNMdudDuk7dBcTp9oxrcrjRE2FXNw4/KoKfBag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amar4enko%2feffect-schema-compiler@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12685},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"gitHead":"9821c4e97afa28115015b7d28831512e7a6c3e9c","scripts":{"dev":"bunup --watch","lint":"oxlint src","test":"bun test","build":"bunup --dts.infer-types","release":"bumpp --commit --push --tag","lint:fix":"oxlint --fix src","test:watch":"bun test --watch","type-check":"tsc --noEmit","postinstall":"bun simple-git-hooks","test:coverage":"bun test --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2158de1e-97b6-4bdd-b69b-ebd95b717ca0"}},"repository":{"url":"git+https://github.com/AMar4enko/effect-schema-compiler.git","type":"git"},"_npmVersion":"11.7.0","description":"Attempt at ergonomic effect/Schema compiler","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"devDependencies":{"add":"^2.0.6","bumpp":"^10.3.2","bunup":"^0.16.10","oxfmt":"^0.16.0","effect":"~3.19.8","oxlint":"^1.31.0","tstyche":"^5.0.1","@types/bun":"^1.3.3","typescript":"~5.9.3","@biomejs/biome":"^2.3.8","simple-git-hooks":"^2.13.1","@codeforbreakfast/bun-test-effect":"^0.4.0"},"peerDependencies":{"effect":"^3.18.0","typescript":">=5.9.0"},"simple-git-hooks":{"pre-commit":"bun run lint && bun run type-check"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/effect-schema-compiler_0.2.0_1765901172948_0.8939479813952174","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@amar4enko/effect-schema-compiler","version":"0.2.1","description":"Attempt at ergonomic effect/Schema compiler","homepage":"https://github.com/amar4enko/effect-schema-compiler#readme","bugs":{"url":"https://github.com/amar4enko/effect-schema-compiler/issues"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AMar4enko/effect-schema-compiler.git"},"scripts":{"build":"bunup --dts.infer-types","dev":"bunup --watch","postinstall":"bun simple-git-hooks","lint":"oxlint src","lint:fix":"oxlint --fix src","release":"bumpp --commit --push --tag","test":"bun test","test:coverage":"bun test --coverage","test:watch":"bun test --watch","type-check":"tsc --noEmit"},"devDependencies":{"@biomejs/biome":"^2.3.8","@types/bun":"^1.3.3","bumpp":"^10.3.2","bunup":"^0.16.10","simple-git-hooks":"^2.13.1","@codeforbreakfast/bun-test-effect":"^0.4.0","add":"^2.0.6","effect":"~3.19.8","oxfmt":"^0.16.0","oxlint":"^1.31.0","tstyche":"^5.0.1","typescript":"~5.9.3"},"peerDependencies":{"typescript":">=5.9.0","effect":"^3.18.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"type":"module","exports":{".":{"default":"./dist/index.js","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"module":"./dist/index.js","simple-git-hooks":{"pre-commit":"bun run lint && bun run type-check"},"types":"./dist/index.d.ts","gitHead":"8630bb8af827f773c88953ab3f30bbd3d7fab92c","_id":"@amar4enko/effect-schema-compiler@0.2.1","_nodeVersion":"20.20.1","_npmVersion":"11.12.1","dist":{"integrity":"sha512-C8uIN3bIEhZ6eEzSWhUChdaL1kvX0eEje3bftU1UTNn9jeQneZCJvkIJ/D9aIwMCmNNQPJb2MTfoKIbVCiCkgA==","shasum":"8483102470156971f0766824bbd57e7be3135e73","tarball":"https://registry.npmjs.org/@amar4enko/effect-schema-compiler/-/effect-schema-compiler-0.2.1.tgz","fileCount":5,"unpackedSize":12836,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amar4enko%2feffect-schema-compiler@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEMCIAtY96MGuha1rQ5aKGsJYPXYt+jHHZhrEJje17Lj9/IbAh8ZJ2H9DZqrpTOE13gfuGDDqK5gSlPXKfPnntbjBFbF"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2158de1e-97b6-4bdd-b69b-ebd95b717ca0"}},"directories":{},"maintainers":[{"name":"aleks-m","email":"amar4enko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/effect-schema-compiler_0.2.1_1775039285378_0.017804109726696327"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-04T16:55:04.151Z","modified":"2026-04-01T10:28:05.838Z","0.1.1":"2025-12-04T16:55:04.407Z","0.1.6":"2025-12-05T08:31:49.304Z","0.2.0":"2025-12-16T16:06:13.084Z","0.2.1":"2026-04-01T10:28:05.524Z"},"bugs":{"url":"https://github.com/amar4enko/effect-schema-compiler/issues"},"license":"MIT","homepage":"https://github.com/amar4enko/effect-schema-compiler#readme","repository":{"type":"git","url":"git+https://github.com/AMar4enko/effect-schema-compiler.git"},"description":"Attempt at ergonomic effect/Schema compiler","maintainers":[{"name":"aleks-m","email":"amar4enko@gmail.com"}],"readme":"# @amar4enko/effect-schema-compiler\n\nAttempt at ergonomic effect/Schema compiler\n\n## Installation\n\n```bash\nbun add @amar4enko/effect-schema-compiler\n```\n\n```typescript\nconst compiler = Compiler.make<Result, Context>()\n  .rule(hasReference, ({ referenceId, propertySignatures }, go, context) => {\n    //...\n  })\n  .rule(isUnionWithUndefined, ({ type }, go, context) => {\n    //...\n  })\n\n\nconst result = yield* compiler.compile(MySchema.ast, initialContext)\n```\n\n## Rationale\n\nWorking with effect/Schema AST is non-trivial to say the least.  \nI've put this library together after spending some time on writing code compiling schemas to Confluence docs, other language types etc.  \nIt doesn't automagically weave the need to understand AST, yet provides some nice-to-haves when working with it.\n\n## Usage example with tests\n\n[example.test.ts](tests/example.test.ts)","readmeFilename":"README.md"}