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

singlepage-js

v0.5.1

Published

Singlepage.js is a pure Javascript portal platform for building modular Web applications.

Downloads

14

Readme

singlepage-js

Singlepage.js is a pure Javascript portal platform for building modular Web applications.

Visit https://www.singlepagejs.com for full documentation.

Introduction

Singlepage.js is a pure Javascript portal platform for building modular Web applications. The platform is composed of three components:

  • CLI for bootstrapping, developing, and deploying applications
  • UI composition framework for constructing Web applications from Vue.js components
  • Web services framework for developing backend services

Singlepage CLI

  • Create minimal or full app boilerplate
  • Development support via "singlepage serve" that serves from memory and uses livereload for hot reloads
  • Build app distribution for deployment

Application Composition Framework

  • Interactive creation of Web application via drag-n-drop of Vue.js components
  • Component customization via auto-generated property editor
  • Support for custom component commands and property editor
  • Look & feel customization via CSS files and component window style overrides
  • Built-in page grid layouts with the ability to define your own
  • Internationalization via global message file as well as embedded component-specific messages

Web Services Framework

  • Service communication via HTTP/JSON
  • Support for developing and adding application-specific services
  • Role based access control
  • Default implmentation of core services

Quick Start

Installation

Install singlepage-js globally.

npm install -g singlepage-js

Application Setup

Global installation of singlepage-js provides the singlepage command that can be used to generate application boilerplate and serve your application.

# Create app boilerplate
singlepage create myapp

# Change to myapp directory and start serving boilerplate application
cd myapp
singlepage serve

View Application

Open a Web browser and access your application on http://localhost:8080.

Edit Application

Click on the Login button on the top right corner. Use admin/admin as your username/password. The Login button will be replaced by a button that shows current user information. Click on the button and select Turn on Edit Mode. This will show editing commands in the same dropdown. It also shows a gear icon and a drag icon on each portal window (component). The following is a quick summary of supported edit operations:

  • Add Component: Each column in the grid shows a select box with Add button next to it. Select the component you want to add from the select dropdown and click Add to add that component to the column
  • Edit Component Properties: Click on the gear icon on a portal window and select "Edit Settings" to set component properties
  • Delete Component: Select "Delete Component" from the portal window menu
  • Rearrange Components: You can drag and drop components by clicking on the drag icon on the portal window
  • Add Page: Select "New Page" from the top right dropdown and enter requested page metadata
  • Delete Page: Select "Delete Current Page" from the top level dropdown
  • Change Page Order: Drag and drop the top menubar page links to the desired position
  • Add Folder: Open Page Manager by selecting Page Manager option from the top portal menu and click on "New Folder" button

Deploy Application

Use build command to create your distribution. The distribution is created in the dist folder under your application directory. You can use spstart.js script in the bin directory to run the server.

cd myapp
singlepage build
node ./dist/bin/spstart.js

You can simply copy the dist directory to your production environment to deploy it. Additional steps such as installing node and running npm install may be needed depending on your hosting provider and your method of deployment.