VSReacT v0.0.9
PostHog analytics inside your plugin.
New package: @vsreact/posthog 0.0.1
posthogclient — posthog-js-shaped API (init,capture,
identify,register,set,reset,flush) that batches in JS
(flush at 10 events / 10s) and delivers through the native bridge.
Every event carriesdistinct_id,$session_id, and lib metadata.usePostHogParameters()— the one-liner for plugin usage
analytics: every host parameter change becomes one debounced
parameter_changed {parameter_id, value, text}event per parameter.useCaptureOnMount(event)for panel/screen views,usePostHog().
Core 0.0.9 — native side
vsreact::PostHogBridge— chain it inonNativeCalllike the
ParameterBridge. Answersposthog:config(persistent anonymous
distinct id via an optionalstateFile, host) andposthog:send
(queues batches, posts{api_key, batch}to{host}/batch/on a
background thread viajuce::URL). The API key stays in C++. Test
transport + synchronous-flush hooks included; covered by C++ tests.- Release workflow now builds and publishes both packages; CI tests both.
- No other core changes — JS core API identical to 0.0.8.
Install
bun add @vsreact/core # or npm install / yarn add / pnpm addFetch the native JUCE module with CMake:
include(FetchContent)
FetchContent_Declare(vsreact
GIT_REPOSITORY https://github.com/N9RecordsTechnologiesIL/VSReacT.git
GIT_TAG v0.0.9
SOURCE_SUBDIR vsreact)
FetchContent_MakeAvailable(vsreact)