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

socialstack

v4.2.10

Published

Tools for easily managing SocialStack projects.

Downloads

1,440

Readme

SocialStack Tools

This is a command line interface for creating, managing and compiling SocialStack projects. For more help and guidance, check the wiki at https://wiki.socialstack.dev/

Installation

npm install -g socialstack

Configuration

Only do this on a development machine. It's not needed anywhere else.

	-- Create the user account:
	CREATE USER 'sstools'@'localhost' IDENTIFIED BY 'ssto0ls.dev'; -- Invent a password here!
	-- Grant that user full access to the db:
	GRANT ALL PRIVILEGES ON *.* TO 'sstools'@'localhost' WITH GRANT OPTION;
	FLUSH PRIVILEGES;
socialstack configure -u "sstools" -p "ssto0ls.dev"

A few actions that the socialstack tools perform require MySQL admin rights on a development machine. This is so it can, for example, automatically create new databases for you. Whilst optional, it's highly recommended to set this access up. The account details are stored in a file which can also be located by running socialstack configuration.

Dependencies

Currently socialstack projects require the following:

  • Node.js 8+
  • .NET Core 6.0 SDK. If you're not sure if you already have this installed, you can run dotnet --list-sdks to find out.
  • If you're using Visual Studio, 2022 or newer is required for .NET Core 6.0.
  • MySQL. Version 8 is recommended.
  • Git

Creating a project

socialstack create

Run this to create a new blank SocialStack project in your working directory. Optionally provide it a domain name like this:

socialstack create example.com

This will also create a database for you too, if you've setup your database config (see above).

Installing modules

socialstack i Api/HelloWorld

This will install the named module(s) from any repositories you have configured. You can list multiple here to install them all. You can also use package names:

socialstack i Tags

Uninstalling modules

socialstack uninstall Api/HelloWorld

Remove modules (or packages) with the uninstall command. Like the install command, you can list multiple modules.

Builds

Commands which build your project.

Build everything

If you'd like to build the UI, the API and optionally native apps with Cordova, use the build command:

socialstack build -prod

-prod is optional, but will minify and pre-gzip the UI builds for you. It's recommended for pipelines to use this build command.

Api builds

Whilst you can just use your preferred mechanism for building a C# project, a convenience API build command is included. It defaults to outputting into Api/build.

socialstack buildapi

Note that the API is separate from the UI, so there is no order requirement - you can build the API and UI in whatever order you want, or build everything as seen above.

UI builds

socialstack buildui

This builds UI/Source and Admin/Source, then quits. If you'd like to make a production (minified and pre-gzipped) build, add the -prod flag:

socialstack buildui -prod

Contributing

To make changes to socialstack tools itself, it's a good idea to link the repository such that you can easily iterate on changes you make.

  • Clone this repository
  • Run npm install in the repository. This'll download the modules it depends on.
  • Run npm link in the repository. This will make the code in the repository run directly when you try socialstack commands.

If everything is good, it's the usual npm version patch and npm publish from an authed npm account.