Skip to content

@kkna/preset-openheart ​

OpenHeart Preset for KKna.

npm versionnpm downloadslicense

Usage ​

NPM ​

install ​
sh
# npm
npm install @kkna/preset-openheart

# yarn
yarn add @kkna/preset-openheart

# pnpm
pnpm install @kkna/preset-openheart

# bun
bun install @kkna/preset-openheart
use ​
ts
import { provider } from '@kkna/context'
import { openheart } from '@kkna/preset-openheart'

const provide = provider(document.body, {
  initialValue: {
    presets: [
      openheart({ endpoint: 'https://api.openheart.fyi' }),
    ],
  },
})

provide.hostConnected()

License ​

MIT