{
  "name": "nostr-dm-magiclink-utils",
  "version": "0.3.1",
  "description": "A comprehensive Nostr utility library for magic link authentication via direct messages, supporting both ESM and CommonJS. Features NIP-01/04 compliant message encryption, multi-relay support, internationalization (i18n) with RTL support, and TypeScript-first development.",
  "author": "vveerrgg",
  "license": "MIT",
  "type": "module",
  "main": "./dist/cjs/index.js",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/HumanjavaEnterprises/nostr-dm-magiclink-utils.git"
  },
  "bugs": {
    "url": "https://github.com/HumanjavaEnterprises/nostr-dm-magiclink-utils/issues"
  },
  "homepage": "https://github.com/HumanjavaEnterprises/nostr-dm-magiclink-utils#readme",
  "scripts": {
    "build": "tsc && tsc -p tsconfig.cjs.json",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:coverage": "vitest run --coverage",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "format": "prettier --write \"src/**/*.ts\"",
    "prepare": "npm run build",
    "prepublishOnly": "npm test && npm run lint",
    "docs": "typedoc",
    "docs:serve": "npm run docs && npx serve docs"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js",
      "require": "./dist/cjs/index.js",
      "default": "./dist/index.js"
    }
  },
  "files": [
    "dist/**/*",
    "examples/**/*"
  ],
  "dependencies": {
    "@noble/hashes": "^2.0.1",
    "@scure/base": "^2.0.0",
    "@types/jsonwebtoken": "^9.0.10",
    "dotenv": "^17.3.1",
    "jsonwebtoken": "^9.0.3",
    "nostr-crypto-utils": "^0.7.0",
    "nostr-nsec-seedphrase": "^0.7.0",
    "nostr-websocket-utils": "^0.4.0",
    "pino": "^10.3.1"
  },
  "devDependencies": {
    "@eslint/js": "^10.0.0",
    "@types/node": "^22.19.15",
    "@typescript-eslint/eslint-plugin": "^8.56.0",
    "@typescript-eslint/parser": "^8.56.0",
    "@vitest/coverage-v8": "^4.0.18",
    "eslint": "^10.0.3",
    "eslint-config-prettier": "^10.1.8",
    "eslint-plugin-jsdoc": "^62.6.1",
    "pino-pretty": "^13.1.3",
    "prettier": "^3.8.1",
    "typedoc": "^0.28.17",
    "typescript": "^5.9.3",
    "vitest": "^4.0.18"
  },
  "keywords": [
    "nostr",
    "magic-link",
    "authentication",
    "direct-messages",
    "typescript",
    "esm",
    "commonjs",
    "dual-module",
    "nostr-protocol",
    "nip-01",
    "nip-04",
    "i18n",
    "rtl-support"
  ],
  "engines": {
    "node": ">=18.0.0"
  }
}
