open-index/open-npm huggingface dataset:
npm package: @melodicalbuild/menudocs-app-api
Description: The MenuDocs Applications Interface
Author: MelodicAlbuild
Latest version: 1.4.0

# The MenuDocs Application API

The MenuDocs Applications API is available to check the status of the MenuDocs Applications.
v1.3.0

## How to use it -

It's just as simple as importing the package and then our functions.

### Websites -
Import the Package and use our basic response functions listed below.

Functions -
- webProfStatus
- webStaffStatus
- webContentStatus
- webBanStatus
- webApplicationStatus
- webUpdates

All but `webApplicationStatus` and `webUpdates` require a User ID to be passed. To do this use the code below.

```js
const userInfo = /* User ID Here */;
webProfStatus(userInfo)
```

Then handle your response with a .then() like this.

```js
const userInfo = /* User ID Here */;
webProfStatus(userInfo).then(/* Handle Response Here */)
```

You can replace webProfStatus with any of the Functions listed above except `webApplicationStatus` and `webUpdates`.

### Discord.js Bots -
Import the Package and use our Bot Functions listed below.

Functions -
- botProfStatus
- botStaffStatus
- botContentStatus
- botBanStatus
- botApplicationStatus
- botUpdates

We build the Embeds for you so all you need to do is pass a User ID and then send the function response.
`botApplicationStatus` and `botUpdates` do not need a User ID to be applied.

```js
const userInfo = message.author.id;
botProfStatus(userInfo).then(response => message.channel.send(response));
```

And it will send the embed to the channel that the command was sent in.

And that's it, Enjoy the Package

-Vixel
npm package: @melodicdev/cli
Description: Scaffolding and code generation for Melodic apps and monorepos.
Latest version: 1.3.0

# Melodic CLI

A lightweight scaffolding and code generation tool for Melodic apps and monorepos.

## Install

```sh
npm install -g @melodicdev/cli
melodic --help
```

Local dev build:

```sh
npm --workspace @melodicdev/cli run build
node packages/cli/dist/index.js --help
```

## Quick Start

```sh
melodic init my-app
cd my-app
npm install
npm run dev
```

## Commands

### `melodic init <directory> [--monorepo] [--app-name <name>]`

Create a new Melodic project.

- Single app:
  ```sh
  melodic init my-app
  ```

- Monorepo with `apps/` and `libs/`:
  ```sh
  melodic init my-repo --monorepo --app-name web
  ```
  Uses `tsconfig.build.json` for `tsc -b` builds and keeps references updated when you run `melodic add app/lib`.

  Apps generated by the CLI set `build.target` to `es2022` in Vite so top-level await works in production builds.

`melodic create` is an alias of `melodic init`.

### `melodic add app <name> [--dir apps]`

Add a new app folder (useful inside a monorepo).

```sh
melodic add app admin
melodic add app marketing --dir apps
```

### `melodic add lib <name> [--dir packages]`

Add a new shared library folder.

```sh
melodic add lib shared
melodic add lib ui --dir packages
```

### `melodic add testing [--path .]`

Add a basic Vitest + happy-dom test setup to an existing project.

```sh
melodic add testing --path apps/web
```

### `melodic generate component <name> [--path src/components]`

Create a component with `.component.ts`, `.template.ts`, and `.styles.ts`.

```sh
melodic generate component user-card
melodic generate component user-card --path apps/web/src/components
```

### `melodic generate directive <name> [--path src/directives]`

Create a template directive.

```sh
melodic generate directive auto-focus
```

### `melodic generate attribute-directive <name> [--path src/directives]`

Create and register an attribute directive.

```sh
melodic generate attribute-directive tooltip
```

### `melodic generate service <name> [--path src/services]`

Create an injectable service.

```sh
melodic generate service auth
```

### `melodic generate interceptor <name> [--path src/http/interceptors]`

Create HTTP request/response interceptors.

```sh
melodic generate interceptor auth
```

### `melodic generate class <name> [--path src]`

Create a plain TypeScript class.

```sh
melodic generate class user
melodic generate class user --path src/models
```

## Templates

The CLI uses built-in templates and replaces placeholders automatically:

- `app-basic`: single app scaffold
- `monorepo-basic`: repo with `apps/` + `packages/` and a default app
- `lib-basic`: minimal shared library scaffold

Template notes:
- App templates include `vite-plugin-melodic-styles.ts`, a `src/styles/global.css` sample, and a `<link melodic-styles>` entry in `index.html`.

Placeholders:

- `__APP_NAME__`
- `__REPO_NAME__`
- `__LIB_NAME__`

## Behavior Notes

- The CLI writes files only if the target directory is empty.
- Existing files are never overwritten.
- Use `--path` and `--dir` to target specific subfolders.
npm package: @melody-auth/angular
Description: Melody Auth Angular SDK facilitates seamless interaction between Angular applications and the melody auth server. It silently handles authentication state management, redirect flows, token exchange, and authentication validation for you.
Latest version: 1.0.5

# Angular SDK

Melody Auth Angular SDK facilitates seamless interaction between Angular applications and the melody auth server. It silently handles authentication state management, redirect flows, token exchange, and authentication validation for you.

## Installation

```
npm install @melody-auth/angular --save
```

