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-uniovi-bokeh-template

v1.13.0

Published

Bokeh basic authentication template generator

Readme

Description

Bokeh basic authentication template generator

Install template

First install Yeoman template manager. It is assumed that node is already installed node.js in your computer:

$ npm install -g yo

Install the last generator-uniovi-bokeh-template npm package from npm:

$ npm install -g generator-uniovi-bokeh-template

Update template

If you have already has installed a bokeh generator version and you want update it, execute again this command:

npm install -g generator-uniovi-bokeh-template

Generate your project from template

Then you can generate your new project from template. Follow the promt question to configure your project:

$ yo uniovi-bokeh-template

Post project generation

Create a virtual environment and active it for your project to develop your application

$ python3 -m venv .venv
$ source .venv/bin/activate

Install default dependencies

$ pip install -r requirements.txt

If exist any problem with the python dependencies in your python environment install this tool:

pip install pur

and update your requirements file with the last dependencies for your environment. Then try again to install the dependencies:

pur -r requirements.txt

Execute default template just created

$ python bootstrap.py

Develop your own application

By default the generator create a basic Bokeh application to be serve by Bokeh Server. This application is implemented in the main.py python module. Now you must substitute this module with your own application

An example

Bokeh template prompt bokeh-template-prompt

Bokeh Login bokeh-login

Bokeh sample application bokeh-application

Template tree folder structure

├───auth                     -> Bokeh basic authentication module
│    ├──auth.py              
│    └──login.html           
├───static                   -> Bokeh login styles and image resources
│    ├───css
│    │   └───styles.css      
│    └───images              
│        ├──login_background.png 
│        └──login_gsdpi.png  
├───.gitignore               -> git ignore default application configuration
├───bootstrap.py             -> application bootstrap
├───Dockerfile               -> dockerfile to build appplication docker image
├───main.py                  -> main python application module
├───README                   -> application README file
├───requirements.txt         -> application python dependencies

Build, run and publish your docker image

After finalize your proyect you can build your docker image, run and publish it. Follow these steps:

Build your image:

$ docker build -t my-app:1.0.0 .

Start a container from your image and test:

$ docker run --rm --name my-app -p 5000:5006 my-app:1.0.0

If you want publish your image, tag your docker image to be uploaded to your repository:

$ docker tag my-app:1.0.0 your-account/my-app:1.0.0

Finally push the docker image to your repository:

$ docker push your-account/my-app:1.0.0

Open your application from your browser:

http://localhost:9000/my-app

Start bokeh server in production(AVISPE Server)

Configure HAProxy and add a proxy rule to access to boker application like this:

frontend k8s-frontend
...

    # Frotend epigenomics application redirection
    use_backend my-application if { path /my-app } || { path_beg /my-app/ }
    
backend my-application    
    # redirect to bokeh applications rules
    ...
    
    server my-app localhost:5000

Start Bokeh Server executing this command

$ docker run -d --name my-app -p 5000:5006 -e BOKEH_ALLOW_WS_ORIGIN=avispe.edv.uniovi.es -e BOKEH_RESOURCES=cdn my-app:1.0.0