sakuin
v0.2.18
Published
SDK for XLog
Readme
Sakuin
Usage
Install dependencies, recommended use ni.
ni sakuinCreate a client and use the SDK to get the data you need.
Most functions take HandleOrCharacterId and NoteId as the arguments.
import { Client } from "sakuin";
const client = new Client();
const site = = await client.site.getInfo(HANDLE)Astro Loader
import { defineCollection } from 'astro:content'
import { postLoader } from 'sakuin/astro'
const posts = defineCollection({
loader: postLoader({ handle: 'hyoban' }),
})
export const collections = { posts }See also
- xLog An open-source creative community written on the blockchain.
- crossbell.js A JavaScript SDK to interact with Crossbell.