## Detailed Documentation
For more detailed information, please see [Detailed Documentation](https://auth.valuemelody.com/angular-sdk.html).
npm package: @melody-auth/nextjs
Description: Melody Auth SDK for Next.js applications
Latest version: 0.1.0

# @melody-auth/nextjs

Next.js SDK for Melody Auth with full SSR support, middleware protection, and cookie-based storage.

## Features

- **Cookie-based storage** - Works with SSR/SSG out of the box
- **Edge middleware** - JWT verification and route protection
- **Server components** - `getServerSession()` for RSC
- **React hooks** - `useNextAuth()` for client components
- **TypeScript** - Full type safety included

## Installation

```bash
npm install @melody-auth/nextjs
```

## Quick Start

```tsx
// 1. Wrap your app
import { NextAuthProvider } from '@melody-auth/nextjs';

<NextAuthProvider
  clientId="your-client-id"
  serverUrl="https://your-auth-server.com"
  redirectUri="http://localhost:3000/callback"
>
  {children}
</NextAuthProvider>

// 2. Add middleware protection
// middleware.ts
import { createMelodyAuthMiddleware } from '@melody-auth/nextjs';

export default createMelodyAuthMiddleware({
  jwksUri: 'https://your-auth-server.com/.well-known/jwks.json',
  publicPaths: ['/login']
});

// 3. Use in components
import { useNextAuth } from '@melody-auth/nextjs';

const { isAuthenticated, loginRedirect } = useNextAuth();
```

## Documentation

📖 **[Complete documentation and examples →](../../docs/nextjs-sdk.md)**

## Key APIs

- `<NextAuthProvider>` - Wrap your app for auth context
- `useNextAuth()` - React hook for client components
- `getServerSession()` - Get session in server components
- `createMelodyAuthMiddleware()` - Protect routes with middleware
- `requireAuth()` - Protect API routes


## License

MIT
npm package: @melody-auth/react
Description: Melody Auth React SDK facilitates seamless interaction between React applications and the melody auth server. It silently handles authentication state management, redirect flows, token exchange, and authentication validation for you.
Latest version: 1.0.11

# React SDK

Melody Auth React SDK facilitates seamless interaction between React applications and the melody auth server. It silently handles authentication state management, redirect flows, token exchange, and authentication validation for you.

## Installation

```
npm install @melody-auth/react --save
```

## Detailed Documentation
For more detailed information, please see [Detailed Documentation](https://auth.valuemelody.com/react-sdk.html).
npm package: @melody-auth/vue
Description: Melody Auth Vue SDK facilitates seamless interaction between Vue applications and the melody auth server. It silently handles authentication state management, redirect flows, token exchange, and authentication validation for you.
Latest version: 1.0.5

# Vue SDK

Melody Auth Vue SDK facilitates seamless interaction between Vue applications and the melody auth server. It silently handles authentication state management, redirect flows, token exchange, and authentication validation for you.

## Installation

```
npm install @melody-auth/vue --save
```

## Detailed Documentation
For more detailed information, please see [Detailed Documentation](https://auth.valuemelody.com/vue-sdk.html).
npm package: @melody-core/cli-spy
Description: 🕵️‍♀️ 检测目标服务器端口的状态
Author: wxydesign
Latest version: 1.0.2



# melody-template-store

集成了所有的模板，供给给@melody-core/leo脚手架使用。


## @melody-core/cli-spy

🕵️‍♀️ 侦探007, 检测指定服务器的目标端口状态

## install && use
```shell
    # 如果你还没有安装@melody-core/melody-cli ,请先安装它。
    yarn global add @melody-core/melody-cli
    # 用melody来安装和管理spy
    melody i @melody-core/cli-spy
    # 检测本地127.0.0.1的3001端口状态
    melody spy port 3001  
    # 检测 220.181.38.251 的 8080端口状态
    melody spy port 8080 --ip 220.181.38.251
```
npm package: @melody-core/leo
Description: 初始化项目的脚手架命令工具
Latest version: 1.2.4


# @melody-core/leo

狮子座是旋律之主们基于commander开发的脚手架工具，它的能力来源于它集成的模板。它既可以是独立的命令行工具，也可以作为@melody-core/melody-cli的一个命令行套件。


## 安装 及 使用

```shell
    # 你可以单独安装并使用它
    yarn global add @melody-core/leo
    # use
    leo

    # or 将其作为melody-cli的一个套件, 我们更期望如此。
    melody install @melody-core/leo
    # use
    melody leo

    # 终端log
    Usage: leo [options] [command]

    Options:
    -V, --version   output the version number
    -v, --version   查看当前版本
    -h, --help      display help for command

    Commands:
    init                            初始化一个项目模板
    list                            查看所有的项目模板
    publish <templateName> [path]   发布一个模板到模板仓库
    
```

## 模板集成！
> 现在，如果你想集成一个模板，只需要运行一个命令即可一键发布

```shell
    # 例如: 你想把当前路径所在的一个项目(比如叫react-test-app)，发布成一个叫react-template的模板
    # /react-test-app 项目的根目录下
     # 运行publish命令，后面跟着的是你对模板的命名
    leo publish react-template 
    
    # 如果你不在模板项目目录下，你可以通过path参数——相对路径来指定将某个项目发布成模板。
    # path参数默认为 ./ 即当前路径。
    leo publish react-template ./react-test-app
```