Skip to content

Commit 87df80a

Browse files
committed
chore: various doc changes
1 parent 515f6fe commit 87df80a

60 files changed

Lines changed: 718 additions & 769 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/docs/(guides)/contributing.mdx

Lines changed: 29 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ icon: Heart
44
description: Help improve the VRChat API documentation through code examples, bug fixes, documentation updates, and community support. Find open issues and join our Discord community.
55
---
66

7-
import { GitFork, MessageCircle, FileText, Code } from 'lucide-react';
8-
import { File, Folder, Files } from 'fumadocs-ui/components/files';
9-
import { Steps, Step } from 'fumadocs-ui/components/steps';
10-
import { GithubInfo } from 'fumadocs-ui/components/github-info';
7+
import { GitFork, MessageCircle, FileText, Code } from "lucide-react";
8+
import { File, Folder, Files } from "fumadocs-ui/components/files";
9+
import { Steps, Step } from "fumadocs-ui/components/steps";
10+
import { GithubInfo } from "fumadocs-ui/components/github-info";
1111

12-
import { sdks } from "@/sdks"
12+
import { sdks } from "@/sdks";
1313

1414
Thanks for your interest in contributing to the **VRChat API documentation**! The VRChat API serves thousands of developers building applications, tools, and integrations for the VRChat platform.
1515

@@ -21,23 +21,20 @@ Your contributions help make this documentation more accurate, comprehensive, an
2121
<Card
2222
href="https://github.com/vrchatapi/specification/issues"
2323
title="Browse open issues"
24-
icon={<GitFork/>}
24+
icon={<GitFork />}
2525
>
26-
Check out open issues on GitHub for things that need to be done - this is a great place to start contributing.
26+
Check out open issues on GitHub for things that need to be done - this is a great place to start
27+
contributing.
2728
</Card>
28-
<Card
29-
href="/discord"
30-
title="Join our Discord"
31-
icon={<MessageCircle/>}
32-
>
29+
<Card href="/discord" title="Join our Discord" icon={<MessageCircle />}>
3330
Ask questions and discuss contributions with the community in real-time.
3431
</Card>
3532
</Cards>
3633

3734
## Repositories
3835

3936
<Callout type="info">
40-
The VRChat API project is spread across multiple repositories, each serving a different purpose.
37+
The VRChat API project is spread across multiple repositories, each serving a different purpose.
4138
</Callout>
4239

