Package Exports
- @lukaplayground/aikit
- @lukaplayground/aikit/dist/aikit.js
- @lukaplayground/aikit/dist/aikit.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lukaplayground/aikit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AIKit
Universal AI API Client Framework - One interface for all AI providers
๐ Live Demo | ๐ Documentation | ๐ฎ Playground
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'
});๐ ๋ฌธ์
๐ Blog Series
AIKit ๊ฐ๋ฐ ๊ณผ์ ๊ณผ ํ์ฉ๋ฒ์ ๋ธ๋ก๊ทธ ์๋ฆฌ์ฆ๋ก ์ ๋ฆฌํ์ต๋๋ค:
- ์ AI API ํตํฉ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋ง๋ค์๋? - ํ๋ก์ ํธ ์์๊ธฐ
- ์์ JavaScript๋ก ๋ฉํฐ ํ๋ก๋ฐ์ด๋ ์ง์ํ๊ธฐ - ์ํคํ ์ฒ (์์ฑ ์์ )
- QA ๊ฐ๋ฐ์๊ฐ ๋ง๋ AI ๋ผ์ด๋ธ๋ฌ๋ฆฌ - ๊ฒ์ฆ๊ณผ ํ ์คํธ (์์ฑ ์์ )
- 5๋ถ ๋ง์ AI ์ฑ๋ด ๋ง๋ค๊ธฐ - ๋ฐ๋๋ผ JS ํํ ๋ฆฌ์ผ (์์ฑ ์์ )
- PHP ๊ฐ๋ฐ์๋ฅผ ์ํ AIKit ์ฐ๋ ๊ฐ์ด๋ (์์ฑ ์์ )
- ๋ชจ๋ ํ๋ ์์ํฌ์์ AIKit ์ฌ์ฉํ๊ธฐ - React & Vue (์์ฑ ์์ )
- AI API ๋น์ฉ 90% ์ค์ด๊ธฐ - ์ต์ ํ ์ ๋ต (์์ฑ ์์ )
- ์ฒซ ์คํ์์ค ํ๋ก์ ํธ ๋ง๋ค๊ธฐ - ๊ฐ๋ฐ ํ๊ณ (์์ฑ ์์ )
๐ ๏ธ ๊ฐ๋ฐ
# ํด๋ก
git clone https://github.com/lukaPlayground/aikit.git
# ์์กด์ฑ ์ค์น
npm install
# ๊ฐ๋ฐ ์๋ฒ
npm run dev
# ๋น๋
npm run build
# ํ
์คํธ
npm test๐ ๋ผ์ด์ผ์ค
MIT License
๐จโ๐ป ์ ์์
Blog: Luka's Playground