@lukaplayground/aikit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Luka (lukaPlayground)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # AIKit
2
+
3
+ > Universal AI API Client Framework - One interface for all AI providers
4
+
5
+ **๐ŸŒ [Live Demo](https://lukaPlayground.github.io/aikit/)** |
6
+ **๐Ÿ“– [Documentation](https://lukaPlayground.github.io/aikit/getting-started.html)** |
7
+ **๐ŸŽฎ [Playground](https://lukaPlayground.github.io/aikit/demo/playground.html)**
8
+
9
+ AIKit์€ ์ˆœ์ˆ˜ JavaScript๋กœ ์ž‘์„ฑ๋œ ๊ฒฝ๋Ÿ‰ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ, ์—ฌ๋Ÿฌ AI API ์ œ๊ณต์ž๋ฅผ ํ†ต์ผ๋œ ์ธํ„ฐํŽ˜์ด์Šค๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค.
10
+
11
+ ## ๐ŸŽฏ ์ฃผ์š” ํŠน์ง•
12
+
13
+ - **์–ธ์–ด ์ค‘๋ฆฝ์ **: HTML, CSS, JavaScript๋งŒ์œผ๋กœ ๋™์ž‘
14
+ - **Provider Agnostic**: OpenAI, Claude, Gemini ๋“ฑ์„ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉ
15
+ - **์ž๋™ Fallback**: API ์‹คํŒจ ์‹œ ์ž๋™์œผ๋กœ ๋‹ค๋ฅธ ์ œ๊ณต์ž๋กœ ์ „ํ™˜
16
+ - **๋น„์šฉ ์ถ”์ **: ์‹ค์‹œ๊ฐ„ API ์‚ฌ์šฉ ๋น„์šฉ ๋ชจ๋‹ˆํ„ฐ๋ง
17
+ - **์บ์‹ฑ**: LocalStorage ๊ธฐ๋ฐ˜ ์ค‘๋ณต ์š”์ฒญ ๋ฐฉ์ง€
18
+ - **QA ๊ฒ€์ฆ**: ์‘๋‹ต ๊ฒ€์ฆ ๋ฐ ์ž๋™ ์žฌ์‹œ๋„
19
+
20
+ ## ๐Ÿš€ ๋น ๋ฅธ ์‹œ์ž‘
21
+
22
+ ### CDN ์‚ฌ์šฉ
23
+ ```html
24
+ <script src="https://cdn.jsdelivr.net/gh/lukaPlayground/aikit@latest/dist/aikit.min.js"></script>
25
+
26
+ <script>
27
+ const ai = new AIKit({
28
+ provider: 'openai',
29
+ apiKey: 'your-api-key'
30
+ });
31
+
32
+ ai.chat('Hello, AI!').then(response => {
33
+ console.log(response);
34
+ });
35
+ </script>
36
+ ```
37
+
38
+ ### NPM ์„ค์น˜
39
+ ```bash
40
+ npm install @lukaplayground/aikit
41
+ ```
42
+
43
+ ```javascript
44
+ import AIKit from '@lukaplayground/aikit';
45
+
46
+ const ai = new AIKit({
47
+ provider: 'claude',
48
+ apiKey: 'your-api-key'
49
+ });
50
+ ```
51
+
52
+ ## ๐Ÿ“– ๋ฌธ์„œ
53
+
54
+ - [Getting Started](./docs/getting-started.md)
55
+ - [API Reference](./docs/api-reference.md)
56
+ - [Examples](./examples)
57
+
58
+ ## ๐Ÿ“ Blog Series
59
+
60
+ AIKit ๊ฐœ๋ฐœ ๊ณผ์ •๊ณผ ํ™œ์šฉ๋ฒ•์„ ๋ธ”๋กœ๊ทธ ์‹œ๋ฆฌ์ฆˆ๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค:
61
+
62
+ 1. [์™œ AI API ํ†ตํ•ฉ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋งŒ๋“ค์—ˆ๋‚˜?](https://lukaplayground.tistory.com/9) - ํ”„๋กœ์ ํŠธ ์‹œ์ž‘๊ธฐ
63
+ 2. ์ˆœ์ˆ˜ JavaScript๋กœ ๋ฉ€ํ‹ฐ ํ”„๋กœ๋ฐ”์ด๋” ์ง€์›ํ•˜๊ธฐ - ์•„ํ‚คํ…์ฒ˜ (์ž‘์„ฑ ์˜ˆ์ •)
64
+ 3. QA ๊ฐœ๋ฐœ์ž๊ฐ€ ๋งŒ๋“  AI ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ - ๊ฒ€์ฆ๊ณผ ํ…Œ์ŠคํŠธ (์ž‘์„ฑ ์˜ˆ์ •)
65
+ 4. 5๋ถ„ ๋งŒ์— AI ์ฑ—๋ด‡ ๋งŒ๋“ค๊ธฐ - ๋ฐ”๋‹๋ผ JS ํŠœํ† ๋ฆฌ์–ผ (์ž‘์„ฑ ์˜ˆ์ •)
66
+ 5. PHP ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ AIKit ์—ฐ๋™ ๊ฐ€์ด๋“œ (์ž‘์„ฑ ์˜ˆ์ •)
67
+ 6. ๋ชจ๋˜ ํ”„๋ ˆ์ž„์›Œํฌ์—์„œ AIKit ์‚ฌ์šฉํ•˜๊ธฐ - React & Vue (์ž‘์„ฑ ์˜ˆ์ •)
68
+ 7. AI API ๋น„์šฉ 90% ์ค„์ด๊ธฐ - ์ตœ์ ํ™” ์ „๋žต (์ž‘์„ฑ ์˜ˆ์ •)
69
+ 8. ์ฒซ ์˜คํ”ˆ์†Œ์Šค ํ”„๋กœ์ ํŠธ ๋งŒ๋“ค๊ธฐ - ๊ฐœ๋ฐœ ํšŒ๊ณ  (์ž‘์„ฑ ์˜ˆ์ •)
70
+
71
+ ## ๐Ÿ› ๏ธ ๊ฐœ๋ฐœ
72
+
73
+ ```bash
74
+ # ํด๋ก 
75
+ git clone https://github.com/lukaPlayground/aikit.git
76
+
77
+ # ์˜์กด์„ฑ ์„ค์น˜
78
+ npm install
79
+
80
+ # ๊ฐœ๋ฐœ ์„œ๋ฒ„
81
+ npm run dev
82
+
83
+ # ๋นŒ๋“œ
84
+ npm run build
85
+
86
+ # ํ…Œ์ŠคํŠธ
87
+ npm test
88
+ ```
89
+
90
+ ## ๐Ÿ“ ๋ผ์ด์„ผ์Šค
91
+
92
+ MIT License
93
+
94
+ ## ๐Ÿ‘จโ€๐Ÿ’ป ์ œ์ž‘์ž
95
+
96
+ [Luka](https://github.com/lukaPlayground)
97
+
98
+ ---
99
+
100
+ **Blog**: [Luka's Playground](https://lukaplayground.tistory.com)