Gathering detailed insights and metrics for @sassoftware/create-viya-api
Gathering detailed insights and metrics for @sassoftware/create-viya-api
Gathering detailed insights and metrics for @sassoftware/create-viya-api
Gathering detailed insights and metrics for @sassoftware/create-viya-api
restaf-server is a server designed specifically to work with SAS Viya
npm install @sassoftware/create-viya-api
Typescript
Module System
Node Version
NPM Version
56.6
Supply Chain
61.1
Quality
82.1
Maintenance
100
Vulnerability
98.2
License
SAS (70.89%)
HTML (16.46%)
JavaScript (11.54%)
Dockerfile (0.72%)
Shell (0.38%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
580 Commits
2 Forks
6 Watchers
10 Branches
7 Contributors
Updated on Oct 30, 2024
Latest Version
1.2.30
Package Id
@sassoftware/create-viya-api@1.2.30
Unpacked Size
3.21 kB
Size
1.46 kB
File Count
3
NPM Version
7.8.0
Node Version
14.16.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Application servers for use with SAS Viya
This package has two servers:
viya-appserverjs - Use this for developing an app server for web applications(see packages/appjs)
viya-apiserverjs - Use this to develop rest api servers(see packages/apijs)
Specify it as a dependency in your package.json just as you do with other dependencies
Use npx command to start the server
1npx @sassoftware/viyaappserverjs
Basic configuration
Sample env file
When running on a non-docker environment, you can use a .env
1VIYA_SERVER=<your viya server> 2APPHOST=localhost < can also be dns name of your server. ex: viyaiscool.unx.sas.com> 3APPPORT=5000 <any port of your choice> 4APPNAME=viyaapp 5 6CLIENTID=viyaapp 7CLIENTSECRET=secret
Sample Dockerfile
1FROM node:12.16.1-alpine 2LABEL maintainer="your email" 3WORKDIR /usr/src/app 4COPY . . 5RUN npm install 6# RUN npm run build (if you have to build something) 7EXPOSE 8080 8ENV APPHOST=0.0.0.0 9 10AUTHFLOW=code 11 12# The following are defaults. Override them as needed 13# APPLOC - where the file specified in APPENTRY is 14# APPENTRY - the main entry of the application 15ENV APPLOC=./public 16ENV APPENTRY=index.html 17# if your app takes advantage of appenv.js to pass configuration to the web application 18# ENV APPENV=appenv.js 19 20# See notes below on running with SSL enabled 21ENV TLS_CREATE="C:US,ST:NC,L:Cary,O:yourcompany,OU:STO,CN:localhost" 22ENV SAMESITE=None,secure 23 24# It is better to set this before invoking the server 25ENV NODE_TLS_REJECT_UNAUTHORIZED=0 26 27# set this to YES if you want access to the authentication token in the app 28ENV USETOKEN=NO 29 30CMD ["npx", "@sassoftware/viya-appserverjs"] 31
Running with SSL enabled -- Recommended
This is the recommended setting. This will also make browsers like Chrome run with the SAMESITE settings set to Default - your users will thank you.
Make sure you specify the VIYA_SERVER with a protocol of https.
TLS certificates
Option 1: Let server create a temporary unsigned certificate
1ENV TLS_CREATE=C:US,ST:NC,L:Cary,O:YourCompany,OU:yourgroup,CN:localhost
Option 2: Provide your own key and certificate key
1ENV TLS_KEY=../certs/self/key.pem 2ENV TLS_CERT=../certs/self/certificate.pem
1ENV TLS_PFX=../certs/sascert/sascert2.pfx
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
4 existing vulnerabilities detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More