# @mathrunet/masamune

> Manages packages for the server portion (NodeJS) of the Masamune framework.

Latest version **3.11.0** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mathrunet/masamune
pnpm add @mathrunet/masamune
yarn add @mathrunet/masamune
bun add @mathrunet/masamune
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.11.0 |
| Published | 2026-09-24 |
| First published | 2023-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | 22 |
| Dependencies | 2 |
| Unpacked size | 217.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Author | mathru |
| Maintainers | mathru |
| Keywords | masamune, katana, flutter, firebase, cloudflare |

## Links

- npm: https://www.npmjs.com/package/@mathrunet/masamune
- Repository: https://github.com/mathrunet/node_masamune
- Homepage: https://github.com/mathrunet/node_masamune#readme
- Issues: https://github.com/mathrunet/node_masamune/issues
- npm.io page: https://npm.io/package/@mathrunet/masamune

## Dependencies (2)

- [uuid](https://npm.io/package/uuid.md) ^10.0.0
- [typescript](https://npm.io/package/typescript.md) ^5.9.2

## Recent versions

- 3.11.0 (latest) — 2026-09-24
- 3.10.4 — 2026-06-29
- 3.10.3 — 2026-06-29
- 3.10.2 — 2026-06-29
- 3.10.1 — 2026-06-29
- 3.9.11 — 2026-02-19
- 3.9.10 — 2026-02-19
- 3.9.9 — 2026-02-19
- 3.9.8 — 2026-02-19
- 3.9.7 — 2026-02-19
- 3.9.6 — 2026-02-19
- 3.9.5 — 2025-12-09
- 3.9.4 — 2025-12-08
- 3.9.3 — 2025-12-08
- 3.9.0 — 2025-12-08
- … 182 more at https://npm.io/package/@mathrunet/masamune/versions

## README

<p align="center">
  <a href="https://mathru.net">
    <img width="240px" src="https://raw.githubusercontent.com/mathrunet/node_masamune/main/.github/images/icon.png" alt="Masamune logo" style="border-radius: 32px"><br/>
  </a>
  <h1 align="center">Masamune Framework</h1>
</p>

<p align="center">
  <a href="https://github.com/mathrunet">
    <img src="https://img.shields.io/static/v1?label=GitHub&message=Follow&logo=GitHub&color=333333&link=https://github.com/mathrunet" alt="Follow on GitHub" />
  </a>
  <a href="https://x.com/mathru">
    <img src="https://img.shields.io/static/v1?label=@mathru&message=Follow&logo=X&color=0F1419&link=https://x.com/mathru" alt="Follow on X" />
  </a>
  <a href="https://www.youtube.com/c/mathrunetchannel">
    <img src="https://img.shields.io/static/v1?label=YouTube&message=Follow&logo=YouTube&color=FF0000&link=https://www.youtube.com/c/mathrunetchannel" alt="Follow on YouTube" />
  </a>
  <a href="https://github.com/invertase/melos">
    <img src="https://img.shields.io/static/v1?label=maintained%20with&message=melos&color=FF1493&link=https://github.com/invertase/melos" alt="Maintained with Melos" />
  </a>
</p>

<p align="center">
  <a href="https://github.com/sponsors/mathrunet"><img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=ff69b4&link=https://github.com/sponsors/mathrunet" alt="GitHub Sponsor" /></a>
</p>

---

[[GitHub]](https://github.com/mathrunet) | [[YouTube]](https://www.youtube.com/c/mathrunetchannel) | [[Packages]](https://pub.dev/publishers/mathru.net/packages) | [[X]](https://x.com/mathru) | [[LinkedIn]](https://www.linkedin.com/in/mathrunet/) | [[mathru.net]](https://mathru.net)

---

Just load the package in index.ts and pass the predefined data to the methods to implement the server side.

Also, [katana_functions_firebase](https://pub.dev/packages/katana_functions_firebase) or [masamune_functions_cloudflare](https://pub.dev/packages/masamune_functions_cloudflare) can be used to execute server-side functions from methods defined on the client side, allowing for safe implementation.

# Installation

Install the following packages

```bash
npm install @mathrunet/masamune
```

# Implementation

If you want to use Firebase Functions, import [@mathrunet/masamune_firebase](https://www.npmjs.com/package/@mathrunet/masamune_firebase). If you want to use Cloudflare Workers, import [@mathrunet/masamune_cloudflare](https://www.npmjs.com/package/@mathrunet/masamune_cloudflare).

By defining individual deploy methods, you can utilize various Functions and Workers.

```typescript
import * as m from "@mathrunet/masamune_firebase";

// Define [m.Functions.xxxx] for the functions to be added to Functions.
m.deploy(
    exports,
    [
        // Function for Test.
        m.TestFunctions.test,
    ],
);
```


```typescript
import * as m from "@mathrunet/masamune_cloudflare";

// Define [m.Functions.xxxx] for the functions to be added to Workers.
export default m.deploy(
    [
        // Worker for Test.
        m.TestWorkers.test,
    ],
);
```

# GitHub Sponsors

Sponsors are always welcome. Thank you for your support!

[https://github.com/sponsors/mathrunet](https://github.com/sponsors/mathrunet)

---
_Source: https://npm.io/package/@mathrunet/masamune · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
