{
  "slug": "dev-filelayer-core",
  "name": "dev.filelayer/core",
  "title": "Filelayer",
  "description": "User files for a SaaS, under one person's authority: list, share with an expiry, revoke.",
  "version": "0.33.0",
  "publishedAt": "2026-10-16T04:59:02.316033Z",
  "updatedAt": "2026-10-16T04:59:02.316033Z",
  "repoUrl": "https://github.com/filelayer/filelayer",
  "websiteUrl": "https://filelayer.dev",
  "namespace": {
    "type": "domain",
    "owner": "filelayer.dev"
  },
  "kind": "local",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@filelayer/core",
      "version": "0.33.0",
      "transport": "stdio",
      "runtimeHint": "npx"
    }
  ],
  "remotes": [],
  "envVars": [
    {
      "name": "DATABASE_URL",
      "isSecret": true,
      "isRequired": true,
      "description": "Your own PostgreSQL, where this library keeps file ownership, grants and the audit chain. Apply node_modules/@filelayer/core/schema.sql once before starting."
    },
    {
      "name": "FILELAYER_AS",
      "isSecret": false,
      "isRequired": true,
      "description": "The ONE subject this server speaks for, in your own id space. Fixed for the life of the process: no tool reads it as an argument and no tool can change it, which is the only reason exposing these tools to an agent is safe. Write it yourself or have your provisioning write it, never derive it from a conversation. Serving several people means starting several servers."
    },
    {
      "name": "FILELAYER_ORG",
      "isSecret": false,
      "isRequired": true,
      "description": "The organisation this server is scoped to, in your own id space."
    },
    {
      "name": "FILELAYER_DATA_DIR",
      "isSecret": false,
      "isRequired": false,
      "description": "A local directory for the bytes. Needs no bucket and no IAM user. Set this OR the S3_* block: with neither, the server refuses to start rather than falling back to memory, which would work in a demo and lose the first real file."
    },
    {
      "name": "S3_ENDPOINT",
      "isSecret": false,
      "isRequired": false,
      "description": "An S3-compatible endpoint, for example https://<account>.r2.cloudflarestorage.com. Setting it makes S3_BUCKET, S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY required."
    },
    {
      "name": "S3_BUCKET",
      "isSecret": false,
      "isRequired": false,
      "description": "The bucket. It must be private: this library decides who may be GIVEN a URL and has no say in who the object store will answer. `npx -p @filelayer/core filelayer doctor` reports whether yours serves unauthenticated reads."
    },
    {
      "name": "S3_REGION",
      "isSecret": false,
      "isRequired": false,
      "description": "Region, or `auto` for Cloudflare R2."
    },
    {
      "name": "S3_ACCESS_KEY_ID",
      "isSecret": true,
      "isRequired": false,
      "description": "Access key id for the bucket."
    },
    {
      "name": "S3_SECRET_ACCESS_KEY",
      "isSecret": true,
      "isRequired": false,
      "description": "Secret access key for the bucket."
    },
    {
      "name": "FILELAYER_MCP_AGENT_LABEL",
      "isSecret": false,
      "isRequired": false,
      "description": "How this agent names itself in the audit trail, recorded on every event these tools produce. It is what lets the chain separate \"the partner opened this document\" from \"the partner's assistant opened this document\"."
    },
    {
      "name": "FILELAYER_MCP_ALLOW_DESTRUCTIVE",
      "isSecret": false,
      "isRequired": false,
      "description": "Set to exactly `true` to register delete_file. Off by default because deleting is not recoverable and an agent that misreads a sentence deletes the wrong thing silently."
    },
    {
      "name": "FILELAYER_MCP_EXPOSE_AUDIT",
      "isSecret": false,
      "isRequired": false,
      "description": "Set to exactly `true` to register file_audit. Off by default because the trail is an organisation's whole history and a tool that returns it copies every file name, actor and denial into the model's context. Reading it is itself audited since 0.27.0, which was the previous reason; the default did not move."
    },
    {
      "name": "FILELAYER_MCP_RETURN_BYTES",
      "isSecret": false,
      "isRequired": false,
      "description": "Set to exactly `true` to register read_file. Off by default because a document returned by a tool is a document copied into a model's context; file_info plus a share link is usually what was actually needed."
    },
    {
      "name": "FILELAYER_BASE_URL",
      "isSecret": false,
      "isRequired": false,
      "description": "The base of the share URLs this instance mints. Without it, share links come back without a URL."
    }
  ],
  "category": "files-docs",
  "subcategory": "local",
  "company": "",
  "categoryAuto": true,
  "checks": [
    {
      "id": "source-linked",
      "label": "Source repository linked",
      "result": "pass",
      "detail": "https://github.com/filelayer/filelayer"
    },
    {
      "id": "version-pinned",
      "label": "Version pinned",
      "result": "pass",
      "detail": "Every package has an explicit version"
    },
    {
      "id": "secrets-requested",
      "label": "Secrets requested",
      "result": "warn",
      "detail": "Asks for 3 secrets: DATABASE_URL, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY"
    },
    {
      "id": "known-registry",
      "label": "Known package registry",
      "result": "pass",
      "detail": "All packages come from npm, PyPI, OCI, NuGet or MCPB"
    },
    {
      "id": "namespace",
      "label": "Namespace ownership",
      "result": "info",
      "detail": "Name verified via domain filelayer.dev"
    },
    {
      "id": "meta-text",
      "label": "Registry text aimed at the AI",
      "result": "pass",
      "detail": "Description and settings contain no hidden characters or instructions to the AI"
    },
    {
      "id": "install-scripts",
      "label": "Install scripts",
      "result": "pass",
      "detail": "@filelayer/core@0.33.0 runs nothing at install"
    },
    {
      "id": "code-flags",
      "label": "Code red flags",
      "result": "pass",
      "detail": "Read 144 files in @filelayer/core@0.33.0: no obfuscation, encoded execution, credential reads or data-collection endpoints found"
    },
    {
      "id": "ai-text",
      "label": "Text aimed at the AI",
      "result": "pass",
      "detail": "No hidden characters or instructions to the AI in 144 files, including comments and the README"
    }
  ],
  "scannedAt": "2026-10-29",
  "level": "Scanned",
  "install": [
    {
      "label": "Claude Desktop (npm)",
      "kind": "claude_desktop_json",
      "text": "{\n  \"mcpServers\": {\n    \"core\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@filelayer/core@0.33.0\"\n      ],\n      \"env\": {\n        \"DATABASE_URL\": \"<your value>\",\n        \"FILELAYER_AS\": \"<your value>\",\n        \"FILELAYER_ORG\": \"<your value>\"\n      }\n    }\n  }\n}"
    }
  ],
  "curated": true,
  "stars": 0,
  "archived": false,
  "pushedAt": "2026-10-25T15:23:12Z",
  "health": {
    "score": 47,
    "parts": {
      "popularity": 0.2238160350811812,
      "activity": 0.6,
      "issues": null,
      "security": 0.8
    },
    "fail": 0,
    "warn": 1,
    "raw": {
      "stars": 0,
      "forks": 0,
      "downloads": 235,
      "hn": null,
      "issuesOpen": 0,
      "issuesClosed": 0,
      "prsMerged": 0,
      "commits90": 0,
      "release": null,
      "pushed": "2026-10-25T15:23:12Z",
      "growth": null,
      "growthDays": null,
      "archived": false
    },
    "at": "2026-10-31T07:35:52.424Z"
  }
}
