{
  "name": "@hasna/shortlinks",
  "version": "0.5.0",
  "description": "Open-source shortlink manager with local SQLite or hosted /v1 storage, custom-domain provisioning through the Domains API, click tracking, CLI, MCP, redirect server, and SDK",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "bin": {
    "shortlinks": "dist/cli/index.js",
    "shortlinks-mcp": "dist/mcp/index.js",
    "shortlinks-serve": "dist/serve/index.js"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./server": {
      "types": "./dist/server.d.ts",
      "import": "./dist/server.js"
    },
    "./postgres": {
      "types": "./dist/pg-store.d.ts",
      "import": "./dist/pg-store.js"
    },
    "./sdk": {
      "types": "./dist/sdk/index.d.ts",
      "import": "./dist/sdk/index.js"
    }
  },
  "files": [
    "dist",
    "infra",
    "LICENSE",
    "README.md",
    "SECURITY.md"
  ],
  "scripts": {
    "build": "rm -rf dist && bun build src/cli/index.ts src/mcp/index.ts src/serve/index.ts src/sdk/index.ts src/index.ts src/server.ts src/pg-store.ts --root src --outdir dist --target bun --splitting --chunk-naming 'chunks/[name]-[hash].[ext]' --external @modelcontextprotocol/sdk --external pg && tsc -p tsconfig.build.json --emitDeclarationOnly --outDir dist",
    "sdk:generate": "bun run scripts/generate-sdk.ts",
    "typecheck": "tsc --noEmit",
    "test": "bun test",
    "test:pg": "bun scripts/pg-test-gate.ts",
    "scan:artifact": "bun scripts/scan-artifact.ts",
    "dev:cli": "bun run src/cli/index.ts",
    "dev:mcp": "bun run src/mcp/index.ts",
    "dev:serve": "bun run src/serve/index.ts",
    "verify:release": "bun run typecheck && bun run test && bun run build",
    "prepublishOnly": "bun run verify:release",
    "prepack": "bun run build && bun run scan:artifact"
  },
  "keywords": [
    "shortlinks",
    "shortlink",
    "url-shortener",
    "cli",
    "custom-domains",
    "ai-agents",
    "agentic",
    "hasna"
  ],
  "publishConfig": {
    "registry": "https://registry.npmjs.org",
    "access": "public"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/hasna/apps.git",
    "directory": "apps/shortlinks"
  },
  "homepage": "https://github.com/hasna/apps/tree/main/apps/shortlinks#readme",
  "bugs": {
    "url": "https://github.com/hasna/apps/issues"
  },
  "engines": {
    "bun": ">=1.0.0"
  },
  "author": "Andrei Hasna <andrei@hasna.com>",
  "license": "Apache-2.0",
  "dependencies": {
    "@hasna/domains": "0.3.0",
    "@hasna/events": "^0.1.6",
    "@modelcontextprotocol/sdk": "^1.27.1",
    "chalk": "^5.4.1",
    "commander": "^13.1.0",
    "hono": "4.13.3",
    "pg": "^8.13.3"
  },
  "devDependencies": {
    "@hasna/contracts": "1.0.2",
    "@types/pg": "^8.11.11",
    "@types/bun": "1.3.14",
    "typescript": "^5.7.3"
  },
  "overrides": {
    "fast-uri": "3.1.7",
    "ip-address": "10.7.0"
  }
}
