Package Exports
- @lukaplayground/aikit
Readme
AIKit
Universal AI API Client Framework - One interface for all AI providers
๐ Live Demo | ๐ Documentation | ๐ฎ Playground
โ ๏ธ Disclaimer: AIKit is an unofficial third-party library and is not affiliated with, endorsed by, or sponsored by OpenAI, Anthropic, or Google.
AIKit์ ์์ JavaScript๋ก ์์ฑ๋ ๊ฒฝ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก, ์ฌ๋ฌ AI API ์ ๊ณต์๋ฅผ ํต์ผ๋ ์ธํฐํ์ด์ค๋ก ์ฌ์ฉํ ์ ์๊ฒ ํด์ค๋๋ค.
๐ฏ ์ฃผ์ ํน์ง
- ์ธ์ด ์ค๋ฆฝ์ : HTML, CSS, JavaScript๋ง์ผ๋ก ๋์
- Provider Agnostic: OpenAI, Claude, Gemini ๋ฑ์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ์ฌ์ฉ
- ์๋ Fallback: API ์คํจ ์ ์๋์ผ๋ก ๋ค๋ฅธ ์ ๊ณต์๋ก ์ ํ
- ๋น์ฉ ์ถ์ : ์ค์๊ฐ API ์ฌ์ฉ ๋น์ฉ ๋ชจ๋ํฐ๋ง
- ์บ์ฑ: LocalStorage ๊ธฐ๋ฐ ์ค๋ณต ์์ฒญ ๋ฐฉ์ง
- QA ๊ฒ์ฆ: ์๋ต ๊ฒ์ฆ ๋ฐ ์๋ ์ฌ์๋
๐ ๋น ๋ฅธ ์์
CDN ์ฌ์ฉ
<script src="https://cdn.jsdelivr.net/gh/lukaPlayground/aikit@latest/dist/aikit.min.js"></script>
<script>
const ai = new AIKit({
provider: 'openai',
apiKey: 'your-api-key'
});
ai.chat('Hello, AI!').then(response => {
console.log(response);
});
</script>NPM ์ค์น
npm install @lukaplayground/aikitimport AIKit from '@lukaplayground/aikit';
const ai = new AIKit({
provider: 'claude',
apiKey: 'your-api-key'
});๐ ๋ฌธ์
๐ ๏ธ ๊ฐ๋ฐ
# ํด๋ก
git clone https://github.com/lukaPlayground/aikit.git
# ์์กด์ฑ ์ค์น
npm install
# ๊ฐ๋ฐ ์๋ฒ
npm run dev
# ๋น๋
npm run build
# ํ
์คํธ
npm testโ ๏ธ Disclaimer
AIKit์ ๋น๊ณต์ ์๋ํํฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค. OpenAI, Anthropic, Google๊ณผ ์ ํด ๊ด๊ณ๊ฐ ์์ต๋๋ค.
- OpenAI is a trademark of OpenAI, LLC
- Claude is a trademark of Anthropic, PBC
- Gemini is a trademark of Google, LLC
๊ฐ AI ์ ๊ณต์์ ์๋น์ค ์ฝ๊ด์ ๋ฐ๋์ ํ์ธํ๊ณ ์ค์ํด ์ฃผ์ธ์:
๐ ๋ผ์ด์ผ์ค
MIT License
๐จโ๐ป ์ ์์
Blog: Luka's Playground