Fastest way to instantiate JS IPFS for API use only

I want to instantiate IPFS in a Lambda function on AWS.
I want the start time to be as fast as possible.

Right now it takes around ~2sec to instantiate JS IPFS with the following function:

const ipfs = await IPFS.create({
offline: true
});

I tried to add the “start: false” option but I cannot do ipfs.cat command if I don’t start.

What is the lightest and fastest way to instantiate the JS IPFS client? I just need to do ipfs.cat or get.

thanks

1 Like