In today's world, Shiny (web framework) has become a topic of great relevance and interest to a wide spectrum of people. Whether due to its impact on society, its historical relevance or its influence on popular culture, Shiny (web framework) continues to capture the attention of millions of individuals around the world. With a history dating back centuries, Shiny (web framework) has evolved and adapted to the changes and advancements of modern society. In this article, we will explore in depth everything related to Shiny (web framework), from its origins to its current impact on different aspects of everyday life.
| Shiny | |
|---|---|
| Original author | Joe Cheng |
| Developer | RStudio Inc. (and current renamed company Posit PBC) |
| Initial release | November 2012 |
| Stable release | 1.9.1[1]
|
| Repository | |
| Written in | R / Python |
| License | MIT License |
| Website | shiny |
Shiny is a web framework for developing web applications (apps), originally in R and since 2022 also available in Python. It is free and open source.[2] It was announced by Joe Cheng, CTO of Posit, formerly RStudio, in 2012.[3] One of the uses of Shiny has been in fast prototyping.[4]
In 2022, a separate implementation of Shiny for Python was announced.[5] It is not meant to be a replacement, whereby both implementations will be developed concurrently and may never have all the features of each other. There is also Shinylive that allows running Shiny on the client (i.e., program code does not run on the server, reducing server load to just serving the code itself).[6]
Shiny creates a reactive context wherein the user specifies, through input variables, the circumstances under which computations are re-executed, or graphs (often visualizations) re-rendered; this occurs almost instantaneously. The input variables are evaluated via a user interface which allows the simple creation of widgets such as text boxes, radio buttons, and drop-down lists.[3][7]
There are two main parts to a Shiny file, which may alternatively be stored in two separate files. One is designed to accommodate the user interface, the appearance of which is restricted by the default choices, though can be extended through various other R packages. The other is designed to accommodate the server computations and plot generating code, for which all the built-in facilities of R are available.[3]

This is an example of a basic application in R where:[8]
library(shiny)
ui <- fluidPage(
textInput("name", "What is your name?"),
textOutput("greeting")
)
server <- function(input, output, session) {
output$greeting <- renderText({paste0("Hello ", input$name)})
}
shinyApp(ui, server)
And the equivalent application written in python:[9]
from shiny import App, reactive, render, ui
app_ui = ui.page_fluid(
ui.input_text("name", "What is your name?"),
ui.output_text("greeting"),
)
def server(input, output, session):
@render.text
def greeting():
return f"Hello {input.name()}"
app = App(app_ui, server)
And shiny express for python:[10]
from shiny.express import input, render, ui
ui.input_text("name", "What is your name?")
@render.text
def greeting():
return f"Hello {input.name()}"
Deploying Shiny (R) can be achieved through several popular methods: