This package is designed to be self-documenting. To understand the API, consult these files:
The single source of truth for the complete API surface. Contains:
- All exported functions with parameter types and return types
- TypeScript interfaces (
Prayer,PrayerMetadata,Translation, etc.) - Type definitions (
LanguageCode,PrimaryCategory,ImportanceLevel,Label) - JSDoc comments explaining each function
Start here for a complete understanding of available functions and data structures.
The actual implementation with:
- JSDoc comments for each function
- Usage examples in comments
- Function signatures and behavior
Good for understanding how functions work internally.
Generated file listing:
- All available prayer IDs
- All primary categories in use
- All labels in use
- Prayer counts by category
Use this to see what prayers are currently available in the collection.
# View all exported functions
grep "^export function" index.d.ts
# Or look at the module.exports in index.js
grep -A 20 "module.exports" index.js# View all TypeScript types
grep "^export type\|^export interface" index.d.ts# View the generated index
cat lib/prayer-index.jsonFor usage examples, see:
- USAGE_EXAMPLES.md - Code examples for Node.js, TypeScript, React, Vue
- README.md - Quick start examples
- Existing prayer files in
prayers/directory for JSON structure examples