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

@zipper-inc/client-js

v0.1.7

Published

An easy way to interact with Zipper Applets from anywhere that supports ESM, CommonJS, or TypeScript.

Downloads

212

Readme

@zipper-inc/client-js

portfolio

An easy way to interact with Zipper Applets from anywhere that supports ESM, CommonJS, or TypeScript.

Installation

To install into your project, use your favorite package manager to add it to your dependencies. (You don't have to do this step if you're importing from URL.)

$ yarn add @zipper-inc/client-js

# or

$ npm i @zipper-inc/client-js

And add it to your TypeScript or JavaScript files.

// ESM
import { initApplet } from '@zipper-inc/client-js';

// CommonJS
var initApplet = require('@zipper-inc/client-js').initApplet;

For Zipper, Deno, etc

Just import from URL.

import { initApplet } from 'https://deno.land/x/zipper-client-js/mod.ts';

Usage

Easily use an Applet's built-in API to interact with it as if it was a part of your project. Inputs work just like any function on Zipper.

Use the Crontab AI Generator in an admin panel.

await initApplet('crontab-ai-generator').run({ text: 'once a day' });

// 0 0 * * *

Fork an example applet like the Feature Flags Example, put it behind auth to protect your team's data, and use it your own repo.

const ff = initApplet('acme-org-feature-flags', {
  token: ACCESS_TOKEN,
});

// get a feature flag value
const liveOnProd = await ff.path('get').run({
  name: 'flag_new_drops',
  context: 'prod',
});

// flip a value programatically
await ff.path('set').run({
  name: 'flag_new_prototype',
  context: 'dev',
  value: true,
});

Anything an applet can do, your app can do.

Documentation

For more about Zipper, check out the official documentation here.

Issues

Zipper is under active development, so issues are expected! It might be helpful to use the debug mode to console log verbosely so you can see whats going on.

Just pass the debug option when initializing your applet to turn this one.

const myApp = initApplet('my-applet', { debug: true });

Let us know what your console output looks like when submitting an issue. PRs are also always welcome, see the next section.

Contributing

Zipper is under active development, so contributions are always welcome.

Since this repo is written in Deno, you must have Deno installed.

curl -fsSL https://deno.land/install.sh | sh

Check out other ways to install Deno here.

Once that's installed check out this repo locally, make some changes, and make sure it passes tests and builds by running the following command.

deno task build

License

MIT

Links

Curious about Zipper? Check us out at https://zipper.dev.

twitter

linkedin