@vedika-io/sdk 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/CHANGELOG.md ADDED
@@ -0,0 +1,196 @@
1
+ # Changelog
2
+
3
+ All notable changes to the Vedika JavaScript SDK will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.3.0] - 2026-01-02
9
+
10
+ ### Added
11
+
12
+ #### Free Sandbox Environment
13
+ - **New sandbox endpoints** - Test all API features without an API key
14
+ - `getSandboxHoroscope()` - Daily/weekly/monthly horoscopes (mock data)
15
+ - `getSandboxPanchang()` - Today's panchang (mock data)
16
+ - `sandboxChat()` - AI chat testing (mock responses)
17
+ - `getSandboxBirthChart()` - Birth chart generation (mock data)
18
+ - Zero cost testing for development and integration
19
+
20
+ #### New Computational Endpoints (15 new features)
21
+ - `getSadeSati()` - Saturn 7.5 year transit analysis with phases
22
+ - `getChandrashtama()` - Moon 8th house transit detection
23
+ - `getRitu()` - 6 Hindu seasons calculation
24
+ - `getSolstice()` - Equinoxes and solstices
25
+ - `getAnanadiYoga()` - Weekday + Nakshatra yoga combinations
26
+ - `getAuspiciousYoga()` - 27 yoga classifications
27
+ - `getAuspiciousPeriod()` - Good timing recommendations
28
+ - `getInauspiciousPeriod()` - Bad periods to avoid
29
+ - `getGowriNallaNeram()` - South Indian Choghadiya
30
+ - `getDishaShool()` - Inauspicious direction by weekday
31
+ - `getChandraBala()` - Moon strength analysis
32
+ - `getTaraBala()` - Nakshatra compatibility scoring
33
+ - `getUpagrahaPositions()` - Sub-planet positions (Dhuma, Vyatipata, etc.)
34
+ - `getPlanetRelationships()` - Naisargika Maitri (natural friendships)
35
+
36
+ #### Enhanced Compatibility Matching
37
+ - `getGunaMilan()` - Full 36 Guna (Ashtakoota) matching
38
+ - All 8 Kootas: Varna, Vasya, Tara, Yoni, Graha Maitri, Gana, Bhakoot, Nadi
39
+ - Individual scores + total + recommendation
40
+ - Dosha detection with remedies
41
+
42
+ ### Changed
43
+ - **5x faster response times** - Optimized parallel processing (12s vs 60s)
44
+ - Improved error messages with actionable suggestions
45
+ - Better rate limit handling with automatic retry
46
+
47
+ ### Fixed
48
+ - Timezone handling for edge cases
49
+ - Connection pooling for high-volume usage
50
+
51
+ ---
52
+
53
+ ## [1.2.0] - 2025-12-26
54
+
55
+ ### Added
56
+
57
+ #### GraphQL Support
58
+ - `graphqlQuery()` - Execute GraphQL queries against Vedika API
59
+ - Full schema introspection support
60
+ - Nested query optimization
61
+
62
+ #### Webhook Integration
63
+ - `registerWebhook()` - Subscribe to real-time events
64
+ - `verifyWebhookSignature()` - Validate webhook authenticity
65
+ - Supported events: `chart.generated`, `ai.response.complete`, `billing.threshold`
66
+
67
+ #### Postman Collection
68
+ - Official Postman collection published to API Network
69
+ - Pre-configured environments (Sandbox/Production)
70
+ - One-click import: https://www.postman.com/vedikaai/intelligence-platform
71
+
72
+ ### Changed
73
+ - Updated base URL routing for better latency (geo-aware)
74
+ - Improved streaming response handling
75
+
76
+ ---
77
+
78
+ ## [1.1.0] - 2025-12-15
79
+
80
+ ### Added
81
+
82
+ #### Enhanced Muhurta Features
83
+ - `getChoghadiya()` - Day/night Choghadiya periods
84
+ - `getHora()` - Planetary hour calculations
85
+ - `getRahuKaal()` - Rahu Kaal timing
86
+ - `getGulikaKaal()` - Gulika Kaal timing
87
+ - `getYamaghanta()` - Yamaghanta periods
88
+ - `getAbhijitMuhurta()` - Most auspicious muhurta
89
+ - `getBrahmaMuhurta()` - Pre-dawn auspicious time
90
+ - `getDurmuhurta()` - Inauspicious muhurta periods
91
+
92
+ #### Enhanced Dosha Analysis
93
+ - `getMangalDosha()` - Mars dosha with intensity levels
94
+ - `getKaalSarpDosha()` - Kaal Sarp with type classification
95
+ - `getPitruDosha()` - Ancestral karma indicators
96
+ - `getNadiDosha()` - Nadi compatibility issues
97
+
98
+ ### Changed
99
+ - Improved accuracy for planetary calculations (Swiss Ephemeris precision)
100
+ - Better handling of DST transitions
101
+
102
+ ---
103
+
104
+ ## [1.0.0] - 2025-11-08
105
+
106
+ ### Added
107
+
108
+ #### Core Features
109
+ - Initial release of Vedika JavaScript/Node.js SDK
110
+ - `VedikaClient` class for interacting with Vedika Astrology API
111
+ - Support for AI-powered conversational astrology queries
112
+ - Multi-agent intelligence integration
113
+ - Full TypeScript support with type definitions
114
+
115
+ #### API Methods
116
+ - `askQuestion()` - Ask conversational astrology questions
117
+ - `askQuestionStream()` - Stream responses in real-time
118
+ - `getBirthChart()` - Generate complete birth charts (Kundali)
119
+ - `getDashas()` - Calculate Vimshottari Dasha periods
120
+ - `checkCompatibility()` - Ashtakoota marriage compatibility matching
121
+ - `detectYogas()` - Detect 300+ astrological yogas
122
+ - `analyzeDoshas()` - Comprehensive dosha analysis
123
+ - `getMuhurtha()` - Find auspicious times for events
124
+ - `getNumerology()` - 37 numerology calculations
125
+ - `batchProcess()` - Process multiple queries efficiently
126
+
127
+ #### TypeScript Types
128
+ - `QuestionResponse` - AI chatbot response interface
129
+ - `BirthChart` - Complete birth chart with planets and houses
130
+ - `DashaResponse` - Mahadasha, Antardasha, and Pratyantardasha periods
131
+ - `CompatibilityResponse` - Ashtakoota matching results
132
+ - `YogaResponse` - Detected yogas with descriptions
133
+ - `DoshaResponse` - Kaal Sarp, Mangal, Sade Sati, Pitra dosha analysis
134
+ - `MuhurthaResponse` - Auspicious timing analysis
135
+ - `NumerologyResponse` - Numerology calculation results
136
+
137
+ #### Exception Handling
138
+ - `VedikaAPIError` - Base exception for all API errors
139
+ - `AuthenticationError` - Invalid API key errors
140
+ - `RateLimitError` - Rate limit exceeded errors
141
+ - `InsufficientCreditsError` - Insufficient credits errors
142
+ - `ValidationError` - Input validation errors
143
+ - `TimeoutError` - Request timeout errors
144
+ - `ServerError` - Internal server errors
145
+ - `NetworkError` - Network connectivity errors
146
+
147
+ #### Features
148
+ - Automatic retry logic with exponential backoff
149
+ - Request timeout configuration
150
+ - HTTPS-only communication
151
+ - Environment variable support for API keys
152
+ - 22 language support (including 11 Indian languages)
153
+ - Prompt caching for cost savings on repeated queries
154
+ - ES6 module and CommonJS support
155
+ - Promise-based async API
156
+ - Async generator for streaming
157
+
158
+ #### Documentation
159
+ - Comprehensive README with examples
160
+ - Detailed API reference documentation
161
+ - JSDoc comments for all public APIs
162
+ - Security best practices guide
163
+ - Contributing guidelines
164
+
165
+ #### Development Tools
166
+ - TypeScript 5.0+ support
167
+ - Node.js 14+ support
168
+ - ESLint for linting
169
+ - Prettier for code formatting
170
+ - Jest testing framework
171
+
172
+ ---
173
+
174
+ ## Version History
175
+
176
+ ### Version Numbering
177
+
178
+ We follow [Semantic Versioning](https://semver.org/):
179
+ - **Major version** (1.x.x): Breaking changes
180
+ - **Minor version** (x.1.x): New features, backward compatible
181
+ - **Patch version** (x.x.1): Bug fixes, backward compatible
182
+
183
+ ### Support Policy
184
+
185
+ - **Latest major version**: Full support, security updates, bug fixes, new features
186
+ - **Previous major version**: Security updates and critical bug fixes for 6 months
187
+ - **Older versions**: No support
188
+
189
+ ---
190
+
191
+ For the complete version history, see: https://github.com/vedika-io/vedika-sdk-javascript/releases
192
+
193
+ [1.3.0]: https://github.com/vedika-io/vedika-sdk-javascript/releases/tag/v1.3.0
194
+ [1.2.0]: https://github.com/vedika-io/vedika-sdk-javascript/releases/tag/v1.2.0
195
+ [1.1.0]: https://github.com/vedika-io/vedika-sdk-javascript/releases/tag/v1.1.0
196
+ [1.0.0]: https://github.com/vedika-io/vedika-sdk-javascript/releases/tag/v1.0.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vedika Intelligence
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,445 @@
1
+ # Vedika JavaScript/Node.js SDK
2
+
3
+ Official JavaScript/Node.js SDK for the Vedika Astrology API - The **only B2B astrology API with AI-powered chatbot queries**.
4
+
5
+ [![npm version](https://badge.fury.io/js/vedika-sdk.svg)](https://badge.fury.io/js/vedika-sdk)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+ [![Node Version](https://img.shields.io/node/v/vedika-sdk.svg)](https://www.npmjs.com/package/vedika-sdk)
8
+
9
+ ## ๐ŸŒŸ What Makes Vedika Unique?
10
+
11
+ Vedika is the **ONLY B2B astrology API** that offers:
12
+ - โœ… **AI-Powered Chatbot Queries** (conversational astrology questions)
13
+ - โœ… **Multi-Agent Swarm Intelligence** (6 specialized AI agents)
14
+ - โœ… **108+ Traditional Features** (birth charts, dashas, yogas, doshas, compatibility)
15
+ - โœ… **97.2% Prediction Accuracy** (vs 51% industry average)
16
+ - โœ… **99.9% Uptime** (3-tier ephemeris fallback)
17
+ - โœ… **22 Language Support** (including 11 Indian languages)
18
+
19
+ **In summary:** All the features of traditional astrology APIs, **PLUS** conversational AI capabilities no other provider has.
20
+
21
+ ## ๐Ÿš€ Quick Start
22
+
23
+ ### Installation
24
+
25
+ ```bash
26
+ npm install vedika-sdk
27
+ # or
28
+ yarn add vedika-sdk
29
+ ```
30
+
31
+ ### Basic Usage (Node.js)
32
+
33
+ ```javascript
34
+ const { VedikaClient } = require('vedika-sdk');
35
+
36
+ // Initialize client
37
+ const client = new VedikaClient({
38
+ apiKey: 'vk_test_your_api_key_here'
39
+ });
40
+
41
+ // Ask a conversational astrology question (UNIQUE to Vedika!)
42
+ const response = await client.askQuestion({
43
+ question: 'What are my career prospects for this year?',
44
+ birthDetails: {
45
+ datetime: '1990-06-15T14:30:00+05:30',
46
+ latitude: 28.6139,
47
+ longitude: 77.2090,
48
+ timezone: 'Asia/Kolkata'
49
+ },
50
+ language: 'en' // Supports 22 languages!
51
+ });
52
+
53
+ console.log(response.answer);
54
+ console.log(`Confidence: ${response.confidence}`);
55
+ console.log(`Credits used: ${response.creditsUsed}`);
56
+ ```
57
+
58
+ ### ES6 Modules
59
+
60
+ ```javascript
61
+ import { VedikaClient } from 'vedika-sdk';
62
+
63
+ const client = new VedikaClient({ apiKey: 'vk_test_...' });
64
+
65
+ // Use async/await
66
+ const response = await client.askQuestion({
67
+ question: 'When should I start my new business?',
68
+ birthDetails: { /* ... */ }
69
+ });
70
+ ```
71
+
72
+ ### React Example
73
+
74
+ ```jsx
75
+ import { VedikaClient } from 'vedika-sdk';
76
+ import { useState } from 'react';
77
+
78
+ function AstrologyChat() {
79
+ const [answer, setAnswer] = useState('');
80
+ const client = new VedikaClient({ apiKey: process.env.REACT_APP_VEDIKA_API_KEY });
81
+
82
+ const askQuestion = async (question) => {
83
+ const response = await client.askQuestion({
84
+ question,
85
+ birthDetails: {
86
+ datetime: '1990-06-15T14:30:00+05:30',
87
+ latitude: 28.6139,
88
+ longitude: 77.2090,
89
+ timezone: 'Asia/Kolkata'
90
+ }
91
+ });
92
+ setAnswer(response.answer);
93
+ };
94
+
95
+ return (
96
+ <div>
97
+ <button onClick={() => askQuestion('What are my career prospects?')}>
98
+ Ask AI Astrologer
99
+ </button>
100
+ <p>{answer}</p>
101
+ </div>
102
+ );
103
+ }
104
+ ```
105
+
106
+ ## ๐Ÿ“š Features
107
+
108
+ ### ๐Ÿค– AI Chatbot Queries (Unique Feature!)
109
+
110
+ ```javascript
111
+ // Conversational astrology - No other API has this!
112
+ const response = await client.askQuestion({
113
+ question: 'When should I start my new business?',
114
+ birthDetails: birthInfo,
115
+ language: 'hi' // Ask in Hindi!
116
+ });
117
+ ```
118
+
119
+ ### ๐Ÿ“Š Birth Chart Analysis
120
+
121
+ ```javascript
122
+ // Generate complete birth chart
123
+ const chart = await client.getBirthChart({
124
+ datetime: '1990-06-15T14:30:00+05:30',
125
+ latitude: 28.6139,
126
+ longitude: 77.2090,
127
+ ayanamsa: 'lahiri' // 8 ayanamsa systems supported
128
+ });
129
+
130
+ console.log(chart.planets);
131
+ console.log(chart.houses);
132
+ console.log(chart.ascendant);
133
+ ```
134
+
135
+ ### ๐Ÿ”ฎ Dasha Periods
136
+
137
+ ```javascript
138
+ // Get Vimshottari Dasha periods
139
+ const dashas = await client.getDashas({ birthDetails: birthInfo });
140
+
141
+ dashas.mahadashas.forEach(dasha => {
142
+ console.log(`${dasha.planet}: ${dasha.startDate} to ${dasha.endDate}`);
143
+ });
144
+ ```
145
+
146
+ ### ๐Ÿ’‘ Compatibility Analysis
147
+
148
+ ```javascript
149
+ // Ashtakoota matching for marriage compatibility
150
+ const compatibility = await client.checkCompatibility({
151
+ person1: birthInfo1,
152
+ person2: birthInfo2
153
+ });
154
+
155
+ console.log(`Total score: ${compatibility.totalScore}/36`);
156
+ console.log(`Compatibility: ${compatibility.level}`);
157
+ ```
158
+
159
+ ### ๐ŸŒŸ Yoga Detection
160
+
161
+ ```javascript
162
+ // Detect 300+ astrological yogas
163
+ const yogas = await client.detectYogas({ birthDetails: birthInfo });
164
+
165
+ console.log(`Found ${yogas.yogas.length} yogas:`);
166
+ yogas.yogas.forEach(yoga => {
167
+ console.log(`- ${yoga.name}: ${yoga.description}`);
168
+ });
169
+ ```
170
+
171
+ ### โš ๏ธ Dosha Analysis
172
+
173
+ ```javascript
174
+ // Check for Kaal Sarp, Mangal, Sade Sati doshas
175
+ const doshas = await client.analyzeDoshas({ birthDetails: birthInfo });
176
+
177
+ if (doshas.kaalSarpDosha.present) {
178
+ console.log('Kaal Sarp Dosha detected');
179
+ console.log(`Type: ${doshas.kaalSarpDosha.type}`);
180
+ console.log(`Remedies: ${doshas.kaalSarpDosha.remedies}`);
181
+ }
182
+ ```
183
+
184
+ ### ๐ŸŽฏ Muhurtha (Auspicious Timing)
185
+
186
+ ```javascript
187
+ // Find auspicious times for important events
188
+ const muhurtha = await client.getMuhurtha({
189
+ date: '2025-11-01',
190
+ location: { latitude: 28.6139, longitude: 77.2090 },
191
+ eventType: 'wedding'
192
+ });
193
+
194
+ console.log(`Auspicious times: ${muhurtha.goodTimes}`);
195
+ console.log(`Inauspicious times: ${muhurtha.badTimes}`);
196
+ ```
197
+
198
+ ### ๐Ÿ”ข Numerology
199
+
200
+ ```javascript
201
+ // 37 numerology calculations
202
+ const numerology = await client.getNumerology({
203
+ name: 'John Doe',
204
+ birthDate: '1990-06-15'
205
+ });
206
+
207
+ console.log(`Life Path Number: ${numerology.lifePath}`);
208
+ console.log(`Expression Number: ${numerology.expression}`);
209
+ console.log(`Soul Urge Number: ${numerology.soulUrge}`);
210
+ ```
211
+
212
+ ## ๐ŸŒ Multi-Language Support
213
+
214
+ Vedika supports 22 languages:
215
+
216
+ ```javascript
217
+ // Ask in Hindi
218
+ const response = await client.askQuestion({
219
+ question: 'เคฎเฅ‡เคฐเฅ€ เค•เฅเค‚เคกเคฒเฅ€ เคฎเฅ‡เค‚ เค•เฅŒเคจ เคธเฅ‡ เคฏเฅ‹เค— เคนเฅˆเค‚?',
220
+ birthDetails: birthInfo,
221
+ language: 'hi'
222
+ });
223
+
224
+ // Ask in Tamil
225
+ const response = await client.askQuestion({
226
+ question: 'เฎŽเฎฉเฏ เฎœเฎพเฎคเฎ•เฎคเฏเฎคเฎฟเฎฒเฏ เฎŽเฎฉเฏเฎฉ เฎฏเฏ‹เฎ•เฎ™เฏเฎ•เฎณเฏ เฎ‰เฎณเฏเฎณเฎฉ?',
227
+ birthDetails: birthInfo,
228
+ language: 'ta'
229
+ });
230
+ ```
231
+
232
+ **Supported languages:**
233
+ - ๐Ÿ‡ฎ๐Ÿ‡ณ Indian: Hindi, Bengali, Telugu, Tamil, Gujarati, Kannada, Malayalam, Marathi, Punjabi, Odia, Assamese
234
+ - ๐ŸŒ International: English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean, Chinese, Arabic
235
+
236
+ ## ๐ŸŽจ Advanced Features
237
+
238
+ ### Streaming Responses (Real-Time)
239
+
240
+ ```javascript
241
+ // Stream responses for better UX
242
+ for await (const chunk of client.askQuestionStream({
243
+ question: 'What are my career prospects?',
244
+ birthDetails: birthInfo
245
+ })) {
246
+ process.stdout.write(chunk);
247
+ }
248
+ ```
249
+
250
+ ### Batch Processing
251
+
252
+ ```javascript
253
+ // Process multiple queries efficiently
254
+ const queries = [
255
+ { question: 'Career prospects?', birthDetails: birth1 },
256
+ { question: 'Marriage timing?', birthDetails: birth2 },
257
+ { question: 'Business success?', birthDetails: birth3 }
258
+ ];
259
+
260
+ const results = await client.batchProcess(queries);
261
+ ```
262
+
263
+ ### Error Handling
264
+
265
+ ```javascript
266
+ try {
267
+ const response = await client.askQuestion({
268
+ question: 'What are my career prospects?',
269
+ birthDetails: birthInfo
270
+ });
271
+ console.log(response.answer);
272
+ } catch (error) {
273
+ if (error.name === 'AuthenticationError') {
274
+ console.error('Invalid API key');
275
+ } else if (error.name === 'InsufficientCreditsError') {
276
+ console.error('Add more credits at https://vedika.io/dashboard.html');
277
+ } else if (error.name === 'RateLimitError') {
278
+ console.error('Rate limit exceeded, please wait');
279
+ } else {
280
+ console.error('API error:', error.message);
281
+ }
282
+ }
283
+ ```
284
+
285
+ ## ๐Ÿ’ฐ Pricing
286
+
287
+ Token-based pricing - pay only for what you use:
288
+
289
+ | Query Type | Cost | Tokens |
290
+ |------------|------|--------|
291
+ | Simple (daily horoscope) | $0.19 | ~500 |
292
+ | Standard (birth chart) | $0.35 | ~800 |
293
+ | Complex (comprehensive) | $0.65 | ~1,500 |
294
+
295
+ **Free tier:** Test API with free credits on signup!
296
+
297
+ See full pricing: https://vedika.io/pricing.html
298
+
299
+ ## ๐Ÿ”ง Configuration
300
+
301
+ ### Environment Variables
302
+
303
+ ```bash
304
+ # .env file
305
+ VEDIKA_API_KEY=vk_test_your_api_key_here
306
+ VEDIKA_API_URL=https://vedika-api-854222120654.us-central1.run.app # Optional
307
+ ```
308
+
309
+ ### Client Options
310
+
311
+ ```javascript
312
+ const client = new VedikaClient({
313
+ apiKey: 'vk_test_...',
314
+ baseUrl: 'https://vedika-api-854222120654.us-central1.run.app', // Optional
315
+ timeout: 60000, // Request timeout in milliseconds
316
+ maxRetries: 3, // Retry failed requests
317
+ cacheEnabled: true, // Enable prompt caching for cost savings
318
+ language: 'en' // Default language for responses
319
+ });
320
+ ```
321
+
322
+ ## ๐Ÿงช Testing
323
+
324
+ ```bash
325
+ # Install dev dependencies
326
+ npm install --save-dev
327
+
328
+ # Run tests
329
+ npm test
330
+
331
+ # Run tests with coverage
332
+ npm run test:coverage
333
+
334
+ # Run specific test
335
+ npm test -- test/chatbot.test.js
336
+ ```
337
+
338
+ ## ๐Ÿ“ Examples
339
+
340
+ Check out the `examples/` directory:
341
+
342
+ - `basic-chatbot.js` - Simple conversational astrology bot
343
+ - `birth-chart.js` - Complete birth chart generation
344
+ - `compatibility.js` - Marriage compatibility analysis
345
+ - `dosha-detector.js` - Comprehensive dosha analysis
346
+ - `muhurtha-finder.js` - Find auspicious times
347
+ - `multi-language.js` - Multi-language support demo
348
+ - `streaming.js` - Real-time streaming responses
349
+ - `express-app.js` - Express server example
350
+ - `react-app.jsx` - React component example
351
+
352
+ ## ๐Ÿ› Troubleshooting
353
+
354
+ ### "Invalid API Key"
355
+
356
+ Make sure you're using a valid API key from https://vedika.io/dashboard.html
357
+
358
+ Keys start with:
359
+ - `vk_test_` for testing
360
+ - `vk_live_` for production
361
+
362
+ ### "Insufficient Credits"
363
+
364
+ Add credits to your account: https://vedika.io/dashboard.html
365
+
366
+ ### "Request Timeout"
367
+
368
+ For complex queries, increase timeout:
369
+
370
+ ```javascript
371
+ const client = new VedikaClient({
372
+ apiKey: '...',
373
+ timeout: 120000 // 2 minutes
374
+ });
375
+ ```
376
+
377
+ ### "Rate Limit Exceeded"
378
+
379
+ You're sending too many requests. Wait a moment or upgrade your plan.
380
+
381
+ ## ๐Ÿ“Š Performance
382
+
383
+ - **Average response time:** 2.14 seconds (simple queries)
384
+ - **Complex queries:** 28-36 seconds (multi-agent processing)
385
+ - **Uptime:** 99.9% (3-tier ephemeris fallback)
386
+ - **Accuracy:** 97.2% prediction accuracy
387
+
388
+ ## ๐Ÿ”’ Security
389
+
390
+ - โœ… API keys encrypted in transit (HTTPS)
391
+ - โœ… GDPR compliant
392
+ - โœ… No data retention (unless explicitly enabled)
393
+ - โœ… Security score: 95/100 (A grade)
394
+
395
+ ## ๐Ÿ“œ License
396
+
397
+ MIT License - see [LICENSE](LICENSE) file
398
+
399
+ ## ๐ŸŒ Links
400
+
401
+ - **Website:** https://vedika.io
402
+ - **Documentation:** https://vedika.io/docs.html
403
+ - **API Reference:** https://vedika.io/api-reference.html
404
+ - **Dashboard:** https://vedika.io/dashboard.html
405
+ - **Support:** support@vedika.io
406
+ - **GitHub:** https://github.com/vedika-intelligence
407
+
408
+ ## โญ Support
409
+
410
+ If you find this SDK helpful, please:
411
+ - โญ Star this repository
412
+ - ๐Ÿ› Report issues on GitHub
413
+ - ๐Ÿ’ฌ Join our community discussions
414
+ - ๐Ÿ“ง Contact support@vedika.io for help
415
+
416
+ ---
417
+
418
+ ## ๐ŸŽฏ Why Choose Vedika?
419
+
420
+ ### Vedika vs Traditional Astrology APIs
421
+
422
+ | Feature | Vedika | Others |
423
+ |---------|--------|--------|
424
+ | **AI Chatbot Queries** | โœ… YES (UNIQUE!) | โŒ No |
425
+ | Birth Charts | โœ… Yes | โœ… Yes |
426
+ | Dashas | โœ… Yes | โœ… Yes |
427
+ | Compatibility | โœ… Yes | โœ… Yes |
428
+ | 300+ Yogas | โœ… Yes | โš ๏ธ Limited |
429
+ | Dosha Analysis | โœ… Complete | โš ๏ธ Basic |
430
+ | Multi-Agent AI | โœ… 6 Agents | โŒ No |
431
+ | 22 Languages | โœ… Yes | โŒ English only |
432
+ | Streaming | โœ… Yes | โŒ No |
433
+ | Uptime | 99.9% | ~99% |
434
+ | Security Score | 95/100 (A) | Unknown |
435
+ | **Unique Value** | **Traditional + AI** | Traditional only |
436
+
437
+ **Bottom line:** Vedika provides everything other astrology APIs offer, **PLUS** the only conversational AI chatbot capability in the market.
438
+
439
+ ---
440
+
441
+ **Built with โค๏ธ by Vedika Intelligence**
442
+
443
+ **The only B2B astrology API with AI-powered chatbot queries.**
444
+
445
+ Get started: https://vedika.io