quilt icon indicating copy to clipboard operation
quilt copied to clipboard

Add better support for protocol buffers

Open lemonmade opened this issue 1 year ago • 2 comments

TODO

  • [x] Support directly serializing array buffers
    • https://chatgpt.com/share/3ed4f746-c763-4f9d-9506-d10a12af5ab3
    • https://www.perplexity.ai/search/im-looking-to-encode-a-protoco-dobl114ASZiZC8Vn2lVCXA
  • [ ] Create custom async action that can optionally rehydrate from stringified cache entry

Reference

  • https://github.com/protobufjs/protobuf.js/tree/master/cli
  • https://github.com/timostamm/protobuf-ts
  • https://buf.build/blog/introducing-connect-query
  • https://github.com/bufbuild/protobuf-es?tab=readme-ov-file
  • https://github.com/bufbuild/protobuf-es/blob/main/docs/generated_code.md
  • https://github.com/connectrpc/connect-es?tab=readme-ov-file
  • https://connectrpc.com/docs/web/getting-started/
  • https://connectrpc.com/docs/protocol/
  • https://github.com/connectrpc/examples-es/blob/main/cloudflare-workers/src/worker-handler.ts
  • https://github.com/tatethurston/TwirpScript

lemonmade avatar Jul 03 '24 05:07 lemonmade

Exploration: https://github.com/lemonmade/24-06-29-quilt-protobuf-test

lemonmade avatar Jul 03 '24 05:07 lemonmade

Some key information from the exploration:

Bundle report:

Screenshot 2024-07-16 at 9 35 47 PM

Typical API request:

Screenshot 2024-07-16 at 9 36 26 PM

lemonmade avatar Jul 21 '24 21:07 lemonmade