4340
### Specification repository
@@ -53,52 +50,45 @@ The related [specification-test repository](https://github.com/vrchatapi/specifi
5350
<GithubInfo className="not-prose" owner="vrchatapi" repo="specification-test" />
5451

5552
### Language-specific SDK repositories
53+
5654
Each programming language has its own repository with generated SDKs based on the OpenAPI specification. These are automatically generated from the OpenAPI specification and provide type-safe API clients for different programming languages.
5755

5856
<div className="not-prose grid grid-cols-2 gap-1">
59-
{sdks.map(({ repository }) => (
60-
<GithubInfo key={repository} owner="vrchatapi" repo={repository} />
61-
))}
57+
{sdks.map(({ repository }) => (
58+
<GithubInfo key={repository} owner="vrchatapi" repo={repository} />
59+
))}
6260
</div>
6361

6462
### Documentation site
63+
6564
This documentation site has its own repository for guides, tutorials, and website improvements.
6665

6766
<GithubInfo className="not-prose" owner="vrchatapi" repo="vrchat.community" />
6867

6968
## Ways to contribute
7069

7170
<Cards>
72-
<Card
73-
title="Documentation improvements"
74-
icon={<FileText/>}
75-
>
76-
Fix typos, grammar, or unclear explanations. Add missing information or examples. Improve existing guides and tutorials. Update outdated information.
71+
<Card title="Documentation improvements" icon={<FileText />}>
72+
Fix typos, grammar, or unclear explanations. Add missing information or examples. Improve
73+
existing guides and tutorials. Update outdated information.
7774
</Card>
78-
<Card
79-
title="Code examples"
80-
icon={<Code/>}
81-
>
82-
Add practical code examples for different programming languages. Improve existing code samples. Create tutorial projects demonstrating API usage.
75+
<Card title="Code examples" icon={<Code />}>
76+
Add practical code examples for different programming languages. Improve existing code samples.
77+
Create tutorial projects demonstrating API usage.
8378
</Card>
84-
<Card
85-
href="https://github.com/vrchatapi/specification"
86-
title="API reference"
87-
icon={<GitFork/>}
88-
>
89-
Report missing or incorrect API endpoint documentation. Suggest improvements to parameter descriptions. Contribute to the OpenAPI specification directly.
79+
<Card href="https://github.com/vrchatapi/specification" title="API reference" icon={<GitFork />}>
80+
Report missing or incorrect API endpoint documentation. Suggest improvements to parameter
81+
descriptions. Contribute to the OpenAPI specification directly.
9082
</Card>
91-
<Card
92-
title="Community support"
93-
icon={<MessageCircle/>}
94-
>
95-
Answer questions on Discord. Help other developers troubleshoot API issues. Share your own experiences and best practices.
83+
<Card title="Community support" icon={<MessageCircle />}>
84+
Answer questions on Discord. Help other developers troubleshoot API issues. Share your own
85+
experiences and best practices.
9686
</Card>
9787
</Cards>
9888

9989
## Before you start
10090

101-
Before jumping in, it's worth doing a quick check to make sure you're not duplicating work or going against the grain. Take a look at the [open issues](https://github.com/vrchatapi/specification/issues) to see if someone's already tackling what you have in mind.
91+
Before jumping in, it's worth doing a quick check to make sure you're not duplicating work or going against the grain. Take a look at the [open issues](https://github.com/vrchatapi/specification/issues) to see if someone's already tackling what you have in mind.
10292

10393
If you're planning something bigger than a small fix, hop into our [Discord](/discord) first - the community is pretty active and can save you time by pointing you in the right direction or letting you know about any quirks you should be aware of.
10494

@@ -111,4 +101,4 @@ Don't hesitate to reach out if you're unsure about anything:
111101
- **Discord**: Join our [Discord server](/discord) for real-time help and discussion
112102
- **GitHub Issues**: Ask questions directly on relevant issues
113103

114-
We appreciate all contributions, no matter how small. Every improvement helps make the VRChat API more accessible to developers!
104+
We appreciate all contributions, no matter how small. Every improvement helps make the VRChat API more accessible to developers!

content/docs/(guides)/faq.mdx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ icon: Info
55
---
66

77
## What should I do if I think I've found a bug in any of the libraries? [#bugs]
8+
89
If the issue pertains to an endpoint that has been changed in any way, such as incorrect types or a missing endpoint, please create an issue on the [specification repository](https://github.com/vrchatapi/specification/issues/new).
910

1011
For language-specific issues, kindly create an issue on the relevant SDK repository. However, it's worth noting that libraries are generated from the specification, and therefore **most issues need to be resolved in the specification itself**.
1112

1213
<Card href="/contributing" title="Get involved in fixing issues">
13-
Found something that needs fixing? Join the community effort to improve the VRChat API documentation by fixing bugs, adding endpoints, or improving examples.
14+
Found something that needs fixing? Join the community effort to improve the VRChat API
15+
documentation by fixing bugs, adding endpoints, or improving examples.
1416
</Card>
1517

1618
## I found an exploit or vulnerability! [#vulnerabilities]
19+
1720
If the exploit is in VRChat's scope, and not handled by us, please adhere to their responsible disclosure policy and **do not discuss it in public channels** or forums.
1821

1922
Report it on VRChat's [disclosure form](https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500001130621) page.
@@ -23,29 +26,31 @@ It's also recommended to include additional details such as a proof-of-concept,
2326

2427
The following is a copy of [VRChat's responsible disclosure policy](https://discord.com/channels/189511567539306508/368935109426020374/1121127082588639483) as of June 14th, 2025, it may change at any time, and you should always refer to the original text for the most up-to-date information.
2528

26-
2729
> Video, screenshots, chat logs, hearsay or gossip, etc alone are not helpful and do not constitute an exploit disclosure.
2830
>
2931
> **Bans are not issued for exploit reports and research**, assuming that:
30-
> * the exploit has not been used by you in a harmful manner
31-
> * all research was helpful and conducted in good faith
32-
> * you are respecting our Terms of Service
32+
>
33+
> - the exploit has not been used by you in a harmful manner
34+
> - all research was helpful and conducted in good faith
35+
> - you are respecting our Terms of Service
3336
34-
## I'm getting rate limited, what does this mean? ``429 Too many requests`` [#rate-limiting]
37+
## I'm getting rate limited, what does this mean? `429 Too many requests` [#rate-limiting]
3538

3639
Rate limiting happens when you're making requests too quickly to VRChat's API. The `429 Too Many Requests` response is VRChat's way of telling you to slow down and give their servers a breather.
3740

3841
<Callout type="warning">
39-
Rate limits can happen at any time and must not be treated as consistent or predictable. You should always be prepared to receive a 429 response, regardless of how many requests you think you've made.
42+
Rate limits can happen at any time and must not be treated as consistent or predictable. You
43+
should always be prepared to receive a 429 response, regardless of how many requests you think
44+
you've made.
4045
</Callout>
4146

4247
**The golden rule: Do not submit repeated, un-metered requests.**
4348

4449
Here's how to handle this properly:
4550

46-
* **Always implement exponential backoff** - This is non-negotiable. Start with a small delay (like 1 second), then double it with each retry (2s, 4s, 8s, etc.). Most HTTP libraries have built-in support for this, or you must implement it yourself.
47-
* **Cache aggressively** - Save data that rarely changes (user profiles, world details, etc.) and reuse it rather than making the same API calls over and over. Your app will be faster and more responsive too!
48-
* **Respect HTTP status codes** - When you get a 429, back off immediately. Don't keep hammering the API or you might face longer rate limits or account suspensions.
49-
* **Expect the unexpected** - Design your application to gracefully handle rate limits as a normal part of operation, not an error condition.
51+
- **Always implement exponential backoff** - This is non-negotiable. Start with a small delay (like 1 second), then double it with each retry (2s, 4s, 8s, etc.). Most HTTP libraries have built-in support for this, or you must implement it yourself.
52+
- **Cache aggressively** - Save data that rarely changes (user profiles, world details, etc.) and reuse it rather than making the same API calls over and over. Your app will be faster and more responsive too!
53+
- **Respect HTTP status codes** - When you get a 429, back off immediately. Don't keep hammering the API or you might face longer rate limits or account suspensions.
54+
- **Expect the unexpected** - Design your application to gracefully handle rate limits as a normal part of operation, not an error condition.
5055

51-
Remember, rate limits exist to keep the API stable for everyone. Working with them, not against them, will give you better performance in the long run.
56+
Remember, rate limits exist to keep the API stable for everyone. Working with them, not against them, will give you better performance in the long run.

content/docs/(guides)/instances.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Instances are parallel "rooms" or "lobbies" of a world.
77
Each instance can only hold a limited number of users, but there is no limit on how many instances can exist of a world.
88
Instances are uniquely identified by the combined World ID and Instance ID.
99

10-
1110
<Callout>
12-
As of 2024-05-02, VRChat indicated in [a Developer Update](https://ask.vrchat.com/t/developer-update-2-may-2024/24284#changes-to-instance-apis-and-auto-creation-13) an eventual intent to replace the current system with a UUID-ish system similar to User IDs.
11+
As of 2024-05-02, VRChat indicated in [a Developer
12+
Update](https://ask.vrchat.com/t/developer-update-2-may-2024/24284#changes-to-instance-apis-and-auto-creation-13)
13+
an eventual intent to replace the current system with a UUID-ish system similar to User IDs.
1314
</Callout>
1415

1516
## Instance Generator
1617

17-
1818
## Instance ID
1919

2020
The instance ID is the combined sum of all the arguments to the instance e.g. name, owner, and privacy setting.
@@ -34,12 +34,12 @@ Nonce is the Cryptographic key used to lock non-public instances to prevent peop
3434

3535
Region indicates the geographical location of the Photon servers used for the instance. **Default:** `us`
3636

37-
Region | Hosted in | Token
38-
-------|-----------|------
39-
USA, West | San José | us
40-
USA, East | Washington D.C. | use
41-
Europe | Amsterdam | eu
42-
Japan | Tokyo | jp
37+
| Region | Hosted in | Token |
38+
| --------- | --------------- | ----- |
39+
| USA, West | San José | us |
40+
| USA, East | Washington D.C. | use |
41+
| Europe | Amsterdam | eu |
42+
| Japan | Tokyo | jp |
4343

4444
### Special Values
4545

@@ -48,5 +48,5 @@ The VRChat API has several sentinel values for location strings:
4848
- `""` Pseudo-null value
4949
- `"offline"` Implies a user currently is not either running the VRChat client or connected to the Pipeline (e.g., browser tab open)
5050
- `"traveling"` Indicates a user's client is travelling between instances (e.g., downloading world, synchronizing world state)
51-
- Also can be `"traveling:traveling`
51+
- Also can be `"traveling:traveling`
5252
- `"private"` Indicates a user's location is not visible to the currently logged-in user. (e.g., Ask Me/Do Not Disturb status, Invite/Invite+/Group instance)

content/docs/(guides)/meta.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"pages": [
3-
"---Guides---",
4-
"...",
5-
"!faq",
6-
"!contributing"
7-
]
8-
}
2+
"pages": ["---Guides---", "...", "!faq", "!contributing"]
3+
}

content/docs/(guides)/shortlinks.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ Each of the following describes an HTTP `GET` request, where VRChat replies with
2727
`https://vrchat.com/api/1/groups/redirect/<groupCodeAndDisc>` redirects to `https://vrchat.com/home/group/<groupId>`
2828
This last one is actually programmatically useful, as it can be used to resolve a group code with discriminator to the group's ID without having to use the 'search groups' API endpoint.
2929
Ex.: `GET https://vrchat.com/api/1/groups/redirect/VRCHAT.0000` redirects to `https://vrchat.com/home/group/grp_7ccb6ca3-cd36-4dab-9ab1-7bcf08d794e4`
30-

content/docs/(guides)/tags/group.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Group tags
33
---
44

5-
Tag | Description
6-
----|------------
7-
`admin_hide_member_count` | Hides both online members and total number of members in the group. Used for the [VRCHAT.0000](https://vrc.group/VRCHAT.0000) staff group.
8-
5+
| Tag | Description |
6+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
7+
| `admin_hide_member_count` | Hides both online members and total number of members in the group. Used for the [VRCHAT.0000](https://vrc.group/VRCHAT.0000) staff group. |

0 commit comments

Comments
 (0)