{"_id":"@domino14/connect-web","_rev":"1-99a176053aadbc64442a552e3c76ada0","name":"@domino14/connect-web","dist-tags":{"latest":"0.7.0"},"versions":{"0.3.1":{"name":"@domino14/connect-web","version":"0.3.1","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/bufbuild/connect-web.git","directory":"packages/connect-web"},"sideEffects":false,"scripts":{"clean":"rm -rf ./dist/cjs/* ./dist/esm/* ./dist/types/*","build":"npm run build:cjs && npm run build:esm+types","build:cjs":"npx tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'","build:esm+types":"npx tsc --project tsconfig.json --module ES2015 --outDir ./dist/esm --declaration --declarationDir ./dist/types"},"main":"./dist/cjs/index.js","type":"module","types":"./dist/types/index.d.ts","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js","types":"./dist/types/index.d.ts"},"peerDependencies":{"@bufbuild/protobuf":"0.2.1"},"gitHead":"8b12a2cb803894afbff03d38ceb953f666631f5a","description":"This is the runtime library package for Connect-Web. You'll find its code  generator at [@bufbuild/protoc-gen-connect-web](https://www.npmjs.com/package/@bufbuild/protoc-gen-connect-web).","bugs":{"url":"https://github.com/bufbuild/connect-web/issues"},"homepage":"https://github.com/bufbuild/connect-web#readme","_id":"@domino14/connect-web@0.3.1","_nodeVersion":"19.0.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-YOWehrPXddy3Wzi6snl4FLEBI5XF7vh8ZwWsQiMafjPKWLbVg/QeH5Suo5hXWfLDsT7ZnUTDwdmo/XPCw0mhgA==","shasum":"a10fa23efd89f7afc3f6f6233fa6ca8e2f3b2b47","tarball":"https://registry.npmjs.org/@domino14/connect-web/-/connect-web-0.3.1.tgz","fileCount":51,"unpackedSize":157765,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlIURZBq1ALv7gpmrHmEtCz0DMfX88zL9GBz/Q51GqEAiEAqhc5UCzGEHQ7w28f02+MGVWmuTrQSoNY4lidG9tvJ98="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaH0HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFGg//S5Uhdq1N9iIawEYUGKbfLO8wvKIIOZHjT5FU6imtiE5JIrkA\r\ndkBSDnSsTAh83TMgg96h4RJCtv4S7lc5hoJtJlXtAV4U0Udc1qjeTyfXT1yM\r\nnx2HtnuTKzTC1+W5/Njppg7UIZoPukExNcuwAFg4itdei08I2bRsP0r3IM1/\r\nyQARGUOtsNSYddjecohmAQbmlYC2xeHVNTUnWzhG7Wi7jrkhllBMmw+rdrqy\r\nHgMJuUXDxW4sceK4NT9qzNofRUvUHX+bAIXd7TkF6cBCags7uuPyVfh1Y3Id\r\ncgj4Onn9jf30Zglg6e48Rctj6D0/wcyP/D0PtMKxY9DsAI+s2GNvUCwXhKmy\r\nvURRiCr6vPx3cU3wyUrmKgHkuQ3NWMJpIrHk+gzvLodsiEi7IQXPQ7bCzP5B\r\nfU4/MCOTNEvgD5iIGKRDnx60fpJaAHtymooU4uiQYhDhHfKQSA5Q/WWtfEED\r\nqIzg+pk1GbUgsmHeamQQhBuhfMVz4k7E1bO1J7tWRWCa5TeqbWJrdOiBXK1P\r\nkJofDND8/ypnh7QGBVSKwyW9yV8PGFARi9iwmvWb3NTgmGwY8lzkClVwjYeB\r\nEHLiFr+xFZjV98T4zetaslkDxWX9PpMAT5RyPY9B7JGeF13dqJDJqtS/h8Dh\r\nkhjO/HsUAeeSe9K5QKkqV9Y8vAUIGCMuvLA=\r\n=oRPi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"domino14","email":"delsolar@gmail.com"},"directories":{},"maintainers":[{"name":"domino14","email":"delsolar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-web_0.3.1_1667792135695_0.961077082146599"},"_hasShrinkwrap":false},"0.7.0":{"name":"@domino14/connect-web","version":"0.7.0","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/bufbuild/connect-web.git","directory":"packages/connect-web"},"sideEffects":false,"scripts":{"clean":"rm -rf ./dist/cjs/* ./dist/esm/* ./dist/types/*","build":"npm run build:cjs && npm run build:esm+types","build:cjs":"npx tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'","build:esm+types":"npx tsc --project tsconfig.json --module ES2015 --outDir ./dist/esm --declaration --declarationDir ./dist/types"},"main":"./dist/cjs/index.js","type":"module","types":"./dist/types/index.d.ts","exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js","types":"./dist/types/index.d.ts"},"peerDependencies":{"@bufbuild/protobuf":"^1.0.0"},"gitHead":"982edce82a15178e07c8e793de85f59b13f1dff9","description":"This is the runtime library package for Connect-Web. You'll find its code  generator at [@bufbuild/protoc-gen-connect-web](https://www.npmjs.com/package/@bufbuild/protoc-gen-connect-web).","bugs":{"url":"https://github.com/bufbuild/connect-web/issues"},"homepage":"https://github.com/bufbuild/connect-web#readme","_id":"@domino14/connect-web@0.7.0","_nodeVersion":"19.6.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-n5UfwT6EeNmFCkvwXaQ7a7sMnNLVa78pkqK+EcxtgaIHpnZFme0hTuwPyqmnx2QJlsuSnsslwU72DBUvJ/Lx6Q==","shasum":"ae80f8806ca7750211d2582d45cf0b2d8d2df4fa","tarball":"https://registry.npmjs.org/@domino14/connect-web/-/connect-web-0.7.0.tgz","fileCount":51,"unpackedSize":157847,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbR8FuZj+i1FurcwxdFhvuI4BtdaaaV5ZsKEepo/POqAiAzQ6tt3sHZ1cj1TW6z8lGOUaqoNDH+mlMO4PKNIwMohg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4AqLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8Jw/9FuMvoSYaH+4wEiAiRMVPkkVrRGmVQhr0Jxcv/unphTv4wiK/\r\nDReicn93mieQjwWC+/NTIWI4mP2ru+J3I3mDynqccxBTDK10WDdog+lmrfTZ\r\n1d0xJqNzzayb6i1W5PdMpQw9G7C1WRkPLU2cHxTw+uCVOC3iQpHYHOwGEkdG\r\nAKlTPVDTQ+MyxytRHPAGh13WFO9OL9JwLORhesfB0B/WwvQ9Yyr4caL4YzHq\r\n1SZ2jz7vPwcKrzDGjUOTkv/uZLIkL5c/phHtbmIXGIV2HCZNGnfKt0KeRp3y\r\ntxL8xK8TPR9+o1yhm6lZzbfrbpYCRTI3FhfFfXY87gN4a7P4mCR1lCWlx6Yl\r\nV+eZH0mG0IHrNhiGOiKvZ4Ui9Jjpr1rjXYr6C/INnLNHTFI0z4MNHeOkogHP\r\nIPNyPxKOJHnrRM1/SWUv/kb7KsQxE63Rp5MpVMKfc72Drbrw4rN21dRzhsU3\r\ntGGVpmlUjeX/e1PB+EKmoN1zbbz5iLAXXYDc1cHed73yKGc4eqyQ29Uj7pRS\r\nmxR88ooowJtSNwpT/t7fSZHlF0Cldewk5YXw2cxTUeAyIJ3SHZs6LaMscimf\r\nbka/HdRWQ6eifllyjVAA1jMZXG0V4w7m1+7XXQNkOBv/qcC36Nbi1pxQRBdD\r\ns2xKgMO+nk6RNiDqgvWoMSJrQ2tx2qxR/kk=\r\n=zzsM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"domino14","email":"delsolar@gmail.com"},"directories":{},"maintainers":[{"name":"domino14","email":"delsolar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-web_0.7.0_1675627147261_0.18760829769673237"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-07T03:35:35.625Z","0.3.1":"2022-11-07T03:35:35.871Z","modified":"2023-02-05T19:59:07.564Z","0.7.0":"2023-02-05T19:59:07.452Z"},"maintainers":[{"name":"domino14","email":"delsolar@gmail.com"}],"description":"This is the runtime library package for Connect-Web. You'll find its code  generator at [@bufbuild/protoc-gen-connect-web](https://www.npmjs.com/package/@bufbuild/protoc-gen-connect-web).","homepage":"https://github.com/bufbuild/connect-web#readme","repository":{"type":"git","url":"git+https://github.com/bufbuild/connect-web.git","directory":"packages/connect-web"},"bugs":{"url":"https://github.com/bufbuild/connect-web/issues"},"license":"Apache-2.0","readme":"# @bufbuild/connect-web\n\nThis is the runtime library package for Connect-Web. You'll find its code \ngenerator at [@bufbuild/protoc-gen-connect-web](https://www.npmjs.com/package/@bufbuild/protoc-gen-connect-web).\n\nConnect-Web is a simple library to call remote procedures from a web browser. \nUnlike REST, you get a type-safe client and never have to think about\nserialization again.\n\nThe procedures are defined in a [Protocol Buffer](https://developers.google.com/protocol-buffers)\nschema implemented by your backend, and Connect-Web generates the clients and\nrelated types to access the backend. The clients support two protocols:\ngRPC-web, and Connect's own protocol.\n\nThe [Connect protocol](https://connect.build/docs/protocol/) is a simple,\nPOST-only protocol that works over HTTP/1.1 or HTTP/2. It supports\nserver-streaming methods just like gRPC-Web, but is easy to debug in the\nnetwork inspector. Calling a Connect API is easy enough just with the fetch\nAPI. Try it with our live demo:\n\n```ts\nconst res = await fetch(\"https://demo.connect.build/buf.connect.demo.eliza.v1.ElizaService/Say\", {\n  method: \"POST\",\n  headers: {\"content-type\": \"application/json\"},\n  body: `{\"sentence\": \"I feel happy.\"}`\n});\nconst answer = await res.json();\nconsole.log(answer);\n// {sentence: 'When you feel happy, what do you do?'}\n```\n\nUsing the client generated by Connect-Web, the same call becomes quite a bit\nsimpler:\n\n```ts\nconst answer = await eliza.say({sentence: \"I feel happy.\"});\nconsole.log(answer);\n// {sentence: 'When you feel happy, what do you do?'}\n```\n\nTo get started, head over to the [docs](https://connect.build/docs/web/getting-started) \nfor a tutorial, or take a look at [our examples](https://github.com/bufbuild/connect-web-integration)\nfor integration with various frameworks. \n","readmeFilename":"README.md"}