{"_id":"@bluesky-social/lex-cli","_rev":"2-bc5cf3c9e97e4d38ac7abd2160d80297","name":"@bluesky-social/lex-cli","dist-tags":{"latest":"0.9.5"},"versions":{"0.9.0":{"name":"@bluesky-social/lex-cli","version":"0.9.0","keywords":["atproto","lexicon"],"license":"MIT","_id":"@bluesky-social/lex-cli@0.9.0","maintainers":[{"name":"openweb3.io","email":"mtsocialdao@gmail.com"},{"name":"web3km","email":"web3km@proton.me"}],"homepage":"https://atproto.com","bugs":{"url":"https://github.com/bluesky-social/atproto/issues"},"bin":{"lex":"dist/index.js"},"dist":{"shasum":"d0d165b44f5cf6b3ed745c1b1a90d478de32a902","tarball":"https://registry.npmjs.org/@bluesky-social/lex-cli/-/lex-cli-0.9.0.tgz","fileCount":52,"integrity":"sha512-D4hUb5bv4uI6tKswkAuOcWA/ttKW2PDRSzhcVG5vWSgOMrabKo+HkWuDipVMfyJTnIFKDqtEu+B3YW1aWSEl8g==","signatures":[{"sig":"MEYCIQDJGSDLUUeCpmUxkT5KIBeSk/3ahX9IG0tUbfkQQI41ggIhAMNy00hw3hIBIAt3MlftcUpAjerx3mxJ1Slpy1NH8roE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":226399},"main":"dist/index.js","_from":"file:bluesky-social-lex-cli-0.9.0.tgz","types":"dist/index.d.ts","engines":{"node":">=18.7.0"},"scripts":{"build":"tsc --build tsconfig.build.json"},"_npmUser":{"name":"web3km","email":"web3km@proton.me"},"_resolved":"/private/var/folders/cb/7sst87dj7jd40nc7b7q7h76r0000gn/T/85f1dc4b24028b3ddb5d9814c45206b3/bluesky-social-lex-cli-0.9.0.tgz","_integrity":"sha512-D4hUb5bv4uI6tKswkAuOcWA/ttKW2PDRSzhcVG5vWSgOMrabKo+HkWuDipVMfyJTnIFKDqtEu+B3YW1aWSEl8g==","repository":{"url":"git+https://github.com/bluesky-social/atproto.git","type":"git","directory":"packages/lex-cli"},"_npmVersion":"10.8.2","description":"TypeScript codegen tool for atproto Lexicon schemas","directories":{},"_nodeVersion":"18.20.8","dependencies":{"zod":"^3.23.8","chalk":"^4.1.2","yesno":"^0.4.0","prettier":"^3.2.5","ts-morph":"^24.0.0","commander":"^9.4.0","@bluesky-social/syntax":"^0.4.0","@bluesky-social/lexicon":"^0.4.12"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/lex-cli_0.9.0_1753545367524_0.19798923420684922","host":"s3://npm-registry-packages-npm-production"}},"0.9.5":{"name":"@bluesky-social/lex-cli","version":"0.9.5","license":"MIT","description":"TypeScript codegen tool for atproto Lexicon schemas","keywords":["atproto","lexicon"],"homepage":"https://atproto.com","repository":{"type":"git","url":"git+https://github.com/bluesky-social/atproto.git","directory":"packages/lex-cli"},"bin":{"lex":"dist/index.js"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.7.0"},"dependencies":{"chalk":"^4.1.2","commander":"^9.5.0","prettier":"^3.6.2","ts-morph":"^24.0.0","yesno":"^0.4.0","zod":"^3.25.76","@bluesky-social/lexicon":"^0.5.1","@bluesky-social/syntax":"^0.4.1"},"devDependencies":{"typescript":"^5.9.3"},"scripts":{"build":"tsc --build tsconfig.build.json"},"_id":"@bluesky-social/lex-cli@0.9.5","bugs":{"url":"https://github.com/bluesky-social/atproto/issues"},"_integrity":"sha512-STmqoLtIPDnty4qV4Lw8SppLzMvjrYIKJRDvg7Fp59Ds4mPgePQydk0XRDEuWd7qNTlXhT1sEO1HFFTYIB2oMQ==","_resolved":"/private/var/folders/cb/7sst87dj7jd40nc7b7q7h76r0000gn/T/e539045c97e4519f2df004b1a8ae680b/bluesky-social-lex-cli-0.9.5.tgz","_from":"file:bluesky-social-lex-cli-0.9.5.tgz","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-STmqoLtIPDnty4qV4Lw8SppLzMvjrYIKJRDvg7Fp59Ds4mPgePQydk0XRDEuWd7qNTlXhT1sEO1HFFTYIB2oMQ==","shasum":"29ca39bf41da324e4c9c06e18537a3f6d097f8a1","tarball":"https://registry.npmjs.org/@bluesky-social/lex-cli/-/lex-cli-0.9.5.tgz","fileCount":52,"unpackedSize":297695,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDBvEPKGeH1B/LuJFGCSRaYRRj/DC7TCo0KQGcTtjlLzAIgelrw+BlnOcc3+TwuYusVg2BegDYKLZ/n1hodM7hnOlY="}]},"_npmUser":{"name":"web3km","email":"web3km@proton.me"},"directories":{},"maintainers":[{"name":"openweb3.io","email":"mtsocialdao@gmail.com"},{"name":"web3km","email":"web3km@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lex-cli_0.9.5_1761039223196_0.4431263163591703"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-26T15:56:07.448Z","modified":"2025-10-21T09:33:43.643Z","0.9.0":"2025-07-26T15:56:07.698Z","0.9.5":"2025-10-21T09:33:43.407Z"},"bugs":{"url":"https://github.com/bluesky-social/atproto/issues"},"license":"MIT","homepage":"https://atproto.com","keywords":["atproto","lexicon"],"repository":{"type":"git","url":"git+https://github.com/bluesky-social/atproto.git","directory":"packages/lex-cli"},"description":"TypeScript codegen tool for atproto Lexicon schemas","maintainers":[{"name":"openweb3.io","email":"mtsocialdao@gmail.com"},{"name":"web3km","email":"web3km@proton.me"}],"readme":"# Lexicon CLI Tool\n\nCommand-line tool to generate Lexicon schemas and APIs.\n\n## Usage\n\n```\nUsage: lex [options] [command]\n\nLexicon CLI\n\nOptions:\n  -V, --version                     output the version number\n  -h, --help                        display help for command\n\nCommands:\n  new [options] <nsid> [outfile]    Create a new schema json file\n  gen-md <schemas...>               Generate markdown documentation\n  gen-ts-obj <schemas...>           Generate a TS file that exports an array of schemas\n  gen-api <outdir> <schemas...>     Generate a TS client API\n  gen-server <outdir> <schemas...>  Generate a TS server API\n  help [command]                    display help for command\n```\n\n**Example 1:** Generate an api\n\n```\n$ lex gen-api ./api/src ./schemas/com/service/*.json ./schemas/com/another/*.json\n```\n\n**Example 2:** Generate a server\n\n```\n$ lex gen-server ./server/src/xrpc ./schemas/com/service/*.json ./schemas/com/another/*.json\n```\n\n## License\n\nThis project is dual-licensed under MIT and Apache 2.0 terms:\n\n- MIT license ([LICENSE-MIT.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-MIT.txt) or http://opensource.org/licenses/MIT)\n- Apache License, Version 2.0, ([LICENSE-APACHE.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-APACHE.txt) or http://www.apache.org/licenses/LICENSE-2.0)\n\nDownstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.\n","readmeFilename":"README.md"}