If you are building a simple dashboard or a form-based application, the traditional JSON API (REST or GraphQL) approach is ...
Core REST API for accessing Salesforce data and metadata programmatically.