open-index/open-npm huggingface dataset:
npm package: @sigbit/nvr
Description: Use Nitro on Vercel with mixed serverless & edge functions
Author: Jacob Andersson
Latest version: 0.3.0

# @sigbit/nvr
> Use [Nitro](https://github.com/unjs/nitro) on [Vercel](https://vercel.com) with mixed serverless & edge functions

## Motivation
[unjs/nitro#1120](https://github.com/unjs/nitro/issues/1120)

## Usage
This script assumes your primary target is `vercel-edge`.
Add `npx @sigbit/nvr <function> [function...]` after your normal build script to make the specified functions run in a serverless (Node) environment.
```json
{
  "scripts": {
    "build": "nuxt build && npx @sigbit/nvr /api/my-function"
  }
}
```

> [!NOTE]
This script will trigger another non-edge rebuild and use these files in the final composition. Therefore, additional time is added to the deployment.

## License
MIT
npm package: @sigbt/tskit
Description: My personal TypeScript init kit.
Author: Peyton Lu
Latest version: 3.0.0

# @sigbt/tskit

**@sigbt/tskit** is [@sigismundbt](https://github.com/SigismundBT)’s personal **TypeScript scaffolding tool**,  
used to quickly bootstrap new TypeScript projects with consistent structure and configuration.  
It uses **pnpm** exclusively and runs `pnpm init` automatically.

---

## 🚀 Usage

```bash
npx @sigbt/tskit
```

`tskit` will automatically initialize a new project,  
then guide you through an interactive setup process.

---

## 🧩 Supported Project Types

| Type         | Description                                                                   |
| ------------ | ----------------------------------------------------------------------------- |
| **Library**  | Pure TypeScript package ready for npm publishing.                             |
| **CLI Tool** | Command-line scaffold with Yargs, Clack, or Hybrid interface.                 |
| **Backend**  | Node backend scaffold with optional database (`Mongoose`, `Prisma`, or none). |

---

## ⚙️ What It Does

### Common setup

- Creates directories: `src/`, `dist/`
- Adds configs:
  - `.prettierrc`
  - `tsconfig.json`
  - `vitest.config.ts`
  - `.gitignore`
  - `.npmignore`
  - `mostir.config.mjs`
- Injects default `package.json` scripts
- Installs dev dependencies:
  - `typescript`
  - `vitest`
  - `prettier`
  - `bumpp`
  - `mostir`

---

### CLI projects

- Generates `src/cli/bin.ts`
- Adds:
  - `#!/usr/bin/env node` shebang
  - executable permission (`chmod 755`)
  - proper `bin` entry in `package.json`
- Choose CLI type: **Yargs**, **Clack**, or **Hybrid**

---

### Backend projects

Creates:

```
src/
  controllers/
  middleware/
  routes/
  lib/
```

- Optional integrations: **Mongoose** or **Prisma**
- Adds `error.middleware.ts`
- Prepares `.env` and base scripts

---

### Library projects

- Minimal structure for npm publishing
- Auto-adds `exports`, `types`, and `main` fields
- Supports hybrid (CLI + library) layout

---

## 🧰 Scripts

| Command      | Description             |
| ------------ | ----------------------- |
| `pnpm dev`   | Run directly with `tsx` |
| `pnpm build` | Build via `mostir`      |
| `pnpm start` | Run built output        |
| `pnpm test`  | Run tests with `vitest` |

---

## 📦 Requirements

- Node.js ≥ 18
- pnpm installed globally

---

## 🧾 Note

This package is primarily for personal use.  
Public use is allowed, but updates are made only when improvements are needed.