clockworklabs / clockworklabs/SpacetimeDB

Option to disable names case transforming a.k.a. keep snake_case in SDK

Open
#2,959 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

Currently, generating client SDK for TypeScript mangles all user-specified names (tables, reducers, fields) by transforming to JS-native camelCase.

It seems better to at least have an option to keep the names as is, especially for cases like using some other client-side codegen as well.

Related: #2165 for C#.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing TypeScript client SDK generation and the name transformation applied to tables, reducers, and fields. Define how an option should preserve user-specified names while retaining the current default behavior, then add coverage showing both modes produce the expected names.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.