npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

generator-shiningteapot

v1.0.4

Published

HANA Cloud: create Business Application Studio project for productive HDI containers

Readme

generator-shiningteapot

AppStudio: connect to existing HDI service (experimental!)

Overview

This script extracts the currently deployed designtime files from an HDI container linked to a CloudFoundry HDI shared service and generates a project for Business Application Studio.

Installation

The script is implemented as Yeoman generator. Download the repository, then run:

npm install -g generator-shiningteapot

The script can be started with:

$ yo shiningteapot

Usage

In a first step the script will ask you for the CloudFoundry logon credentials:

$ yo shiningteapot
? Enter CloudFoundry API host name: <CF_API_host>
? Enter CloudFoundry user name: <redacted>
? Enter Cloudfoundry password: [hidden]

Next the CloudFoundry organisation, space and service name must be selected. Use the arrow keys to navigate up and down:

$ yo shiningteapot
? Enter CloudFoundry API host name: <CF_API_host>
? Enter CloudFoundry user name: <redacted>
? Enter Cloudfoundry password: [hidden]
[app] connect to CloudFoundry: <redacted>@<CF_API_host> (password provided)
? Select CloudFoundry organisation: (Use arrow keys)
> CF_Test_Org_1
  CF_Test_Org_4
  Teapot_Tests
  Launch_Pad

Last input will be the target path for the extracted and generated project files:

$ yo shiningteapot
? Enter CloudFoundry API host name: <CF_API_host>
? Enter CloudFoundry user name: <redacted>
? Enter Cloudfoundry password: [hidden]
[app] connect to CloudFoundry: <redacted>@<CF_API_host> (password provided)
? Select CloudFoundry organisation: Teapot_Tests
? Select CloudFoundry space: Teapot_Current
? Select CloudFoundry service: demo_mdl007-db01-hdi
? Enter local project root path: (/home/user/projects/SHINING_TEAPOT_DEMO_MDL007-DB01-HDI_20210621140520925)

The script will then connect to the HDI container, extract the designtime files and use them to generate an AppStudio project in the selected location:

$ yo shiningteapot
? Enter CloudFoundry API host name: <CF_API_host>
? Enter CloudFoundry user name: <redacted>
? Enter Cloudfoundry password: [hidden]
[app] connect to CloudFoundry: <redacted>@<CF_API_host> (password provided)
? Select CloudFoundry organisation: Teapot_Tests
? Select CloudFoundry space: Teapot_Current
? Select CloudFoundry service: demo_mdl007-db01-hdi
? Enter local project root path: SHINING_TEAPOT_DEMO_MDL007-DB01-HDI_20210621140520925
[app] processing options
[app]   host: <CF_API_host>
[app]   username: <redacted>
[app]   projectPath: /home/user/projects/SHINING_TEAPOT_DEMO_MDL007-DB01-HDI_20210621140520925
[app]   organisation: Testpot_Tests
[app]   space: Teapot_Current
[app]   service: demo_mdl007-db01-hdi
[app] executing...
[app]  [titor] service name: demo_mdl007-db01-hdi
[app]  [titor] service GUID: <redacted>
[app]  [titor] deployed files:
[app]  [titor]   0: src/ (folder)
[app]  [titor]   1: src/.hdiconfig (3387 bytes)
[app]  [titor]   2: src/.hdinamespace (50 bytes)
[app]  [titor]   3: src/data/ (folder)
[app]  [titor]   4: src/data/MD_ITEM.hdbtabledata (427 bytes)
[app]  [titor]   5: src/data/MD_ITEMGRP.hdbtabledata (433 bytes)
[app]  [titor]   6: src/data/SALES_DATA_SIMPLE.hdbtabledata (447 bytes)
[app]  [titor]   7: src/data/pennybridge_md_item.csv (828 bytes)
[app]  [titor]   8: src/data/pennybridge_md_itemgrp.csv (94 bytes)
[app]  [titor]   9: src/data/pennybridge_sales_data_simple.csv (526352 bytes)
[app]  [titor]   10: src/privileges/ (folder)
[app]  [titor]   11: src/privileges/SALES_DATA_FULL_ACCESS.hdbstructuredprivilege (140 bytes)
[app]  [titor]   12: src/privileges/SALES_DATA_ITEMGRP_GRP001.hdbstructuredprivilege (155 bytes)
[app]  [titor]   13: src/privileges/SALES_DATA_ITEMGRP_GRP002.hdbstructuredprivilege (158 bytes)
[app]  [titor]   14: src/privileges/SALES_DATA_ITEMGRP_GRP003.hdbstructuredprivilege (158 bytes)
[app]  [titor]   15: src/privileges/SALES_DATA_ITEMGRP_GRP004.hdbstructuredprivilege (158 bytes)
[app]  [titor]   16: src/roles/ (folder)
[app]  [titor]   17: src/roles/SALES_DATA_ADMIN.hdbrole (1146 bytes)
[app]  [titor]   18: src/roles/SALES_DATA_CONSUMPTION.hdbrole (360 bytes)
[app]  [titor]   19: src/roles/SALES_DATA_EXT_OO.hdbrole (570 bytes)
[app]  [titor]   20: src/roles/SALES_DATA_REPORTING.hdbrole (679 bytes)
[app]  [titor]   21: src/synonyms/ (folder)
[app]  [titor]   22: src/synonyms/.hdinamespace (46 bytes)
[app]  [titor]   23: src/synonyms/odata.hdbsynonym (577 bytes)
[app]  [titor]   24: src/tables/ (folder)
[app]  [titor]   25: src/tables/MD_ITEM.hdbtable (225 bytes)
[app]  [titor]   26: src/tables/MD_ITEMGRP.hdbtable (119 bytes)
[app]  [titor]   27: src/tables/SALES_DATA_SIMPLE.hdbtable (349 bytes)
[app]  [titor]   28: src/views/ (folder)
[app]  [titor]   29: src/views/CV_SALES_DATA_SIMPLE.hdbcalculationview (14296 bytes)
[app]  [titor]   30: src/views/CV_VH_ITEMID_DIM.hdbcalculationview (2272 bytes)
[app]  [titor] generate Business Application Studio project
[app]  [titor]   project name: demo_mdl007-db01-hdi_20210621140535028
[app]  [titor]   service name: demo_mdl007-db01-hdi
[app]  [titor]   write files to: /home/user/projects/SHINING_TEAPOT_DEMO_MDL007-DB01-HDI_20210621140520925/
[app] finished.

The project's database module is already bound to the selected CloudFoundry service, no further manual actions should be required.

Support

The project is provided "as-is", there is no guarantee any issues found will be answered or addressed in future releases.

License

Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

EOF