This is the JavaScript API to interact with the data layer of the NG platform.
<!doctype html>
<html>
<head>
<title>My app</title>
<script src="https://unpkg.com/@pitcher/js-api"></script>
<!-- or for beta: -->
<!-- <script src="https://unpkg.com/@pitcher/js-api@beta"></script> -->
</head>
<body>
<script>
const api = pitcher.usePitcherApi()
const ui = pitcher.useUi()
const admin = pitcher.useAdmin()
api.getEnv()
ui.selectContent()
admin.getEnv()
</script>
</body>
</html>
For more details, please visit the documentation.