Skip to main content

Pikku Fetch

You can interact with pikku using a thin wrapper around fetch that does type validation.

Pikku Client

Creating the client

The pikku CLI can generate a pikku-fetch.ts file which would allow you to interact with your functions via http.

It has no client side dependencies, and is driven by a typescript type decalartion file so shouldn't take up any unnecessary space.

In order to do so you can run npx @pikku/cli fetch and will need to have a pikku.config.json file within the fetchFile path set.

For example:

pikku.config.json
loading...

The example code seen above can be viewed here:

fetch.ts
loading...

For additional functionality or feature requests, please submit an issue on the Pikku repository.