open-index/open-npm huggingface dataset:
npm package: @inngest/asyncapi
Description: Generate AsyncAPI specs from your Inngest account
Latest version: 0.1.0

# Inngest AsyncAPI

Automatically generate an AsyncAPI spec file from your [Inngest Cloud](https://www.inngest.com) account.

After being logged in with the [Inngest CLI](https://www.inngest.com/docs/cli/installation) you can quickly generate an AsyncAPI schema from your account using the following command:

```
npx @inngest/asyncapi
```

You should now have a properly formatted AsyncAPI spec in a new `spec.yaml` file!

You can now explore your spec using the [AsyncAPI Studio](https://studio.asyncapi.com/). You can do this right on the web studio or with the Async API CLI:

```
npm install -g @asyncapi/cli
asyncapi start studio -f ./spec.yaml
```

That's it! You should now be viewing your automatically generated API spec from your Inngest Cloud events.

## Why

**Why AsyncAPI?** AsyncAPI is awesome because it is a standard specification which can be used to document event-driven systems. It can also be used with tools that can generate code or system architecture diagrams.

**Why this works with Inngest?** Inngest Cloud parses and saves the schema of every single event that is received in multiple formats: JSONSchema, Cue, and as a TypeScript type.

Inngest Cloud can be combined with AsyncAPI to create a self-documenting event-driven system architecture.
npm package: @inngest/browser
Description: Browser SDK for Inngest
Author: Inngest, Inc.
Latest version: 0.3.1

## Inngest Browser SDK

This is the Inngest SDK to send events from the browser. If you're looking for the Inngest JavaScript/TypeScript Node.js SDK check out that repo here: https://github.com/inngest/inngest-js

## Usage

Add the script via [unpkg](https://unpkg.com/):

```html
<script src="https://unpkg.com/@inngest/browser/inngest.min.js" />
```

Initialize your client with an Inngest event key and send your event:

```js
inngest.init("<replace-with-your-event-key>");
inngest.send({
  name: "your.event.name",
  data: {
    useful: "information",
  },
  user: {
    // optionally append user data
    email: "test@example.com",
  },
});
```

That's it - you're now sending events from the browser.

> ⚠️ - **NOTE** - You should add an allow list for your events in the Inngest Cloud dashboard so

## Development

```bash
yarn build
yarn np # to publish
```
npm package: @inngest/deployx
Description: Experimental deployment patterns from Inngest
Latest version: 0.1.1

# @inngest/deployx

⚠️ Experimental deploys. ⚠️

Deploy an [SDK function](https://github.com/inngest/inngest-js) using the following command. This requires the [`inngest-cli`](https://github.com/inngest/inngest#quick-start) to be installed and you need to be logged in.

```
npm install -g inngest-cli
inngest login
# Deploy to the Test workspace
npx @inngest/deployx ./inngest/my-function.ts
# Deploy to the Production workspace
npx @inngest/deployx --prod ./inngest/my-function.ts
```

## Development

To test this locally, from this package run `npm link` then you'll be able to use the `bin` globally on your machine:

```
inngest_deployx ./inngest/myFunction.ts
```