@liforma/publisher-tmp
v0.0.1
Published
temp probe
Readme
@liforma/publisher
Server SDK for Liforma programmatic authoring — upload images, create locations/places/clothes/hair/characters, and publish experiences.
npm install @liforma/publisherimport { createPublisher } from '@liforma/publisher';
const publisher = createPublisher(process.env.LIFORMA_PROJECT_ID!, {
apiKey: process.env.LIFORMA_API_KEY!
});
const background = await publisher.uploadImage(lobbyPng, { contentType: 'image/png' });
const location = await publisher.createLocation({ name: 'Hotel lobby', image: background });
const place = await publisher.createPlace({ name: 'Hotel lobby', locationId: location.id });Use a live API key on the server only. Never ship this package or the key to a browser.
Docs (alpha): https://docs.liforma.ai/_alpha/publisher-sdk
