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>
</head>
<body>
<script>
const api = pitcher.usePitcherApi()
const ui = pitcher.useUi()
const admin = pitcher.useAdmin()
api.getEnv()
ui.selectContent() // ui.select_content() works too
admin.getEnv() // admin.get_env() works too
</script>
</body>
</html>
For more details, please visit the documentation.