{"id":15893031,"url":"https://github.com/i2z1/airfleet","last_synced_at":"2026-01-19T02:01:29.819Z","repository":{"id":256042366,"uuid":"850446262","full_name":"i2z1/airfleet","owner":"i2z1","description":"FleetDM API wrapper for threat hunting with R","archived":false,"fork":false,"pushed_at":"2024-09-20T15:52:10.000Z","size":1098,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T13:03:57.723Z","etag":null,"topics":["fleetdm","mdm","osquery","r"],"latest_commit_sha":null,"homepage":"https://i2z1.github.io/airfleet/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i2z1.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-08-31T19:42:26.000Z","updated_at":"2024-09-27T21:57:24.000Z","dependencies_parsed_at":"2024-09-08T18:16:14.880Z","dependency_job_id":"cc62aea1-aa0a-4b0d-8b26-b8270c648f39","html_url":"https://github.com/i2z1/airfleet","commit_stats":null,"previous_names":["i2z1/airfleet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/i2z1/airfleet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2z1%2Fairfleet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2z1%2Fairfleet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2z1%2Fairfleet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2z1%2Fairfleet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i2z1","download_url":"https://codeload.github.com/i2z1/airfleet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2z1%2Fairfleet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28557783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fleetdm","mdm","osquery","r"],"created_at":"2024-10-06T08:06:27.727Z","updated_at":"2026-01-19T02:01:29.802Z","avatar_url":"https://github.com/i2z1.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```{r generate_hex, include=FALSE, fig.path=\"man/figures/hex-\"}\nlibrary(hexSticker)\nlibrary(ggplot2)\nlibrary(ggforce)\n\nup_line \u003c- function(x,b,r){\n  y \u003c- x + b\n    df \u003c- data.frame(x = x,\n                   y = y,\n                   r = r)\n  return(df)\n}\n\ndf \u003c- data.frame(x = c(1,3,5),\n                 y = c(1,3,5),\n                 r = c(0.75,0.75,0.75))\ndf_up \u003c- up_line(x = c(1.3,3.3), b = 2, r = 0.35)\ndf_down \u003c- up_line(x = c(3,5), b = -1.8, r = 0.35)\n\ndf_all \u003c- rbind(df, df_up, df_down)\n                    \n\np \u003c- ggplot(df_all, aes(x0 = x, y0 = y, r =r)) +\n  geom_circle(color = \"red\", fill = \"darkred\") +\n  ggplot2::theme_void() +\n  scale_size(range = c(1, -1)) +\n  coord_fixed()\n\npic \u003c- p + theme_void() + theme_transparent()\n\nhexSticker::sticker(pic, package=\"airfleet\", \n                    p_size=22,\n                    p_y=1.55,\n                    s_x=1,\n                    s_y=.85,\n                    s_width=1.7,\n                    s_height=1,\n                    h_fill = \"#000000\",\n                    p_color = \"#0d8b9f\",\n                    h_color = \"#e13ed3\", #border\n                    p_family = \"teko\",\n                    filename=\"man/figures/hex.png\")\n```\n\n\n# aiRfleet \u003cimg src=\"man/figures/hex.png\" width=\"140px\" height=\"160px\" align=\"right\" style=\"padding-left:10px;\" /\u003e\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nFleet device management API wrapper for R.\n\n[FleetDM](https://fleetdm.com/) is a centralized MDM open-source solution for gathering hosts data via [osquery](https://osquery.io/) and presenting it in normalized table view.\n\nThis package is inspired by [osqueryr](https://github.com/hrbrmstr/osqueryr) R package.\n\n## Installation\n\nYou can install the development version of aiRfleet from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"i2z1/airfleet\")\n```\n\nor\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"i2z1/airfleet\")\n```\n\n## Usage\n\n### Get Fleet hosts as dataframe\n\n``` r\nflt_con \u003c- flt_connection(host = Sys.getenv(\"FLEET_HOST\"),\n                          apitoken = Sys.getenv(\"FLEET_TOKEN\"))\n\nhosts_df \u003c- get_hosts(flt_con)\n```\n\n### List Fleet queries\n\n``` r\nqueries_df = query_list(flt_con)\n```\n\n### Create query \n\n``` r\nquery_create(flt_con, name = \"users_qry\", query = \"SELECT * from users;\")\n```\n\n### Delete query\n\n``` r\nquery_delete(flt_con, id=51)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi2z1%2Fairfleet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi2z1%2Fairfleet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi2z1%2Fairfleet/lists"}