[GH-ISSUE #223] asciicast v2: extra meta-data #164

Closed
opened 2026-02-25 20:32:56 +03:00 by kerem · 5 comments
Owner

Originally created by @ku1ik on GitHub (Sep 4, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/223

Some would like to have a place to store extra meta-data about the recording. I see the following options:

  • use the env vars collection feature (see https://github.com/asciinema/asciinema/issues/222): put any extra info in new env vars and white-list these. Downside is that your shell and all apps started in it would inherit these env vars and this could potentially leak some sensitive data
  • use any number of top-level, underscore prefixed keys, like "_session_id": "67fds6futysgh", "_my_internal_thing": "blah" - the UNIX way, similar to . prefixed hidden files. You could add them manually / with a script, after recording is finished by editing the file, or the recording tool (e.g. castty) could add them automatically, prefixed with a tool name if it's tool specific thing (_castty_audio_url)
  • use single top-level meta (or prv) object, with arbitrary tool/vendor/user-specific keys+values.
Originally created by @ku1ik on GitHub (Sep 4, 2017). Original GitHub issue: https://github.com/asciinema/asciinema/issues/223 Some would like to have a place to store extra meta-data about the recording. I see the following options: - use the env vars collection feature (see https://github.com/asciinema/asciinema/issues/222): put any extra info in new env vars and white-list these. Downside is that your shell and all apps started in it would inherit these env vars and this could potentially leak some sensitive data - use any number of top-level, underscore prefixed keys, like `"_session_id": "67fds6futysgh"`, `"_my_internal_thing": "blah"` - the UNIX way, similar to `.` prefixed hidden files. You could add them manually / with a script, after recording is finished by editing the file, or the recording tool (e.g. castty) could add them automatically, prefixed with a tool name if it's tool specific thing (`_castty_audio_url`) - use single top-level `meta` (or `prv`) object, with arbitrary tool/vendor/user-specific keys+values.
kerem closed this issue 2026-02-25 20:32:56 +03:00
Author
Owner

@dhobsd commented on GitHub (Sep 4, 2017):

Another option would be to reserve a "meta" object for whatever custom keyspace a recorder wants to use.

<!-- gh-comment-id:327023472 --> @dhobsd commented on GitHub (Sep 4, 2017): Another option would be to reserve a "meta" object for whatever custom keyspace a recorder wants to use.
Author
Owner

@ku1ik commented on GitHub (Sep 4, 2017):

This was also suggested by @XANi. Given that the whole header line is meta-data the key named meta in it doesn't feel right to me. I'd probably prefer something more specific like prv or vendor. Anyway, I updated the list above with this suggestion. Thanks @dhobsd !

<!-- gh-comment-id:327027362 --> @ku1ik commented on GitHub (Sep 4, 2017): This was also suggested by @XANi. Given that the whole header line is meta-data the key named `meta` in it doesn't feel right to me. I'd probably prefer something more specific like `prv` or `vendor`. Anyway, I updated the list above with this suggestion. Thanks @dhobsd !
Author
Owner

@XANi commented on GitHub (Sep 5, 2017):

"vendor" or "custom" makes sense

<!-- gh-comment-id:327044312 --> @XANi commented on GitHub (Sep 5, 2017): "vendor" or "custom" makes sense
Author
Owner

@josegonzalez commented on GitHub (Sep 20, 2017):

vendor seems reasonable to me.

<!-- gh-comment-id:330898137 --> @josegonzalez commented on GitHub (Sep 20, 2017): `vendor` seems reasonable to me.
Author
Owner

@ku1ik commented on GitHub (Feb 20, 2022):

Not a priority, so closing for now.

<!-- gh-comment-id:1046261071 --> @ku1ik commented on GitHub (Feb 20, 2022): Not a priority, so closing for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#164
No description provided.