widegita 0.1.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 +21 -0
- package/README.md +336 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WideHoly
|
|
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,336 @@
|
|
|
1
|
+
# widegita
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/widegita)
|
|
4
|
+
[](https://www.typescriptlang.org/)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://www.npmjs.com/package/widegita)
|
|
7
|
+
|
|
8
|
+
TypeScript SDK for [WideGita](https://widegita.com) — access the Bhagavad Gita's 18 chapters and 6,308 verses across 9 commentator translations, 2,103 commentary entries from classical Acharyas, 10 principal Upanishads, all 196 Yoga Sutras of Patanjali, Hindu deities, philosophical concepts, and a comprehensive Sanskrit glossary. Zero runtime dependencies, uses native `fetch`.
|
|
9
|
+
|
|
10
|
+
WideGita is part of the [WideHoly](https://wideholy.com) multi-religion scripture platform, providing structured access to Hindu sacred texts. The REST API serves verse-level data with Sanskrit originals, IAST transliterations, and multiple English translations from scholars including Swami Sivananda, Swami Gambhirananda, and Sri Ramanuja.
|
|
11
|
+
|
|
12
|
+
> **Explore the Bhagavad Gita at [widegita.com](https://widegita.com)** — [Chapters](https://widegita.com/chapters/), [Commentaries](https://widegita.com/commentaries/), [Upanishads](https://widegita.com/upanishads/), [Yoga Sutras](https://widegita.com/yoga-sutras/), [Deities](https://widegita.com/deities/)
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Install](#install)
|
|
17
|
+
- [Quick Start](#quick-start)
|
|
18
|
+
- [What You'll Find on WideGita](#what-youll-find-on-widegita)
|
|
19
|
+
- [Bhagavad Gita Chapters & Verses](#bhagavad-gita-chapters--verses)
|
|
20
|
+
- [Commentary Traditions](#commentary-traditions)
|
|
21
|
+
- [Upanishads](#upanishads)
|
|
22
|
+
- [Yoga Sutras of Patanjali](#yoga-sutras-of-patanjali)
|
|
23
|
+
- [Hindu Deities & Concepts](#hindu-deities--concepts)
|
|
24
|
+
- [API Reference](#api-reference)
|
|
25
|
+
- [TypeScript Types](#typescript-types)
|
|
26
|
+
- [API Endpoints](#api-endpoints)
|
|
27
|
+
- [Learn More About Hindu Scripture](#learn-more-about-hindu-scripture)
|
|
28
|
+
- [Also Available for Python](#also-available-for-python)
|
|
29
|
+
- [WideHoly Scripture Platform](#wideholy-scripture-platform)
|
|
30
|
+
- [License](#license)
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install widegita
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { WideGita } from "widegita";
|
|
42
|
+
|
|
43
|
+
const api = new WideGita();
|
|
44
|
+
|
|
45
|
+
// Get chapter 2 — Sankhya Yoga (the Yoga of Knowledge)
|
|
46
|
+
const chapter = await api.getChapter(2);
|
|
47
|
+
console.log(chapter.name); // "Sankhya Yoga"
|
|
48
|
+
console.log(chapter.verse_count); // 72
|
|
49
|
+
|
|
50
|
+
// Read the most famous verse: Bhagavad Gita 2.47
|
|
51
|
+
// "You have a right to perform your prescribed duty,
|
|
52
|
+
// but you are not entitled to the fruits of action."
|
|
53
|
+
const verse = await api.getVerse(2, 47);
|
|
54
|
+
console.log(verse.text_sanskrit);
|
|
55
|
+
console.log(verse.text);
|
|
56
|
+
|
|
57
|
+
// Search across all 6,308 verses for references to dharma
|
|
58
|
+
const results = await api.search("dharma");
|
|
59
|
+
for (const v of results.results.slice(0, 5)) {
|
|
60
|
+
console.log(`${v.reference}: ${v.text.slice(0, 80)}...`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Explore Yoga Sutra 1.2 — Patanjali's definition of yoga
|
|
64
|
+
const sutra = await api.getYogaSutra("1-2");
|
|
65
|
+
console.log(sutra.translation_text);
|
|
66
|
+
// "Yoga is the cessation of the modifications of the mind"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## What You'll Find on WideGita
|
|
70
|
+
|
|
71
|
+
### Bhagavad Gita Chapters & Verses
|
|
72
|
+
|
|
73
|
+
The Bhagavad Gita consists of 18 chapters, each representing a different yoga (path of spiritual practice). Set on the battlefield of Kurukshetra, the dialogue between Lord Krishna and the warrior Arjuna addresses fundamental questions of duty, righteousness, devotion, and liberation.
|
|
74
|
+
|
|
75
|
+
| Ch | Name | Verses | Theme |
|
|
76
|
+
|----|------|--------|-------|
|
|
77
|
+
| 1 | Arjuna Vishada Yoga | 47 | The crisis of conscience on the battlefield |
|
|
78
|
+
| 2 | Sankhya Yoga | 72 | The immortal Self, duty without attachment |
|
|
79
|
+
| 3 | Karma Yoga | 43 | The path of selfless action |
|
|
80
|
+
| 4 | Jnana Karma Sannyasa Yoga | 42 | Divine knowledge and renunciation |
|
|
81
|
+
| 5 | Karma Sannyasa Yoga | 29 | Action vs. renunciation |
|
|
82
|
+
| 6 | Dhyana Yoga | 47 | Meditation and self-mastery |
|
|
83
|
+
| 7 | Jnana Vijnana Yoga | 30 | Knowledge of the Absolute |
|
|
84
|
+
| 8 | Aksara Brahma Yoga | 28 | The imperishable Brahman |
|
|
85
|
+
| 9 | Raja Vidya Raja Guhya Yoga | 34 | The royal knowledge and secret |
|
|
86
|
+
| 10 | Vibhuti Yoga | 42 | Divine manifestations |
|
|
87
|
+
| 11 | Vishvarupa Darshana Yoga | 55 | The cosmic form of Krishna |
|
|
88
|
+
| 12 | Bhakti Yoga | 20 | The path of devotion |
|
|
89
|
+
| 13 | Kshetra Kshetrajna Vibhaga Yoga | 35 | The field and the knower |
|
|
90
|
+
| 14 | Gunatraya Vibhaga Yoga | 27 | The three gunas (qualities) |
|
|
91
|
+
| 15 | Purushottama Yoga | 20 | The Supreme Person |
|
|
92
|
+
| 16 | Daivasura Sampad Vibhaga Yoga | 24 | Divine and demoniac natures |
|
|
93
|
+
| 17 | Shraddhatraya Vibhaga Yoga | 28 | Three types of faith |
|
|
94
|
+
| 18 | Moksha Sannyasa Yoga | 78 | Liberation through renunciation |
|
|
95
|
+
|
|
96
|
+
WideGita provides 6,308 verses across 9 commentator translations, each verse with the original Sanskrit text, IAST transliteration, and English translation.
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
const api = new WideGita();
|
|
100
|
+
|
|
101
|
+
// List all 18 chapters with verse counts and yoga names
|
|
102
|
+
const chapters = await api.listChapters();
|
|
103
|
+
for (const ch of chapters.results) {
|
|
104
|
+
console.log(`Ch ${ch.number}: ${ch.yoga_name} — ${ch.verse_count} verses`);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Get verse with Sanskrit original and transliteration
|
|
108
|
+
const verse = await api.getVerse(2, 47, "sivananda");
|
|
109
|
+
console.log(verse.text_sanskrit); // Original Devanagari
|
|
110
|
+
console.log(verse.transliteration); // IAST romanization
|
|
111
|
+
console.log(verse.text); // English translation
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Learn more: [Gita Chapters](https://widegita.com/chapters/) · [Verse Browser](https://widegita.com/verses/)
|
|
115
|
+
|
|
116
|
+
### Commentary Traditions
|
|
117
|
+
|
|
118
|
+
The Bhagavad Gita has been interpreted by the greatest minds of Indian philosophy. WideGita includes 2,103 commentary entries from 9 classical commentators spanning the major Vedantic traditions.
|
|
119
|
+
|
|
120
|
+
| Commentator | Tradition | Period | Philosophy |
|
|
121
|
+
|-------------|-----------|--------|------------|
|
|
122
|
+
| Adi Shankaracharya | Advaita Vedanta | 8th century | Non-dualism (Brahman alone is real) |
|
|
123
|
+
| Ramanujacharya | Vishishtadvaita | 11th century | Qualified non-dualism |
|
|
124
|
+
| Madhvacharya | Dvaita Vedanta | 13th century | Dualism (jiva and Brahman are distinct) |
|
|
125
|
+
| Swami Sivananda | Neo-Vedanta | 20th century | Practical synthesis of yoga paths |
|
|
126
|
+
| Swami Gambhirananda | Advaita Vedanta | 20th century | Scholarly Shankara tradition |
|
|
127
|
+
| Sri Abhinavagupta | Kashmir Shaivism | 10th century | Tantric non-dualism |
|
|
128
|
+
| Vallabhacharya | Shuddhadvaita | 15th century | Pure non-dualism (devotion-centric) |
|
|
129
|
+
| Sridhara Swami | Advaita Vedanta | 14th century | Bridge between Advaita and Bhakti |
|
|
130
|
+
| Baladeva Vidyabhushana | Gaudiya Vaishnavism | 18th century | Acintya Bheda Abheda |
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
const api = new WideGita();
|
|
134
|
+
|
|
135
|
+
// List commentaries filtered by Advaita tradition
|
|
136
|
+
const advaita = await api.listCommentaries({ tradition: "advaita" });
|
|
137
|
+
for (const c of advaita.results) {
|
|
138
|
+
console.log(`${c.author} — ${c.name}`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Get Shankaracharya's commentary entries for chapter 2
|
|
142
|
+
const entries = await api.getCommentaryEntries({
|
|
143
|
+
commentary__slug: "shankaracharya",
|
|
144
|
+
chapter__number: "2",
|
|
145
|
+
});
|
|
146
|
+
for (const e of entries.results.slice(0, 3)) {
|
|
147
|
+
console.log(`Verses ${e.verse_start}-${e.verse_end}: ${e.text.slice(0, 100)}...`);
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Learn more: [Commentary Traditions](https://widegita.com/commentaries/) · [Glossary of Terms](https://widegita.com/glossary/)
|
|
152
|
+
|
|
153
|
+
### Upanishads
|
|
154
|
+
|
|
155
|
+
The Upanishads are the philosophical culmination of the Vedas, exploring the nature of Brahman (ultimate reality), Atman (the Self), and the path to liberation. WideGita covers the 10 principal (Mukhya) Upanishads acknowledged by Adi Shankaracharya.
|
|
156
|
+
|
|
157
|
+
| Upanishad | Veda | Key Teaching |
|
|
158
|
+
|-----------|------|-------------|
|
|
159
|
+
| Isha | Yajur Veda | The Lord pervades all; renunciation and enjoyment |
|
|
160
|
+
| Kena | Sama Veda | The unknowable nature of Brahman |
|
|
161
|
+
| Katha | Yajur Veda | Nachiketa's dialogue with Death; the immortal Self |
|
|
162
|
+
| Prashna | Atharva Veda | Six questions on the nature of creation and prana |
|
|
163
|
+
| Mundaka | Atharva Veda | Higher vs. lower knowledge; Brahman as the thread |
|
|
164
|
+
| Mandukya | Atharva Veda | AUM and the four states of consciousness |
|
|
165
|
+
| Taittiriya | Yajur Veda | Five sheaths (koshas) of the Self |
|
|
166
|
+
| Aitareya | Rig Veda | Creation from Atman; the nature of consciousness |
|
|
167
|
+
| Chandogya | Sama Veda | "Tat Tvam Asi" — Thou art That |
|
|
168
|
+
| Brihadaranyaka | Yajur Veda | The largest Upanishad; Yajnavalkya's teachings |
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
const api = new WideGita();
|
|
172
|
+
|
|
173
|
+
// List only the 10 principal Upanishads
|
|
174
|
+
const principal = await api.listUpanishads({ is_principal: "true" });
|
|
175
|
+
for (const u of principal.results) {
|
|
176
|
+
console.log(`${u.name} (${u.sanskrit_name}) — ${u.veda}`);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Get details for the Katha Upanishad
|
|
180
|
+
const katha = await api.getUpanishad("katha");
|
|
181
|
+
console.log(katha.description);
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Learn more: [Upanishads](https://widegita.com/upanishads/) · [Hindu Concepts](https://widegita.com/concepts/)
|
|
185
|
+
|
|
186
|
+
### Yoga Sutras of Patanjali
|
|
187
|
+
|
|
188
|
+
The Yoga Sutras are 196 concise aphorisms compiled by the sage Patanjali, forming the foundational text of Raja Yoga. The text is divided into four padas (chapters).
|
|
189
|
+
|
|
190
|
+
| Pada | Name | Sutras | Focus |
|
|
191
|
+
|------|------|--------|-------|
|
|
192
|
+
| 1 | Samadhi Pada | 51 | The nature of yoga and states of absorption |
|
|
193
|
+
| 2 | Sadhana Pada | 55 | Practice: Kriya Yoga, the Eight Limbs (Ashtanga) |
|
|
194
|
+
| 3 | Vibhuti Pada | 56 | Supernatural powers (siddhis) arising from practice |
|
|
195
|
+
| 4 | Kaivalya Pada | 34 | Liberation — the isolation of pure consciousness |
|
|
196
|
+
|
|
197
|
+
The Eight Limbs of Yoga (Ashtanga Yoga): Yama, Niyama, Asana, Pranayama, Pratyahara, Dharana, Dhyana, and Samadhi.
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
200
|
+
const api = new WideGita();
|
|
201
|
+
|
|
202
|
+
// List all sutras in Samadhi Pada (Chapter 1)
|
|
203
|
+
const pada1 = await api.listYogaSutras({ pada: "1" });
|
|
204
|
+
console.log(`Samadhi Pada: ${pada1.count} sutras`);
|
|
205
|
+
|
|
206
|
+
// Get the famous definition of yoga (Sutra 1.2)
|
|
207
|
+
// "Yogas chitta vritti nirodhah"
|
|
208
|
+
const sutra = await api.getYogaSutra("1-2");
|
|
209
|
+
console.log(sutra.text_sanskrit);
|
|
210
|
+
console.log(sutra.translation_text);
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Learn more: [Yoga Sutras](https://widegita.com/yoga-sutras/) · [Topics](https://widegita.com/topics/)
|
|
214
|
+
|
|
215
|
+
### Hindu Deities & Concepts
|
|
216
|
+
|
|
217
|
+
WideGita covers the major deities of the Hindu pantheon and core philosophical concepts that underpin the Gita's teachings. The deity database includes the Trimurti (Brahma, Vishnu, Shiva), their avatars, consorts, and associated traditions.
|
|
218
|
+
|
|
219
|
+
| Concept | Sanskrit | Meaning |
|
|
220
|
+
|---------|----------|---------|
|
|
221
|
+
| Dharma | Dharma | Cosmic order, righteousness, duty |
|
|
222
|
+
| Karma | Karma | Action and its consequences across lifetimes |
|
|
223
|
+
| Moksha | Moksha | Liberation from the cycle of birth and death |
|
|
224
|
+
| Atman | Atman | The eternal Self, identical with Brahman |
|
|
225
|
+
| Brahman | Brahman | The ultimate, formless reality |
|
|
226
|
+
| Maya | Maya | The illusory nature of the phenomenal world |
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
const api = new WideGita();
|
|
230
|
+
|
|
231
|
+
// List deities filtered by tradition
|
|
232
|
+
const vaishnava = await api.listDeities({ tradition: "vaishnavism" });
|
|
233
|
+
for (const d of vaishnava.results) {
|
|
234
|
+
console.log(`${d.name} (${d.sanskrit_name})`);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// List philosophical concepts and browse the Sanskrit glossary
|
|
238
|
+
const concepts = await api.listConcepts({ category: "vedanta" });
|
|
239
|
+
const glossary = await api.listGlossary();
|
|
240
|
+
const topics = await api.listTopics();
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Learn more: [Hindu Deities](https://widegita.com/deities/) · [Concepts](https://widegita.com/concepts/) · [Sanskrit Glossary](https://widegita.com/glossary/)
|
|
244
|
+
|
|
245
|
+
## API Reference
|
|
246
|
+
|
|
247
|
+
| Method | Arguments | Returns | Description |
|
|
248
|
+
|--------|-----------|---------|-------------|
|
|
249
|
+
| `new WideGita(baseUrl?)` | `baseUrl` | `WideGita` | Create API client |
|
|
250
|
+
| `listChapters()` | — | `ListResponse<Chapter>` | List all 18 Gita chapters |
|
|
251
|
+
| `getChapter(number)` | `number: number` | `Chapter` | Get chapter by number (1-18) |
|
|
252
|
+
| `getVerse(chapter, verse, translation?)` | `chapter`, `verse`, `translation` | `Verse` | Get specific verse |
|
|
253
|
+
| `search(query, limit?)` | `query: string`, `limit = 25` | `ListResponse<Verse>` | Search verse texts |
|
|
254
|
+
| `listCommentaries(params?)` | `Record<string, string>` | `ListResponse<Commentary>` | List commentaries |
|
|
255
|
+
| `getCommentaryEntries(params?)` | `Record<string, string>` | `ListResponse<CommentaryEntry>` | List commentary entries |
|
|
256
|
+
| `listUpanishads(params?)` | `Record<string, string>` | `ListResponse<Upanishad>` | List Upanishads |
|
|
257
|
+
| `getUpanishad(slug)` | `slug: string` | `Upanishad` | Get Upanishad by slug |
|
|
258
|
+
| `listYogaSutras(params?)` | `Record<string, string>` | `ListResponse<YogaSutra>` | List Yoga Sutras |
|
|
259
|
+
| `getYogaSutra(slug)` | `slug: string` | `YogaSutra` | Get Yoga Sutra by slug |
|
|
260
|
+
| `listDeities(params?)` | `Record<string, string>` | `ListResponse<Deity>` | List Hindu deities |
|
|
261
|
+
| `getDeity(slug)` | `slug: string` | `Deity` | Get deity by slug |
|
|
262
|
+
| `listConcepts(params?)` | `Record<string, string>` | `ListResponse<Concept>` | List philosophical concepts |
|
|
263
|
+
| `listTopics()` | — | `ListResponse<Topic>` | List Gita topics |
|
|
264
|
+
| `listGlossary()` | — | `ListResponse<GlossaryTerm>` | List Sanskrit glossary terms |
|
|
265
|
+
|
|
266
|
+
## TypeScript Types
|
|
267
|
+
|
|
268
|
+
All response types are exported: `Chapter`, `Verse`, `Commentary`, `CommentaryEntry`, `Upanishad`, `YogaSutra`, `Deity`, `Concept`, `Topic`, `GlossaryTerm`, and `ListResponse<T>` (paginated wrapper with `count`, `next`, `previous`, `results`).
|
|
269
|
+
|
|
270
|
+
```typescript
|
|
271
|
+
import type { Chapter, Verse, ListResponse } from "widegita";
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## API Endpoints
|
|
275
|
+
|
|
276
|
+
Base URL: `https://widegita.com/api/v1/gita`
|
|
277
|
+
|
|
278
|
+
| Endpoint | Description |
|
|
279
|
+
|----------|-------------|
|
|
280
|
+
| `GET /chapters/` | List all 18 Gita chapters |
|
|
281
|
+
| `GET /chapters/{number}/` | Get chapter by number |
|
|
282
|
+
| `GET /verses/?search=query` | List/search verses (filterable by chapter, translation) |
|
|
283
|
+
| `GET /commentaries/` | List commentaries (filterable by tradition) |
|
|
284
|
+
| `GET /commentary-entries/` | List commentary entries (filterable) |
|
|
285
|
+
| `GET /upanishads/` | List Upanishads (filterable by veda, is_principal) |
|
|
286
|
+
| `GET /upanishads/{slug}/` | Get Upanishad details |
|
|
287
|
+
| `GET /yoga-sutras/` | List Yoga Sutras (filterable by pada) |
|
|
288
|
+
| `GET /yoga-sutras/{slug}/` | Get Yoga Sutra details |
|
|
289
|
+
| `GET /deities/{slug}/` | Get deity details |
|
|
290
|
+
| `GET /concepts/` | List philosophical concepts |
|
|
291
|
+
| `GET /topics/` | List Gita topics |
|
|
292
|
+
| `GET /glossary/` | List Sanskrit glossary terms |
|
|
293
|
+
|
|
294
|
+
Full API documentation at [widegita.com/developers/](https://widegita.com/developers/). OpenAPI 3.1 spec: [widegita.com/api/openapi.json](https://widegita.com/api/openapi.json).
|
|
295
|
+
|
|
296
|
+
## Learn More About Hindu Scripture
|
|
297
|
+
|
|
298
|
+
- **Chapters**: [All 18 Chapters](https://widegita.com/chapters/) · [Commentary Traditions](https://widegita.com/commentaries/)
|
|
299
|
+
- **Texts**: [Upanishads](https://widegita.com/upanishads/) · [Yoga Sutras](https://widegita.com/yoga-sutras/)
|
|
300
|
+
- **Reference**: [Hindu Deities](https://widegita.com/deities/) · [Concepts](https://widegita.com/concepts/) · [Sanskrit Glossary](https://widegita.com/glossary/)
|
|
301
|
+
- **Explore**: [Topics](https://widegita.com/topics/) · [Translations](https://widegita.com/translations/)
|
|
302
|
+
- **API**: [REST API Docs](https://widegita.com/developers/) · [OpenAPI Spec](https://widegita.com/api/openapi.json)
|
|
303
|
+
- **Python**: [PyPI Package](https://pypi.org/project/widegita/)
|
|
304
|
+
|
|
305
|
+
## Also Available for Python
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
pip install widegita[api]
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
```python
|
|
312
|
+
from widegita import WideGita
|
|
313
|
+
|
|
314
|
+
with WideGita() as api:
|
|
315
|
+
chapter = api.get_chapter(2)
|
|
316
|
+
verse = api.get_verse(2, 47)
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
See the [Python SDK on PyPI](https://pypi.org/project/widegita/).
|
|
320
|
+
|
|
321
|
+
## WideHoly Scripture Platform
|
|
322
|
+
|
|
323
|
+
Part of the [WideHoly](https://wideholy.com) open-source multi-religion scripture platform.
|
|
324
|
+
|
|
325
|
+
| Package | PyPI | npm | Description |
|
|
326
|
+
|---------|------|-----|-------------|
|
|
327
|
+
| **widegita** | [PyPI](https://pypi.org/project/widegita/) | [npm](https://www.npmjs.com/package/widegita) | Bhagavad Gita, Upanishads, Yoga Sutras — [widegita.com](https://widegita.com) |
|
|
328
|
+
| widebible | [PyPI](https://pypi.org/project/widebible/) | [npm](https://www.npmjs.com/package/widebible) | Bible books, chapters, verses — [widebible.com](https://widebible.com) |
|
|
329
|
+
| widequran | [PyPI](https://pypi.org/project/widequran/) | [npm](https://www.npmjs.com/package/widequran) | Quran surahs, ayahs, tafsirs — [widequran.com](https://widequran.com) |
|
|
330
|
+
| widetorah | [PyPI](https://pypi.org/project/widetorah/) | [npm](https://www.npmjs.com/package/widetorah) | Torah, Talmud, Mishnah — [widetorah.com](https://widetorah.com) |
|
|
331
|
+
| widesutra | [PyPI](https://pypi.org/project/widesutra/) | [npm](https://www.npmjs.com/package/widesutra) | Buddhist sutras, Tipitaka — [widesutra.com](https://widesutra.com) |
|
|
332
|
+
| wideholy | [PyPI](https://pypi.org/project/wideholy/) | [npm](https://www.npmjs.com/package/wideholy) | Unified hub for all 5 religions — [wideholy.com](https://wideholy.com) |
|
|
333
|
+
|
|
334
|
+
## License
|
|
335
|
+
|
|
336
|
+
MIT License — see [LICENSE](LICENSE) for details.
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "widegita",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TypeScript SDK for WideGita -- Bhagavad Gita chapters, verses, commentaries, Upanishads, Yoga Sutras, Hindu deities, and Sanskrit glossary",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"typecheck": "tsc --noEmit"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"bhagavad-gita",
|
|
24
|
+
"gita",
|
|
25
|
+
"hinduism",
|
|
26
|
+
"scripture",
|
|
27
|
+
"upanishads",
|
|
28
|
+
"yoga-sutras",
|
|
29
|
+
"patanjali",
|
|
30
|
+
"vedanta",
|
|
31
|
+
"sanskrit",
|
|
32
|
+
"hindu-deities",
|
|
33
|
+
"krishna",
|
|
34
|
+
"commentary",
|
|
35
|
+
"dharma",
|
|
36
|
+
"karma",
|
|
37
|
+
"moksha",
|
|
38
|
+
"api-client",
|
|
39
|
+
"widegita",
|
|
40
|
+
"wideholy",
|
|
41
|
+
"typescript"
|
|
42
|
+
],
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "https://github.com/dobestan/widegita-js"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://widegita.com",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"author": "WideHoly",
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"tsup": "^8.0",
|
|
52
|
+
"typescript": "^5.7",
|
|
53
|
+
"vitest": "^3.0"
|
|
54
|
+
}
|
|
55
|
+
}
|