@junyul/core
v1.2.2
Published
Junyul — Korea AI Framework Act compliance SDK for JavaScript/TypeScript (framework-neutral core).
Readme
@junyul/core
Framework-neutral core for the Junyul SDK (Node, browser, workers).
import { init, recordHeartbeat, track } from '@junyul/core';
init({ apiKey: process.env.JUNYUL_API_KEY!, environment: 'production' });
const answer = await track('gpt_chatbot_v1', async () => {
return openai.chat.completions.create({ ... });
});
await recordHeartbeat({ assetId: 'gpt_chatbot_v1' });Tracked failures are emitted with hashed error metadata and no raw error message. Heartbeat events report queue depth, outbox depth, and circuit state for the SDK telemetry dashboard.
See @junyul/react, @junyul/node, @junyul/vue.
