nerfstudio-project / viser

Web-based 3D visualization + Python
https://viser.studio/latest
Apache License 2.0
599 stars 32 forks source link

Automatic camelCase <-> snake case conversion for message fields #37

Open brentyi opened 1 year ago

brentyi commented 1 year ago

We define messages in Python right now (https://github.com/nerfstudio-project/viser/blob/main/viser/_messages.py) that are automatically translated to TypeScript interfaces (https://github.com/nerfstudio-project/viser/blob/main/viser/client/src/WebsocketMessages.tsx).

The field names are currently always the same (and thus snake case because messages are defined originally in Python), but it'd be nice if the TypeScript end of things used camel case. Camel case will also make the websocket messages slightly smaller. :)

akansjain commented 1 year ago

Hello brentyi, I would like to take this up. Please assign this issue to me.

brentyi commented 1 year ago

@akansjain assigned you! Sorry for the late reply!