{"id":16472838,"url":"https://github.com/christopherkenny/bskyr","last_synced_at":"2025-03-21T06:32:15.375Z","repository":{"id":197914716,"uuid":"698235818","full_name":"christopherkenny/bskyr","owner":"christopherkenny","description":"Interact with Bluesky Social","archived":false,"fork":false,"pushed_at":"2025-02-09T00:24:21.000Z","size":8348,"stargazers_count":20,"open_issues_count":13,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T22:14:50.026Z","etag":null,"topics":["atproto","bluesky","r"],"latest_commit_sha":null,"homepage":"http://christophertkenny.com/bskyr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christopherkenny.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-29T13:12:43.000Z","updated_at":"2025-02-17T21:41:35.000Z","dependencies_parsed_at":"2023-10-03T12:55:16.526Z","dependency_job_id":"320bb7fd-fb9d-4e43-8469-f0b8370a217b","html_url":"https://github.com/christopherkenny/bskyr","commit_stats":null,"previous_names":["christopherkenny/bskyr"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherkenny%2Fbskyr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherkenny%2Fbskyr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherkenny%2Fbskyr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christopherkenny%2Fbskyr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christopherkenny","download_url":"https://codeload.github.com/christopherkenny/bskyr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244751626,"owners_count":20504243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["atproto","bluesky","r"],"created_at":"2024-10-11T12:18:44.012Z","updated_at":"2025-03-21T06:32:15.361Z","avatar_url":"https://github.com/christopherkenny.png","language":"R","funding_links":[],"categories":[],"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  fig.path = 'man/figures/README-',\n  out.width = '100%'\n)\n```\n\n# bskyr \u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"136\" alt=\"\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Codecov test coverage](https://codecov.io/gh/christopherkenny/bskyr/branch/main/graph/badge.svg)](https://app.codecov.io/gh/christopherkenny/bskyr?branch=main)\n[![R-CMD-check](https://github.com/christopherkenny/bskyr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/christopherkenny/bskyr/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/bskyr)](https://CRAN.R-project.org/package=bskyr)\n[![bskyr status badge](https://christopherkenny.r-universe.dev/badges/bskyr)](https://christopherkenny.r-universe.dev/bskyr)\n\u003c!-- badges: end --\u003e\n\n`bskyr` provides an interface to the Bluesky Social API, allowing you to interact with Bluesky Social from R. \nTo do this, we provide functions which match with the [AT Protocol's Lexicon](https://atproto.com/guides/lexicon), which is like using regular HTTP requests.\nOutputs from `bskyr`'s functions are primarily `tibble`s, allowing for easy analysis of the outputs from the API calls.\n\n## Installation\n\nYou can install the stable version of `bskyr` from [CRAN](https://cran.r-project.org/package=bskyr) with:\n\n```r\ninstall.packages('bskyr')\n```\n\nYou can install the development version of `bskyr` from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages('pak')\npak::pak('christopherkenny/bskyr')\n```\n\n## Posting with `bskyr`\n\nFirst, load the package:\n\n```{r}\nlibrary(bskyr)\n```\n\nText posts can be made as follows:\n\n```r\nbs_post(text = 'Your text goes here.')\n```\n\nIf you have images to include, up to four can be included with the `images` argument:\n\n```r\nbs_post(\n  text = 'Your text goes here.', \n  images = c('path/to/image1.jpg', 'path/to/image2.png')\n)\n```\n\nAlt text can be added to images with the `images_alt` argument:\n\n```r\nbs_post(\n  text = 'Your text goes here.', \n  images = c('path/to/image1.jpg', 'path/to/image2.png'), \n  images_alt = c('Alt text for image 1', 'Alt text for image 2')\n)\n```\n\n\nTo quote or reply to a post, use the `quote` and/or `reply` argument, respectively.\nThese can take the link of an existing post. \nYou can quote and reply to the same post, if you want.\n\n```r\nbs_post(\n  text = 'Your text goes here.', \n  quote = 'https://bsky.app/profile/chriskenny.bsky.social/post/3kepscxiljc22',\n  reply = 'https://bsky.app/profile/chriskenny.bsky.social/post/3kepscxiljc22'\n)\n```\n\nSee the reference for additional features, including likes with `bs_like()` and reposts with `bs_repost()`.\n\n## Authentication\n\nTo authenticate, you first need to make an App Password. \nTo do this, go to `https://bsky.app/settings`.\nUnder \"Advanced\" click App passwords and then \"Add App Password.\"\n\nOnce you have a password, you need to run:\n\n```r\nset_bluesky_user('YOUR-USERNAME.bsky.social')\nset_bluesky_pass('your-apps-pass-word')\n```\n\nIf you want this to persist across sessions, set `install = TRUE` and `r_env = file.path(Sys.getenv('HOME'), '.Renviron')`.\nThis will save your credentials in your R environment file.\n\nAlternatively, you can set them manually using `usethis::edit_r_environ()` and adding lines like so:\n\n```\nBLUESKY_APP_USER='YOUR-USERNAME.bsky.social'\nBLUESKY_APP_PASS='your-apps-pass-word'\n```\n\n## \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristopherkenny%2Fbskyr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristopherkenny%2Fbskyr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristopherkenny%2Fbskyr/lists"}