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

@antimatter-audio/antimatter-ui

v2.2.0

Published

React UI component library for Antimatter Audio.

Downloads

69

Readme

Antimatter UI

A small library of UI components for Animatter Audio.

NPM

Github

Getting started

  1. Clone this repo: git clone [email protected]:antimatter-audio/antimatter-ui.git.

  2. Open this project in VS Code, and hit command-j to bring up the terminal.

  3. Run npm install.

Development

This library is intended to be used as a dependency in antimatter-plugin-template.

antimatter-plugin-template is made to bootstrap Juce plugins, but the front end application in the js folder can also be viewed in a web browser. That way, you do not need to worry about running Juce while working on UI components.

To view the most recent published version of antimatter-ui:

  1. Clone the antimatter-plugin-template repo: git clone [email protected]:antimatter-audio/antimatter-plugin-template.git

  2. Go to the antimatter-plugin-template folder, and open the js folder in VS Code. Hit command-j to bring up the terminal.

  3. Run npm install.

  4. Run npm run start to start your development server.

  5. Go go http://localhost:3000 in your browser.

The default antimatter-plugin-template layout should now be viewable. This layout is a demo of all of the antimatter-ui components, and includes the latest published version of this library.

NOTE: You will not see any local changes you have made to this library yet. To preview your changes locally before publishing, you will need to npm link this project with the antimatter-plugin-template front end application.

  1. In this project, run: npm run link-template.

  2. In the js folder in antimatter-plugin-template, run: npm run link-ui.

  3. If your local development server is running in antimatter-plugin-template, hit option-c to shut it down.

  4. Run npm run start in antimatter-plugin-template to start (or restart) your development server.

  5. Run npm run start in this project to build your local changes.

You should now see your local changes to these components at http://localhost:3000.

Adding new components

If you add a new component to this library, make sure to also add the component to the demo in antimatter-plugin-template.

If your new component controls an AudioProcessorValueTreeState paramater in Juce, you will need to handle getting and setting that state in your React component, and you will also need to set up a parameter for that state in the demo Juce app in antimatter-plugin-template.

See components/Buttons/Button.tsx, components/Input/Dropdown.tsx, and components/Input/Slider.tsx for examples of how to get and set Juce's ToggleState, ComboBoxState, and SliderState.

See the README file in the /juce directory in the antimatter-plugin-template repo for more information on setting up an AudioProcessorValueTreeState parameter in the demo app.

Publish

After making updates in this repo, you will want to publish your changes to npm. This will allow all projects that use the Antimatter UI library to upgrade to the latest version.

First, commit all changes in this repo to git:

git add -A

git commit -m "your update message here"

git push

If you are working on your main branch, that's all you need to do.

If you are working on a feature branch, go to github, open a new pull request, and then merge the pull request.

Then, you can switch back to your main branch: git checkout main

And update your local main branch with the changes from github: git pull

When you have gotten everything merged to git, you are ready to publish this project to the npm registry!

First, run:

npm run build

Then, depending on whether your update is a major change, minor change, or a patch, run one of the following: npm version major || npm version minor || npm version patch

Finally, run: npm publish