/** * Create a new thread (first release). */ export async function createThread( post: F95Post, token: string ): Promise< threadId: string; url: string > const payload = title: post.title, body: post.body, category: post.category, tags: post.tags ?? [], ; const data = await authFetch( "https://api.f95zone.to/v1/threads", token, method: "POST", body: JSON.stringify(payload) ); return threadId: data.id, url: data.url ;
## Download [Get the build here]($downloadUrl) jsk studio f95zone
| Use‑case | How the Bridge helps | |----------|----------------------| | on F95Zone when a build is published from JSK Studio. | Generates a markdown‑ready post with title, description, version, changelog, cover‑art and download link. | | Sync changelog & screenshots whenever a new commit is pushed to the project repo. | Updates the existing thread (or creates a new “Update” post) with the latest screenshots and release notes. | | Two‑way notification – get forum replies or private messages inside the JSK Studio UI. | Shows a badge in the IDE with the count of unread forum replies; clicking opens a small chat‑like panel. | | User‑based access control – only allow verified developers to post on behalf of the game. | OAuth2 login via F95Zone’s API (or a custom token flow) stores a short‑lived access token per developer. | | Analytics dashboard – view page‑views, download clicks, and “likes” directly in the studio. | Pulls public statistics from F95Zone (or parses the thread HTML) and visualises them in a tab. | 2️⃣ High‑Level Architecture +-------------------+ +----------------------+ +-------------------+ | JSK Studio IDE | HTTP | JSK‑F95Connector | HTTP | F95Zone API / | | (plugin UI) +--------->| (Node/TS backend) +--------->| Webhooks / HTML | +-------------------+ +----------------------+ +-------------------+ /** * Create a new thread (first release)
/** * Pull unread replies (used for badge count). */ export async function getUnreadCount( threadId: string, token: string ): Promise<number> const data = await authFetch( `https://api.f95zone.to/v1/threads/$threadId/replies?unread=true`, token ); return data.unreadCount ?? 0; | Generates a markdown‑ready post with title, description,
## Changelog $changelog `;
if (!res.ok) const txt = await res.text(); throw new Error(`F95Zone error $res.status: $txt`); return res.json(); }