{"id":13706893,"url":"https://github.com/tylerlittlefield/shinytemplate","last_synced_at":"2026-05-07T16:34:04.158Z","repository":{"id":182545121,"uuid":"220672438","full_name":"tylerlittlefield/shinytemplate","owner":"tylerlittlefield","description":":sparkles: A personal template for shiny dashboards","archived":false,"fork":false,"pushed_at":"2019-11-27T23:15:05.000Z","size":3137,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T18:48:23.290Z","etag":null,"topics":["dashboard","rstats","shiny"],"latest_commit_sha":null,"homepage":"https://tylerlittlefield.com/shiny/tyler/shinytemplate/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tylerlittlefield.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-11-09T16:45:01.000Z","updated_at":"2019-12-26T21:18:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0ec1caf-6dd0-4a86-8889-a54e2221fa53","html_url":"https://github.com/tylerlittlefield/shinytemplate","commit_stats":null,"previous_names":["tylerlittlefield/shinytemplate"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tylerlittlefield/shinytemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fshinytemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fshinytemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fshinytemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fshinytemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tylerlittlefield","download_url":"https://codeload.github.com/tylerlittlefield/shinytemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fshinytemplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32745861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dashboard","rstats","shiny"],"created_at":"2024-08-02T22:01:11.474Z","updated_at":"2026-05-07T16:34:04.141Z","avatar_url":"https://github.com/tylerlittlefield.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n# shinytemplate\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\n```{r echo=FALSE}\nknitr::include_graphics(\"inst/extdata/example-app.png\")\n```\n\n\nAn opinionated template for shiny dashboards (work in progress). The goal is to collect a bunch of things I commonly use when creating a dashboard (CSS, file structure, style, etc.), so I can skip all of this when a new project comes along. See a live demo of the app [**here**](https://tylerlittlefield.com/shiny/tyler/shinytemplate/).\n\n## Structure\n\nI use `ui.R`, `server.R`, and `global.R` instead of a single `app.R` file to split the application into smaller pieces. All ui elements are prefixed with `ui_`, utility functions are stored in `utils.R`, all R code (excluding ui, server, and global) are stored in the R directory. The inst/extdata directory is just a habit I picked up from R packages, I store images and other external data here.\n\n```{r, echo=FALSE}\nfs::dir_tree()\n```\n\n## Comments\n\nServer code is commented like so:\n\n```\n# ----------------------------------------------------------------------------\n#' Info Boxes\n#' * Box 1: Some text describing box 1.\n#' * Box 2: Some text describing box 2.\n#' * Box 3: Some text describing box 3.\n# ----------------------------------------------------------------------------\n```\n\nWhere a specific component is labeled and individual pieces are described. This can make large server files a bit more manageable if you use code folding:\n\n```{r echo=FALSE}\nknitr::include_graphics(\"inst/extdata/server-comments.png\")\n```\n\n## Utilities\n\nI have a couple utility functions I always use to make a mini sidebar and add a favicon to the tab, these are:\n\n* `enable_mini_sidebar()`\n* `mini_sidebar_title()`\n* `enable_favicon()`\n\n```{r echo=FALSE}\nknitr::include_graphics(\"inst/extdata/utility-example.png\")\n```\n\n## Usage\n\nThis is a personal template but if you'd like to use it you have a couple options.\n\n1. If you have a github account, you can simply fork the repo or hit the \"Use this template\" button.\n2. Alternatively, you can clone or download the repository.\n\n```{r echo=FALSE}\nknitr::include_graphics(\"inst/extdata/usage-options.png\")\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerlittlefield%2Fshinytemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylerlittlefield%2Fshinytemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerlittlefield%2Fshinytemplate/lists"}