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

alien-start

v1.0.0-beta.5

Published

Bootstrap your project with useful tools.

Downloads

1

Readme

alien-start

Enhance your AlienDOM project with instant integrations.

This command-line tool is automatically included in the alien-dom-starter template repository.

What does it do?

AlienStart makes assumptions about your project structure, leaving you to focus on the fun parts of building your app. It can instantly add a plethora of useful tools to your AlienDOM project, like UnoCSS, Postgres, and more. We're always expanding the list of available integrations, so if you have a suggestion, please open an issue or a pull request!

AlienStart makes it very easy to add your own integrations (referred to as "mixins"). Take a look at our ./src/mixins/ folder to see how stream-lined the process is. In the future, we'll support using standalone mixins from the NPM registry.

The init command

If you're using the alien-dom-starter template, the alien-start init command will run automatically when you first install your project's initial dependencies.

AlienStart init first gives you the opportunity to name your project, replacing all occurrences of the default name provided by the template. Then it will pin your project's dependencies to the latest major version (using caret ^ syntax in the package.json files). This ensures reproducible installs for all developers on your team, while also ensuring you have the latest dependency versions available in your new project.

That's it for the init command!

The use command

This is the proverbial "meat and potatoes" of AlienStart. The use command is how you add integrations to your project.

You can specify the mixins you want to use as arguments to the use command. If you misspell any, the CLI will suggest the closest match.

$ alien-start use unocss postgres

You can call use without any arguments to see a list of available mixins. You can even search the list by typing! Once you find the mixins you want, select them with spacebar and press Enter to continue the integration process.

$ alien-start use

Once a mixin is applied, AlienStart will automatically commit to your project's git repository. This makes it easy to undo the integration if you change your mind.

The run command

The last command allows for mixins to add their own lifecycle scripts without crowding up your package.json file. AlienStart provides a dedicated scripts folder for this purpose.

If you're just getting started, don't worry too much about the specifics of the run command. Just know that it gives mixins the ability to extend your pnpm dev and pnpm build commands with their own scripts. They can even perform one-time setup by providing a "prepare" script.

For example, when you run alien-start run dev, AlienStart will run all scripts in the scripts/dev folder. This is a great place for mixins to add their own commands that run when you do pnpm dev in your terminal (assuming your package.json is set up to use alien-start run). Since dev scripts run in parallel by default, we also support serial execution with the scripts/dev/pre folder.

The run command isn't limited to dev scripts. Any scripts/{name} folder will be run when you do alien-start run {name}. These other script folders always use serial execution, and they support both pre and post execution with the special pre and post subfolders.