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 🙏

© 2024 – Pkg Stats / Ryan Hefner

envone-ui

v0.1.1

Published

Dashboard to review your application's runtime environment variables

Downloads

5

Readme

EnvOne-UI

Dashboard to review your application's runtime environment variables.

Node.js CI Build NPM version codecov npm bundle size Quality Gate Status FOSSA Status

Install

# with npm
npm install envone-ui

# or with Yarn
yarn add envone-ui

Usage

1. Custom usage

const app = express(); // create express server
const envOneUI = require('envone-ui'); // import envone-ui

// Configure envOneApi
app.use(envOneUI.configure({
    include: ['SERVER_URL', 'DB_USERNAME', 'DB_PASSWORD'],
    secrets: ['DB_PASSWORD'],
    isAuthRequired: true,
  }),
);

2. Use with EnvOne or Dotenv

  1. Configure EnvOne properly with your Node.js application to load environment variables from .env.config file, or configure Dotenv to loan environment variables from .env.
// Configure EnvOne
const configuredEnv = require('envone').config();
// Or configure Dotenv
const configuredEnv = require('dotenv').config();
  1. Pass the configured output from envone or dotenv as a parameter to EnvOne-UI initialization method.
const app = express(); // create express server
const envOneUI = require('envone-ui'); // import envone-ui

app.use(envOneUI(configuredEnv))
  1. If you want to add custom configurations to EnvOne-UI, you can use configure method,
const app = express(); // create express serverenvone
const envOneUI = require('envone-ui'); // import envone-ui

// Configure envOneApi
app.use(envOneUI.configure({
    include: ['ENV'],
    secrets: ['DB_PASSWORD'],
    exclude: ['ANALYTICS_URL'],
    isAuthRequired: true,
    configOutput: configuredEnv
  }),
);

Note: If you properly configured .env.config for secrets, you can avoid secrets configuration here. It fetches necessary configurations from the EnvOne config output.

Example Projects

  1. Configured EnvOne-UI with EnvOne
  2. Configured EnvOne-UI with Dotenv

Configurations

| Property | Value Type | Default value | Description | | ------- | ------------- | ------- | ----------- | | include | Array | [ ] | Environment keys to be included in the EnvOne-UI | | exclude | Array | [ ] | Environment keys to be excluded from the EnvOne-UI | | secrets | Array | [ ] | Environment keys to be indicated as secrets - these values will be partially hidden with * character | | isAuthRequired | Boolean | true | Does Authorization require to access environment dashboard or not | | authorizationToken | String | ZLbDGoXOg2sl!K$XOg2sl | Authorization token to access dashboard | | tokenSecret | String | 8nrkCeHHWwBSxYP3 | Secret value to be used to encode the JWT token | | tokenLifeTime | String | 10 | Token life time, you have to authorize again if token is expired (e.g: 1d, 2h, 10) | | configOutput | Object | null | Configured output from EnvOne or Dotenv | | defaultApiPath | String | /env | Default API Path to access authorization dashboard | | dashboardApiPath | String | /env/dashboard | Dashboard path to access environment keys UI | | | |

Screenshots

Contributions

You can add any suggestions/feature requirements/bugs to the Github issues page : https://github.com/apisquare/envone-ui/issues

Add your fixes and development changes as pull requests to this repository.

License

FOSSA Status