{"_id":"@elysia/eden","_rev":"2-38fedeb0673d7dc872ba9d6714a3cb70","name":"@elysia/eden","dist-tags":{"latest":"1.4.10"},"versions":{"1.4.9":{"name":"@elysia/eden","version":"1.4.9","keywords":["elysia","eden","connector"],"author":{"url":"https://github.com/SaltyAom","name":"saltyAom","email":"saltyaom@gmail.com"},"license":"MIT","_id":"@elysia/eden@1.4.9","maintainers":[{"name":"aomkirby123","email":"saltyaom@gmail.com"}],"homepage":"https://github.com/elysiajs/eden","bugs":{"url":"https://github.com/elysiajs/eden/issues"},"dist":{"shasum":"badadaf2112a784937c0796710adc2b7b64d3c47","tarball":"https://registry.npmjs.org/@elysia/eden/-/eden-1.4.9.tgz","fileCount":41,"integrity":"sha512-+yBxDhNQYjw7vTWrBtCpr7t3GBkuNR8fQGO84QFq0ydsUWtYFTCqxyaiSTFd5cPhhW3CMl24EzDR2A9mi0IHVQ==","signatures":[{"sig":"MEYCIQD68EbdwK1rI7dAXxmgo8oh8hTes5OvBy1FpODmp8yo2QIhAMURRoAEGf4/ivIlC62IwqabTz1mMeZIKBju0zkl/B/M","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":193246},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./fetch":{"types":"./dist/fetch/index.d.ts","import":"./dist/fetch.mjs","require":"./dist/fetch.js"},"./treaty":{"types":"./dist/treaty/index.d.ts","import":"./dist/treaty.mjs","require":"./dist/treaty.js"},"./treaty2":{"types":"./dist/treaty2/index.d.ts","import":"./dist/treaty2.mjs","require":"./dist/treaty2.js"},"./package.json":"./package.json"},"gitHead":"fb339bd82ced1e8b023da1ff2e55777a864cc718","scripts":{"dev":"bun run --watch example/index.ts","test":"bun test && bun test:types","build":"rimraf dist && tsup","release":"npm run build && npm run test && npm publish --access public","test:types":"tsc --project tsconfig.test.json"},"_npmUser":{"name":"aomkirby123","email":"saltyaom@gmail.com"},"prettier":{"semi":false,"tabWidth":4,"singleQuote":true,"trailingComma":"none"},"repository":{"url":"git+https://github.com/elysiajs/eden.git","type":"git"},"_npmVersion":"9.2.0","description":"Fully type-safe Elysia client","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","vite":"^7.1.3","elysia":"^1.4.28","eslint":"^9.34.0","rimraf":"^6.0.1","esbuild":"^0.25.9","@types/bun":"^1.2.20","typescript":"^5.9.2","@types/node":"^24.3.0","expect-type":"^1.2.2","@elysiajs/cors":"1.3.3"},"peerDependencies":{"elysia":">=1.4.19"},"_npmOperationalInternal":{"tmp":"tmp/eden_1.4.9_1776982237948_0.09609571725097199","host":"s3://npm-registry-packages-npm-production"}},"1.4.10":{"name":"@elysia/eden","version":"1.4.10","description":"Fully type-safe Elysia client","author":{"name":"saltyAom","email":"saltyaom@gmail.com","url":"https://github.com/SaltyAom"},"main":"./dist/index.js","module":"./dist/index.mjs","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./treaty":{"types":"./dist/treaty/index.d.ts","import":"./dist/treaty.mjs","require":"./dist/treaty.js"},"./treaty2":{"types":"./dist/treaty2/index.d.ts","import":"./dist/treaty2.mjs","require":"./dist/treaty2.js"},"./fetch":{"types":"./dist/fetch/index.d.ts","import":"./dist/fetch.mjs","require":"./dist/fetch.js"}},"types":"./dist/index.d.ts","keywords":["elysia","eden","connector"],"homepage":"https://github.com/elysiajs/eden","repository":{"type":"git","url":"git+https://github.com/elysiajs/eden.git"},"bugs":{"url":"https://github.com/elysiajs/eden/issues"},"license":"MIT","scripts":{"dev":"bun run --watch example/index.ts","test":"bun test && bun test:types","test:types":"tsc --project tsconfig.test.json","build":"rimraf dist && tsup","release":"npm run build && npm run test && npm publish --access public"},"peerDependencies":{"elysia":">=1.4.19"},"devDependencies":{"@elysiajs/cors":"1.3.3","@types/bun":"^1.2.20","@types/node":"^24.3.0","elysia":"^1.4.28","esbuild":"^0.25.9","eslint":"^9.34.0","expect-type":"^1.2.2","rimraf":"^6.0.1","tsup":"^8.5.0","typescript":"^5.9.2","vite":"^7.1.3"},"prettier":{"semi":false,"tabWidth":4,"singleQuote":true,"trailingComma":"none"},"gitHead":"26a74550d603be21eb25baf9e1e0a0bba6a1e9be","_id":"@elysia/eden@1.4.10","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-vcZXQcW6wZj6rhTxaiTkuCbVuS/yAJQ9jqCM6b83a5hu99F5Aj3HOyWXL17iod2Rz+pJpYsQGX0XaeoCsMpw2g==","shasum":"ebd88e796cd18c1799df980853bdf079fe392bf5","tarball":"https://registry.npmjs.org/@elysia/eden/-/eden-1.4.10.tgz","fileCount":42,"unpackedSize":193367,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@elysia%2feden@1.4.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFMPoqwATD7tnZgAnC/hSsJZ4TbRk39EI81Ve4JFMlWVAiBoWs5J0QnoOa/O7Kgtn4uiEe0ZmMgmpoN83oIQxG/FPw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3c720edc-b9b8-4bab-9813-9942163124f3"}},"directories":{},"maintainers":[{"name":"aomkirby123","email":"saltyaom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eden_1.4.10_1776982526059_0.40142278506496054"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-23T22:10:37.633Z","modified":"2026-04-23T22:15:26.470Z","1.4.9":"2026-04-23T22:10:38.152Z","1.4.10":"2026-04-23T22:15:26.180Z"},"bugs":{"url":"https://github.com/elysiajs/eden/issues"},"author":{"name":"saltyAom","email":"saltyaom@gmail.com","url":"https://github.com/SaltyAom"},"license":"MIT","homepage":"https://github.com/elysiajs/eden","keywords":["elysia","eden","connector"],"repository":{"type":"git","url":"git+https://github.com/elysiajs/eden.git"},"description":"Fully type-safe Elysia client","maintainers":[{"name":"aomkirby123","email":"saltyaom@gmail.com"}],"readme":"# @elysia/eden\nFully type-safe Elysia client refers to the [documentation](https://elysiajs.com/eden/overview)\n\n## Installation\n```bash\nbun add elysia @elysia/eden\n```\n\n## Example\n```typescript\n// server.ts\nimport { Elysia, t } from 'elysia'\n\nconst app = new Elysia()\n    .get('/', () => 'Hi Elysia')\n    .get('/id/:id', ({ params: { id } }) => id)\n    .post('/mirror', ({ body }) => body, {\n        schema: {\n            body: t.Object({\n                id: t.Number(),\n                name: t.String()\n            })\n        }\n    })\n    .listen(8080)\n\nexport type App = typeof app\n\n// client.ts\nimport { edenTreaty } from '@elysia/eden'\nimport type { App } from './server'\n\nconst app = edenTreaty<App>('http://localhost:8080')\n\n// data: Hi Elysia (fully type-safe)\nconst { data: pong } = app.index.get()\n\n// data: 1895\nconst { data: id } = app.id.1895.get()\n\n// data: { id: 1895, name: 'Skadi' }\nconst { data: nendoroid } = app.mirror.post({\n    id: 1895,\n    name: 'Skadi'\n})\n```\n\nSee [documentation](https://elysiajs.com/eden/overview) for more details.\n","readmeFilename":"README.md"}