A comprehensive SDK for building AI-powered applications with Codicent
Install directly from GitHub:
npm install github:izaxon/codicent-app-sdk
Or using yarn:
yarn add github:izaxon/codicent-app-sdk
Install the Codicent App SDK using npm:
npm install @izaxon/codicent-app-sdk
Or using yarn:
yarn add @izaxon/codicent-app-sdk
Import components and utilities:
import { CodicentService, useChat, Markdown } from 'codicent-app-sdk';
import React from 'react';
import { CodicentService, useChat, Markdown } from 'codicent-app-sdk';
const App = () => {
const codicentService = new CodicentService({
API_BASE_URL: 'https://codicent.com/',
APP_NAME: 'my-app',
// other required options...
});
const { messages, sendMessage } = useChat(codicentService);
return (
{messages.map(msg => (
))}
);
};
Download the latest release from the GitHub Releases page.