shiny-core

Provide hosting, DI, and platform abstractions for Shiny apps.

152|15|Updated Oct 6, 2022
One-click install
npx skills add https://github.com/shinyorg/templates --skill shiny-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shiny-core
Source: https://github.com/shinyorg/templates/tree/main/ProjectTemplates/ShinyApp/skills/shiny-core
Command: npx skills add https://github.com/shinyorg/templates --skill shiny-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Shiny developers need a robust foundation that provides hosting, dependency injection, key-value storage, and cross-platform lifecycle management to accelerate app startup and reduce boilerplate.

Core Features & Use Cases

  • Hosting and DI infrastructure for MAUI, iOS, and Android-based Shiny apps.
  • Centralized key-value stores, object binding, and platform abstractions to manage persistent state and cross-cutting concerns.
  • Lifecycle hooks and startup task support to reliably run code at startup and during app lifecycle events.

Quick Start

Register the Shiny core with your DI container and initialize hosting so all core services are available on startup.

Frequently Asked Questions about shiny-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up dependency injection and hosting for cross-platform MAUI apps?

You can manage persistent state in cross-platform apps using centralized key-value stores and object binding provided by the Shiny core platform abstractions. This infrastructure supports IKeyValueStore to handle persistent state and cross-cutting concerns across MAUI, iOS, and Android.

Can I run startup tasks and lifecycle hooks reliably across iOS and Android?

Yes, you can run startup tasks and lifecycle hooks reliably across iOS and Android using the Shiny core. It provides lifecycle hooks and developer-defined startup task support to coordinate code execution during app lifecycle events in cross-platform projects.

What is the best way to bootstrap Shiny apps and share services across MAUI, iOS, and Android?

The best way to bootstrap Shiny apps and share services is by using the IHost, UseShiny, and IPlatform abstractions. This enforces safety and modularity via DI conventions while providing a shared hosting and service layer for MAUI, iOS, and Android.

Do I need the Shiny.Core base package to use key-value storage and platform abstractions?

Yes, the Shiny.Core base package is required to use key-value storage, platform abstractions, and hosting infrastructure. Optional companion libraries are also supported to extend the foundational DI and lifecycle management capabilities for your apps.