# Naming Convention for RPCs in Nakama Console

**URL:** https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301
**Category:** Runtime Framework
**Created:** [July 3, 2025, 8:54am UTC](https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301 "2025-07-03T08:54:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mathijs-Bakker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mathijs-bakker/32/2564_2.png) [@Mathijs-Bakker](https://forum.heroiclabs.com/u/Mathijs-Bakker)
#### Post date: [July 3, 2025, 8:54am UTC](https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301/1 "2025-07-03T08:54:50Z")

</div>

Hi all,

I’ve run into a small but possibly meaningful UX issue with how custom RPC function names appear in the Nakama Console UI.

In my module, I register RPCs like so:

```ts
function InitModule(ctx: nkruntime.Context, logger: nkruntime.Logger, nk: nkruntime.Nakama, initializer: nkruntime.Initializer) {
    initializer.registerRpc('Admin_SetMaintenanceMode', rpcAdminSetMaintenanceMode);
    initializer.registerRpc('Admin_SetRequiredClientVersion', rpcAdminSetRequiredClientVersion);
    initializer.registerRpc('StartupHealthchecks', rpcStartUpHealthChecks);
    initializer.registerRpc('UpdateLastOnline', rpcUpdateLastOnline);
    logger.info('Javascript InitModule loaded');
}

```

The first argument of `registerRpc()` is the function’s ID, which is then visible in the **Nakama Console** under the RPCs tab. However, these IDs are transformed to lowercase, making them harder to read — especially when compared to the built-in RPCs like `DeleteStorageObjects`, which use PascalCase.

My question is:  
🔹 **Is there a way to preserve the original casing in the Console display?**  
🔹 Or is this automatic normalization by design?

Before filing a GitHub issue or feature request, I wanted to check here first in case there’s already a workaround or rationale behind this behavior.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)
#### Post date: [July 3, 2025, 9:33am UTC](https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301/2 "2025-07-03T09:33:13Z")

</div>

Hello @Mathijs-Bakker,

The RPC IDs are indeed normalized and will always be registered as lower-case, the original ID is not kept so there’s no way to display it in the Console.

Best.

---

<div class="post-metadata">

### Author: ![Mathijs-Bakker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mathijs-bakker/32/2564_2.png) [@Mathijs-Bakker](https://forum.heroiclabs.com/u/Mathijs-Bakker)
#### Post date: [July 3, 2025, 10:18am UTC](https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301/3 "2025-07-03T10:18:08Z")

</div>

Ok, clear

So - for example - the id:

```ts
initializer.registerRpc('setrequiredclientversion', rpcAdminSetRequiredClientVersion);

```

could be labeled

```ts
initializer.registerRpc('set-required-client-version', rpcAdminSetRequiredClientVersion);

```

for readability.  
(or whatever ‘best’ practice is used in the `current project's style-guide`).

---

<div class="post-metadata">

### Author: ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)
#### Post date: [July 3, 2025, 10:27am UTC](https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301/4 "2025-07-03T10:27:23Z")

</div>

Yes, using snake\_case or dashes is allowed and can help with readability of the RPC IDs.

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [July 4, 2025, 11:51am UTC](https://forum.heroiclabs.com/t/naming-convention-for-rpcs-in-nakama-console/6301/5 "2025-07-04T11:51:29Z")

</div>

In addition to what @sesposito mentioned, note that RPCs are also used as URL endpoints, so typically URLs don’t contain dashes and aren’t case sensitive.
