8000 GitHub - jabrah234/coptic_ai: A JavaScript web app delivering daily Coptic Christian content: Agpeya prayers, saints, Bible verses, and Desert Fathers sayings. Features single-click buttons with localStorage persistence, Coptic date and liturgical tracking, JSON data, and an optional AI chat iframe.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A JavaScript web app delivering daily Coptic Christian content: Agpeya prayers, saints, Bible verses, and Desert Fathers sayings. Features single-click buttons with localStorage persistence, Coptic date and liturgical tracking, JSON data, and an optional AI chat iframe.

License

Notifications You must be signed in to change notification settings

jabrah234/coptic_ai

Repository files navigation

Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI

GitHub Stars

Netlify Status

A web app that enriches Coptic Orthodox Christian spiritual lives with liturgical resources, scripture, and AI-powered guidance. Access Agpeya prayers, daily saints, Bible verses, and Desert Fathers wisdom through a responsive chatbot interface!

Link to project: https://github.com/jabrah234/coptic_ai

Alt tag: Responsive chatbot interface displaying Coptic liturgical date and prayer options

🌐 Live Demo

Try Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI

🚀 Getting Started

To run Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI locally:

  1. Clone the repository:

     git clone https://github.com/jabrah234/coptic_ai.git
    
  2. Navigate to the project directory:

     cd coptic_ai
    
  3. Serve the app using a local server (e.g., with VS Code’s Live Server extension or a simple HTTP server):

     npx http-server
    
  4. Open http://localhost:8080 in your browser.

Prerequisites

  • Modern web browser (Chrome, Firefox, Safari, Edge)

  • Internet connection for fetching JSON data and AI integration via YesChat.ai

📷 Screenshots

Explore the Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI interface

6B2230CF-EC23-48DE-A9BF-AA09C688B81A

BF25F80E-0FF2-417D-A27C-14FA073CB772

32260B8F-C18B-4241-AD44-F7BE60C623E1

E2D79394-741A-4D17-A9BF-9A8241E98E08

🛠️ How It's Made

  • Tech used: HTML, CSS, JavaScript

This project is a love letter to Coptic Orthodox heritage, blending tradition with modern web tech. Built as a single-page application with vanilla JavaScript, HTML, and CSS, it showcases pure front-end craftsmanship. Here’s how it came together:

  • Responsive Chatbot UI: Designed with CSS animations for smooth fade-in/out effects when displaying prayers, verses, or sayings, creating an engaging user experience.
  • Liturgical Logic: JavaScript converts Gregorian dates to Coptic dates (e.g., April 29, 2025 → Baramouda 21, 1741) and determines liturgical periods based on Pascha.
  • Data Fetching: Loads JSON files for Synaxarium saints, Bible verses, and Desert Fathers sayings, with retry mechanisms for reliability.
  • AI Integration: Embeds an iframe from YesChat.ai’s Coptic Guide GPT for queries like translating "peace" to Coptic ("hirēnē").
  • State Persistence: Uses localStorage to save chat messages and button states, ensuring continuity across page reloads.
  • Error Handling: Implements fallback content for missing data or DOM elements, keeping the app functional under adverse conditions.

I poured my heart into making the UI intuitive and reverent, with clear buttons for each feature. Debugging complex date conversions and styling the chat window to feel modern yet spiritual were highlights of the journey!

⚡️ Optimizations

The app is designed to be both beautiful and efficient. Key optimizations include:

  • Efficient Data Loading: JSON fetches use retry mechanisms to minimize failed requests, with fallback content ensuring usability.
  • LocalStorage Caching: Persists chat messages and button states to reduce DOM manipulation on reload, boosting performance.
  • Lightweight Animations: CSS animations use simple transforms and opacity changes to avoid heavy reflows, keeping the UI snappy.
  • No External Libraries: Built with vanilla JavaScript and CSS for a lean footprint.
  • Refactored Date Logic: Streamlined the getCopticDate function to handle edge cases (e.g., leap years) more cleanly, improving maintainability.

These tweaks ensure the app runs smoothly while preserving its spiritual essence.

📚 Lessons Learned

Building Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI was a technical and spiritual adventure.

Key takeaways:

  • Mastering Date Math: Cracking Gregorian-to-Coptic date conversion felt like decoding an ancient puzzle—seeing "Baramouda 21, 1741" display correctly was a triumph!
  • UI/UX Matters: Small details like fade-in animations and clear button labels taught me how to craft a warm, user-friendly experience.
  • Resilient Code: Implementing fallbacks for missing JSON files turned crashes into graceful recoveries, deepening my appreciation for robust error handling.
  • Purpose-Driven Coding: Connecting users to Coptic heritage through tech reinforced my passion for building meaningful tools.

Each challenge was a chance to grow, and I’m hooked on creating impactful, user-focused apps!

🧪 Testing

To test Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI

  1. Load the app in a browser.

  2. Verify the Coptic date displays correctly (e.g., April 29, 2025 → Baramouda 21, 1741).

  3. Test buttons for Agpeya prayers, Bible verses, and Desert Fathers sayings.

  4. Interact with the AI chatbot to ensure responses are relevant.

Automated tests are not yet implemented but planned for future releases.

📅 Project Status & Roadmap

Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI is actively maintained.

Current version: 1.0.0.

Planned features:

  1. Offline Mode for Prayers and Verses

    • Enable offline access to essential prayers and liturgical verses.
  2. Multilingual Support

    • Incorporate additional languages to make the app more accessible.
  3. IPA File for iPhone

    • Build and export the app as an IPA file for iOS devices, enabling distribution either via the App Store or for direct installation.

See the Issues page for planned tasks.

🤝 Contributing

We welcome contributions to enhance Ⲱⲩⲛⲓⲁⲧⲕ: Coptic AI!

To contribute:

  1. Fork the repository.

  2. Create a new branch (git checkout -b feature/your-feature).

  3. Commit your changes (git commit -m "Add your feature").

  4. Push to the branch (git push origin feature/your-feature).

  5. Open a pull request.

Please check the Issues page for tasks or report bugs.

📜 License

MIT License

Licensed under the MIT License. See the LICENSE file for details.

🙏 Acknowledgments

  • YesChat.ai for powering the Coptic Guide GPT.

  • Coptic Orthodox Church for liturgical resources and inspiration.

  • Open-source community for tools and tutorials.

📬 Contact

🌟 Get Involved!

Try Ⲱⲩⲛⲓⲁⲧⲕ, share your feedback, and star the repo on GitHub to support the project. Let’s bring Coptic heritage to the digital age together!

🙏 Footer

“Blessed are the blameless in the way, who walk in the law of the Lord.” — Psalm 118:1

Developed with ❤️ during the Second Week of the Holy Fifty Days, Baramouda 21, 1741.

About

A JavaScript web app delivering daily Coptic Christian content: Agpeya prayers, saints, Bible verses, and Desert Fathers sayings. Features single-click buttons with localStorage persistence, Coptic date and liturgical tracking, JSON data, and an optional AI chat iframe.

Topics

Resources

License

Stars

Watchers

Forks

0