# Can we define cubes with JavaScript instead of YAML?

**URL:** <https://community.embeddable.com/t/can-we-define-cubes-with-javascript-instead-of-yaml/33>\
**Category:** FAQs\
**Created:** [March 27, 2024, 1:24pm UTC](https://community.embeddable.com/t/can-we-define-cubes-with-javascript-instead-of-yaml/33 "2024-03-27T13:24:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [March 27, 2024, 1:24pm UTC](https://community.embeddable.com/t/can-we-define-cubes-with-javascript-instead-of-yaml/33/1 "2024-03-27T13:24:11Z")

</div>

Yes! You can define data models using javascript `.cube.js` files
