{
  "_id": "6a232ea6530b9bc726bd0f9a",
  "Package": "shinychat",
  "Title": "Chat UI Component for 'shiny'",
  "Version": "0.4.0.9000",
  "Authors@R": "c(\nperson(\"Joe\", \"Cheng\", , \"joe@posit.co\", role = \"aut\"),\nperson(\"Carson\", \"Sievert\", , \"carson@posit.co\", role = \"aut\"),\nperson(\"Garrick\", \"Aden-Buie\", , \"garrick@adenbuie.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-7111-0077\")),\nperson(\"Barret\", \"Schloerke\", , \"barret@posit.co\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-9986-114X\")),\nperson(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\"),\ncomment = c(ROR = \"03wc8by49\"))\n)",
  "Description": "Provides a scrolling chat interface with multiline input,\nsuitable for creating chatbot apps based on Large Language\nModels (LLMs). Designed to work particularly well with the\n'ellmer' R package for calling LLMs.",
  "License": "MIT + file LICENSE",
  "URL": "https://posit-dev.github.io/shinychat/r/,\nhttps://github.com/posit-dev/shinychat",
  "BugReports": "https://github.com/posit-dev/shinychat/issues",
  "Config/Needs/website": "tidyverse/tidytemplate, rmarkdown, weathR, gt,\nglue, bsicons",
  "Config/roxygen2/version": "8.0.0",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "cmake make libuv1-dev libssl-dev zlib1g-dev",
  "Repository": "https://posit-dev.r-universe.dev",
  "Date/Publication": "2026-06-05 16:21:46 UTC",
  "RemoteUrl": "https://github.com/posit-dev/shinychat",
  "RemoteRef": "HEAD",
  "RemoteSha": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
  "RemoteSubdir": "pkg-r",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-05 20:03:11 UTC",
    "User": "root"
  },
  "Author": "Joe Cheng [aut],\nCarson Sievert [aut],\nGarrick Aden-Buie [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-7111-0077>),\nBarret Schloerke [aut] (ORCID: <https://orcid.org/0000-0001-9986-114X>),\nPosit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)",
  "Maintainer": "Garrick Aden-Buie <garrick@adenbuie.com>",
  "MD5sum": "5286f66586c95607eeac5a23514a280d",
  "_user": "posit-dev",
  "_type": "src",
  "_file": "shinychat_0.4.0.9000.tar.gz",
  "_fileid": "ebdd77e90fbaebc3c485cff88ffa3b59a1efc48b5c3305a3eb1336b1eecdc73f",
  "_filesize": 1646744,
  "_sha256": "ebdd77e90fbaebc3c485cff88ffa3b59a1efc48b5c3305a3eb1336b1eecdc73f",
  "_created": "2026-06-05T20:03:11.000Z",
  "_published": "2026-06-05T20:16:38.756Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79804338903,
      "time": 140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7445761298"
    },
    {
      "job": 79804338791,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445761911"
    },
    {
      "job": 79804338878,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7445875525"
    },
    {
      "job": 79804338770,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445945839"
    },
    {
      "job": 79803809988,
      "time": 199,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445719861"
    },
    {
      "job": 79804338738,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445753108"
    },
    {
      "job": 79804338807,
      "time": 95,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7445748219"
    },
    {
      "job": 79804338801,
      "time": 88,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7445745997"
    },
    {
      "job": 79804338792,
      "time": 82,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7445744140"
    }
  ],
  "_buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/posit-dev/shinychat",
  "_commit": {
    "id": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
    "author": "Carson Sievert <cpsievert1@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "feat: segment-based message storage (mixed content + thinking) (#243)\n\n* feat(py): segment-based message storage with thinking segments\n\nMessages are stored as a sequence of typed content segments (markdown,\nhtml, text, thinking) instead of a flattened string. Structured thinking\nbecomes a thinking segment; the prior <thinking>-tag flush hack is removed.\nThinking segments are excluded from StoredMessage.content (and thus from\nprovider history and token counts). Bookmark store/restore round-trips\nsegments (no legacy fallback).\n\n* feat(js): build render blocks from segment payloads\n\nMessagePayload carries segments[]; messagePayloadToData derives main's\nblock render model per-segment via splitThinkingBlocks. Reducer and\nThinkingDisplay unchanged.\n\n* feat(r): emit segment-based message payloads\n\n* test(e2e): mixed markdown+thinking+html bookmark round-trip\n\n* docs: changelog for segment-based storage + thinking\n\n* chore: rebuild dist assets\n\n* fix(py): include thinking in streaming wire content\n\nStoredMessage.content excludes thinking (for history/token counts), but\n_send_append_message used it for the streaming chunk content, so live\nthinking chunks went out empty and rendered nothing. Derive the wire\ncontent from all segments instead.\n\n* Address PR review feedback for segment-based storage\n\n- refactor(py): drop redundant HTML special-case in chunk and transform\n  handling; delegate content-type detection and island-wrapping to\n  ChatMessage normalization (also fixes raw-vs-wrapped inconsistency)\n- style(r): revert formatting-only changes unrelated to segments\n- docs: frame segment storage as a bookmarking improvement, not a feature\n\n* test(e2e): expect wrapped html in transform_assistant message state\n\nThe transform_assistant_response path now routes HTML output through the\nsame ChatMessage/segment representation as everywhere else, so stored\ncontent is wrapped in <shinychat-raw-html> with blank-line padding. Update\nthe stale message_state expectation to match.\n\n* tes",
    "time": 1780676506
  },
  "_maintainer": {
    "name": "Garrick Aden-Buie",
    "email": "garrick@adenbuie.com",
    "login": "gadenbuie",
    "mastodon": "@grrrck@fosstodon.org",
    "bluesky": "@grrrck.xyz",
    "description": "Software engineer for Shiny at @posit-pbc",
    "uuid": 5420529,
    "orcid": "0000-0002-7111-0077"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "base64enc",
      "role": "Imports"
    },
    {
      "package": "bslib",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "coro",
      "role": "Imports"
    },
    {
      "package": "ellmer",
      "version": ">= 0.4.1",
      "role": "Imports"
    },
    {
      "package": "fastmap",
      "role": "Imports"
    },
    {
      "package": "htmltools",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "promises",
      "version": ">= 1.3.2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "S7",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "version": ">= 1.10.0",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "later",
      "role": "Suggests"
    },
    {
      "package": "R6",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "posit-dev",
  "_selfowned": true,
  "_usedby": 6,
  "_updates": [
    {
      "week": "2025-23",
      "n": 11
    },
    {
      "week": "2025-26",
      "n": 1
    },
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-29",
      "n": 3
    },
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2025-32",
      "n": 11
    },
    {
      "week": "2025-33",
      "n": 2
    },
    {
      "week": "2025-34",
      "n": 4
    },
    {
      "week": "2025-36",
      "n": 9
    },
    {
      "week": "2025-37",
      "n": 29
    },
    {
      "week": "2025-40",
      "n": 3
    },
    {
      "week": "2025-42",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 7
    },
    {
      "week": "2025-48",
      "n": 3
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 4
    },
    {
      "week": "2026-14",
      "n": 5
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 3
    },
    {
      "week": "2026-17",
      "n": 2
    },
    {
      "week": "2026-18",
      "n": 5
    },
    {
      "week": "2026-19",
      "n": 3
    },
    {
      "week": "2026-20",
      "n": 6
    },
    {
      "week": "2026-21",
      "n": 9
    },
    {
      "week": "2026-22",
      "n": 8
    },
    {
      "week": "2026-23",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "py/v0.1.0",
      "date": "2025-08-07"
    },
    {
      "name": "py/v0.2.0",
      "date": "2025-09-10"
    },
    {
      "name": "py/v0.2.1",
      "date": "2025-09-10"
    },
    {
      "name": "py/v0.2.2",
      "date": "2025-09-10"
    },
    {
      "name": "py/v0.2.3",
      "date": "2025-09-10"
    },
    {
      "name": "py/v0.2.4",
      "date": "2025-09-10"
    },
    {
      "name": "py/v0.2.5",
      "date": "2025-09-11"
    },
    {
      "name": "py/v0.2.6",
      "date": "2025-09-11"
    },
    {
      "name": "py/v0.2.7",
      "date": "2025-09-11"
    },
    {
      "name": "py/v0.2.8",
      "date": "2025-09-11"
    },
    {
      "name": "r/v0.3.0",
      "date": "2025-11-21"
    },
    {
      "name": "py/v0.2.9",
      "date": "2026-02-09"
    },
    {
      "name": "py/v0.3.0",
      "date": "2026-04-30"
    },
    {
      "name": "py/v0.3.1",
      "date": "2026-05-01"
    },
    {
      "name": "py/v0.3.2",
      "date": "2026-05-21"
    },
    {
      "name": "py/v0.4.0",
      "date": "2026-05-27"
    },
    {
      "name": "r/v0.4.0",
      "date": "2026-06-01"
    }
  ],
  "_stars": 131,
  "_contributors": [
    {
      "user": "gadenbuie",
      "count": 90,
      "uuid": 5420529
    },
    {
      "user": "cpsievert",
      "count": 77,
      "uuid": 1365941
    },
    {
      "user": "jcheng5",
      "count": 38,
      "uuid": 129551
    },
    {
      "user": "schloerke",
      "count": 8,
      "uuid": 93231
    },
    {
      "user": "deepanshkhurana",
      "count": 1,
      "uuid": 26517718
    },
    {
      "user": "elnelson575",
      "count": 1,
      "uuid": 16469084
    },
    {
      "user": "harshit28j",
      "count": 1,
      "uuid": 48647625
    },
    {
      "user": "karangattu",
      "count": 1,
      "uuid": 4220325
    },
    {
      "user": "markmcd",
      "count": 1,
      "uuid": 109308
    },
    {
      "user": "skaltman",
      "count": 1,
      "uuid": 18153457
    },
    {
      "user": "simonpcouch",
      "count": 1,
      "uuid": 35748691
    }
  ],
  "_userbio": {
    "uuid": 107264312,
    "type": "organization",
    "name": "posit-dev"
  },
  "_downloads": {
    "count": 6473,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/shinychat"
  },
  "_devurl": "https://github.com/posit-dev/shinychat",
  "_pkgdown": "https://posit-dev.github.io/shinychat/r/",
  "_searchresults": 313,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/shinychat.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/posit-dev/shinychat",
  "_realowner": "posit-dev",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2024-12-18"
    },
    {
      "version": "0.2.0",
      "date": "2025-05-16"
    },
    {
      "version": "0.3.0",
      "date": "2025-11-20"
    },
    {
      "version": "0.4.0",
      "date": "2026-06-01"
    }
  ],
  "_exports": [
    "chat_app",
    "chat_append",
    "chat_append_message",
    "chat_clear",
    "chat_greeting",
    "chat_mod_server",
    "chat_mod_ui",
    "chat_restore",
    "chat_set_greeting",
    "chat_ui",
    "contents_shinychat",
    "markdown_stream",
    "output_markdown_stream",
    "update_chat_user_input"
  ],
  "_help": [
    {
      "page": "chat_app",
      "title": "Open a live chat application in the browser",
      "topics": [
        "chat_app",
        "chat_mod_server",
        "chat_mod_ui"
      ]
    },
    {
      "page": "chat_append",
      "title": "Append an assistant response (or user message) to a chat control",
      "topics": [
        "chat_append"
      ]
    },
    {
      "page": "chat_append_message",
      "title": "Low-level function to append a message to a chat control",
      "topics": [
        "chat_append_message"
      ]
    },
    {
      "page": "chat_clear",
      "title": "Clear all messages from a chat control",
      "topics": [
        "chat_clear"
      ]
    },
    {
      "page": "chat_greeting",
      "title": "Create a greeting for a chat UI",
      "topics": [
        "chat_greeting"
      ]
    },
    {
      "page": "chat_restore",
      "title": "Add Shiny bookmarking for shinychat",
      "topics": [
        "chat_restore"
      ]
    },
    {
      "page": "chat_set_greeting",
      "title": "Set the greeting for a chat UI",
      "topics": [
        "chat_set_greeting"
      ]
    },
    {
      "page": "chat_ui",
      "title": "Create a chat UI element",
      "topics": [
        "chat_ui"
      ]
    },
    {
      "page": "contents_shinychat",
      "title": "Format ellmer content for shinychat",
      "topics": [
        "contents_shinychat"
      ]
    },
    {
      "page": "markdown_stream",
      "title": "Stream markdown content",
      "topics": [
        "markdown_stream"
      ]
    },
    {
      "page": "output_markdown_stream",
      "title": "Create a UI element for a markdown stream.",
      "topics": [
        "output_markdown_stream"
      ]
    },
    {
      "page": "update_chat_user_input",
      "title": "Update the user input of a chat control",
      "topics": [
        "update_chat_user_input"
      ]
    }
  ],
  "_pkglogo": "https://github.com/posit-dev/shinychat/raw/HEAD/pkg-r/man/figures/logo.svg",
  "_readme": "https://github.com/posit-dev/shinychat/raw/HEAD/pkg-r/README.md",
  "_rundeps": [
    "askpass",
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "commonmark",
    "coro",
    "curl",
    "digest",
    "ellmer",
    "fastmap",
    "fontawesome",
    "fs",
    "glue",
    "htmltools",
    "httpuv",
    "httr2",
    "jquerylib",
    "jsonlite",
    "later",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "openssl",
    "otel",
    "pillar",
    "pkgconfig",
    "promises",
    "R6",
    "rappdirs",
    "Rcpp",
    "rlang",
    "S7",
    "sass",
    "shiny",
    "sourcetools",
    "sys",
    "tibble",
    "utf8",
    "vctrs",
    "withr",
    "xtable"
  ],
  "_score": 10.896677689537356,
  "_indexed": true,
  "_nocasepkg": "shinychat",
  "_universes": [
    "posit-dev",
    "gadenbuie"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:05:28.000Z",
      "distro": "noble",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "6d0524b0c5c092a587eddd5a5355c82e5b69372769dbffd1c91fd529b54bf53c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:05:28.000Z",
      "distro": "noble",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "cfc8d9c863b76b4637593cc9e6191ee1e42ea315fa6a2e2c315fcd913f23561d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:11:58.000Z",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "9b0b38d37526ed6a2c805401720fd8b86f516a5d1f1a8c11df9b2cccbadfb2c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:15:50.000Z",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "e3c3681ce243a3427a46226a82848f30396422cb431f9f9a3d064706a820995f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:05:20.000Z",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "f5ad4dd5e1c261bf51063831c45a6fefedab12fa7d014535c61d00c3b494e7af",
      "status": "success",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:04:34.000Z",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "1b9bd6b864a7584af9e7116483a3d2b18dfa2d6dda2d0a32f2fe25e03567f84e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:04:28.000Z",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "a980846bffeb31e301a2f543c6f44270be383117551d2d9cd84212a699dd4ad2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-06-05T20:04:23.000Z",
      "commit": "dc2a33a78e44f3960978fcd996ee9ccf6d892b7a",
      "fileid": "7a07bc87145f0baa949b4b86b0c9d924726f1d76d2c44a14ed555a8bd69efe2b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/posit-dev/actions/runs/27037104028"
    }
  ]
}