3 ms·
I'm curious to see the output. Most of the time I specifically avoid using the SDK published by the API provider because it's thousands of lines of code when a
by TehShrike 2y ago
I'm curious to see the output. Most of the time I specifically avoid using the SDK published by the API provider because it's thousands of lines of code when all I need is ten lines wrapping fetch.
- rattray 2y agoWe try to keep it to a minimum, especially in JS (though we have some nice improvements coming soon when we deprecate node-fetch in favor of built-in fetch). The package sizes aren't tiny because we include thorough types and sourcemaps, but the bundle sizes are fairly tidy. Here's an example of a typical RESTful endpoint (Lithic's `client.cards.create()`: https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e9d15153510b97488875c51e034f/src/resources/cards/cards.ts#L26-L28 https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e... Here are some example repos produced by Stainless: 1. https://github.com/openai/openai-node https://github.com/openai/openai-node 2. https://github.com/openai/openai-python https://github.com/openai/openai-python 3. https://github.com/cloudflare/cloudflare-go https://github.com/cloudflare/cloudflare-go 4. https://github.com/Modern-Treasury/modern-treasury-java https://github.com/Modern-Treasury/modern-treasury-java