open-index/open-npm huggingface dataset:
npm package: @seline-analytics/node
Description: This is a NodeJS library of [Seline analytics](https://seline.so).
Latest version: 1.0.0

# Seline Web

This is a NodeJS library of [Seline analytics](https://seline.so).

```
  npm install @seline-analytics/node
```

Then create a tracking instance using your project token.

```
import { Seline } from 'seline-node';

const seline = Seline({
  token: 'PROJECT_TOKEN', // Token can be found at Settings - General.
});
```

## Methods

#### track

Track custom events using **seline.track()**. You can pass event name and custom properties.

```
seline.track({
  userId: "unique-user-id", // userId is a required field
  name: "order: created",
  data: {
    delivery: 'DHL',
    total: 99.99,
  },
});
```

#### setUser

Populates visitors with custom data and creates a Profile. Great for tracking your authorized users.
```
  seline.setUser({
  userId: "unique-user-id", // userId is a required field
  fields: {
    email: "john@wayne.corp",
    plan: "enterprise",
    credits: 140,
    projects: ["Project A", "Project B"],
  },
});
```
npm package: @seliseblocks/cli
Description: `@seliseblocks/cli` is a powerful command-line tool for quickly setting up projects and generating resources. With just a few commands, you can create, build, and manage your project efficiently.
Author: Selise Blocks
Latest version: 0.0.33

# @seliseblocks/cli

`@seliseblocks/cli` is a powerful command-line tool for quickly setting up projects and generating resources. With just a few commands, you can create, build, and manage your project efficiently.

## Installation

To use `@seliseblocks/cli`, install it globally via npm:

```bash
npm install -g @seliseblocks/cli
```
After installation, use the blocks or  command in your terminal.

## Usage
Once installed, you can use seliseblocks commands from the command line.

### 1. Create a New Project
The new command initializes a project with a starter template.

#### Syntax
```bash
blocks new <platform name> <project name>
```
*platfomr name only **web** or **mobile***

#### Example
To create a new web project named my-app
```bash
blocks new web my-app
```
or

To create a new mobile project named my-app
```bash
blocks new mobile my-app
```

Run the application
```bash
cd my-app
```

#### Use one line command for web

```sh
new (n) web <project name> [--blocks-key] [--app-domain] 
```
Examples:

  new web myproject --blocks-key abc123 --app-domain example.com 
  new web myproject -k abc123 -d example.com 


**Web**

Then run the project using your application domain (recommended), add an entry for your app domain to your hosts file. Then, use:

```bash
npm run start:host
```
otherwise

```bash
npm start
```

**Mobile**

Then run the project using emulator/simulator respectively for android/iso or using real device. Then, use:

for **stage** environment

```bash
flutter run
```

for **production** environment

```bash
flutter run --dart-define="ENV=prod"
```

*if you face any issue while running app, make sure the environment setup is correct*

### 2. Display Version

Displays the current version of the CLI tool.

```bash
blocks version
```






### Available Commands

| Command         | Alias     | Description                                                     |
|------------------|-------|-----------------------------------------------------------------|
| `new web`           | `n web`   | Initializes a new web project using the provided starter template.  |
| `new mobile`           | `n mobile`   | Initializes a new mobile project using the provided starter template.  |
| `version`       | `v`   | Displays the current version of the CLI tool.                  |