JSPM

@lukaplayground/aikit

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q33733F
  • License MIT

Universal AI API Client Framework - One interface for all AI providers

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/aikit
import AIKit from '@lukaplayground/aikit';

const ai = new AIKit({
    provider: 'claude',
    apiKey: 'your-api-key'
});

๐Ÿ“– ๋ฌธ์„œ

๐Ÿ“ Blog Series

AIKit ๊ฐœ๋ฐœ ๊ณผ์ •๊ณผ ํ™œ์šฉ๋ฒ•์„ ๋ธ”๋กœ๊ทธ ์‹œ๋ฆฌ์ฆˆ๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค:

  1. ์™œ AI API ํ†ตํ•ฉ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋งŒ๋“ค์—ˆ๋‚˜? - ํ”„๋กœ์ ํŠธ ์‹œ์ž‘๊ธฐ
  2. ์ˆœ์ˆ˜ JavaScript๋กœ ๋ฉ€ํ‹ฐ ํ”„๋กœ๋ฐ”์ด๋” ์ง€์›ํ•˜๊ธฐ - ์•„ํ‚คํ…์ฒ˜ (์ž‘์„ฑ ์˜ˆ์ •)
  3. QA ๊ฐœ๋ฐœ์ž๊ฐ€ ๋งŒ๋“  AI ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ - ๊ฒ€์ฆ๊ณผ ํ…Œ์ŠคํŠธ (์ž‘์„ฑ ์˜ˆ์ •)
  4. 5๋ถ„ ๋งŒ์— AI ์ฑ—๋ด‡ ๋งŒ๋“ค๊ธฐ - ๋ฐ”๋‹๋ผ JS ํŠœํ† ๋ฆฌ์–ผ (์ž‘์„ฑ ์˜ˆ์ •)
  5. PHP ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ AIKit ์—ฐ๋™ ๊ฐ€์ด๋“œ (์ž‘์„ฑ ์˜ˆ์ •)
  6. ๋ชจ๋˜ ํ”„๋ ˆ์ž„์›Œํฌ์—์„œ AIKit ์‚ฌ์šฉํ•˜๊ธฐ - React & Vue (์ž‘์„ฑ ์˜ˆ์ •)
  7. AI API ๋น„์šฉ 90% ์ค„์ด๊ธฐ - ์ตœ์ ํ™” ์ „๋žต (์ž‘์„ฑ ์˜ˆ์ •)
  8. ์ฒซ ์˜คํ”ˆ์†Œ์Šค ํ”„๋กœ์ ํŠธ ๋งŒ๋“ค๊ธฐ - ๊ฐœ๋ฐœ ํšŒ๊ณ  (์ž‘์„ฑ ์˜ˆ์ •)

๐Ÿ› ๏ธ ๊ฐœ๋ฐœ

# ํด๋ก 
git clone https://github.com/lukaPlayground/aikit.git

# ์˜์กด์„ฑ ์„ค์น˜
npm install

# ๊ฐœ๋ฐœ ์„œ๋ฒ„
npm run dev

# ๋นŒ๋“œ
npm run build

# ํ…Œ์ŠคํŠธ
npm test

๐Ÿ“ ๋ผ์ด์„ผ์Šค

MIT License

๐Ÿ‘จโ€๐Ÿ’ป ์ œ์ž‘์ž

Luka


Blog: Luka's Playground