{"_id":"@axiom-infra/core","_rev":"2-511c00c39dd6ad55f58a7b24791c6fb6","name":"@axiom-infra/core","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@axiom-infra/core","version":"0.1.0","keywords":["ai-infrastructure","privacy","security","sdk","open-core"],"author":{"name":"Axiom Core Team","email":"hello@axiominfra.cloud"},"license":"Apache-2.0","_id":"@axiom-infra/core@0.1.0","maintainers":[{"name":"atadzhan","email":"atajanbaratov360@gmail.com"}],"homepage":"https://github.com/Axiom-Infra/axiom-core#readme","bugs":{"url":"https://github.com/Axiom-Infra/axiom-core/issues"},"dist":{"shasum":"f36d13bdc9b3761b6f7aaa41af9e6d929828a006","tarball":"https://registry.npmjs.org/@axiom-infra/core/-/core-0.1.0.tgz","fileCount":83,"integrity":"sha512-orYafnEhCBuVss6oWeUoN0dUdiXOL+Mh9YKMSLc7WzLi0r/rbdngevWj6ppchuWTNCl062127Cwn2Q+CrhsMTA==","signatures":[{"sig":"MEUCIB6WWZLtaKwSenKuRW8LW3LQc9qOwH0zY+mRMlKsjo3qAiEA97oTCYrZlKpmBKnc9LsLzF0lTAtN1eSoiypVnJOPr34=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":220400},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"84772f26f710088e227a7b2a2c3ab273df94d753","scripts":{"demo":"node --experimental-strip-types demo/demo.js","test":"node --test --experimental-strip-types tests/boundary.test.ts tests/canonical.test.ts tests/attestation.test.ts","build":"tsc","test:all":"node --test --experimental-strip-types tests/**/*.test.ts","build:enclave":"cd enclave/runner && cargo build --release","test:boundary":"node --test --experimental-strip-types tests/boundary.test.ts","test:canonical":"node --test --experimental-strip-types tests/canonical.test.ts","test:attestation":"node --test --experimental-strip-types tests/attestation.test.ts"},"_npmUser":{"name":"atadzhan","email":"atajanbaratov360@gmail.com"},"repository":{"url":"git+https://github.com/Axiom-Infra/axiom-core.git","type":"git"},"_npmVersion":"10.9.4","description":"Local semantic boundary engine for private AI reasoning","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.11.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1768831145892_0.10601811995022103","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@axiom-infra/core","version":"1.0.0","description":"Local semantic boundary engine for private AI reasoning","author":{"name":"Axiom Core Team","email":"hello@axiominfra.cloud"},"repository":{"type":"git","url":"git+https://github.com/Axiom-Infra/axiom-core.git"},"bugs":{"url":"https://github.com/Axiom-Infra/axiom-core/issues"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","build:enclave":"cd enclave/runner && cargo build --release","test":"node --test --experimental-strip-types tests/boundary.test.ts tests/canonical.test.ts tests/attestation.test.ts","test:boundary":"node --test --experimental-strip-types tests/boundary.test.ts","test:canonical":"node --test --experimental-strip-types tests/canonical.test.ts","test:attestation":"node --test --experimental-strip-types tests/attestation.test.ts","test:all":"node --test --experimental-strip-types tests/**/*.test.ts","demo":"node --experimental-strip-types demo/demo.js"},"keywords":["ai-infrastructure","semantic","transformation","boundary","local","privacy","security","sdk","open-core"],"dependencies":{},"optionalDependencies":{"@axiom-infra/enclave-runner":"1.0.0"},"devDependencies":{"@types/node":"^20.11.0"},"license":"Apache-2.0","engines":{"node":">=20.0.0"},"_id":"@axiom-infra/core@1.0.0","gitHead":"71c5e1ee0fe52b605e7f3b1b8b228e58182c50e2","homepage":"https://github.com/Axiom-Infra/axiom-core#readme","_nodeVersion":"22.21.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-sFo8kW30mI/1rNTE4E1yhpaDC6444AqESzz3Jd7kLoKzqIGf5f33EFyc+Tdlduigj8RVywf73zQ3cafXcEp4TA==","shasum":"db70c97d453942e5f8dbe4a09f13df0d72ff5e14","tarball":"https://registry.npmjs.org/@axiom-infra/core/-/core-1.0.0.tgz","fileCount":83,"unpackedSize":230231,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4IC6V0ner2+Nd6Ar2Rn3gqg7ef2SptvhGubzuFUZPygIhAOu70wssSJpwJlIs6sPtdJS1HFM5VCVjqa58KMgQyHX2"}]},"_npmUser":{"name":"atadzhan","email":"atajanbaratov360@gmail.com"},"directories":{},"maintainers":[{"name":"atadzhan","email":"atajanbaratov360@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.0.0_1769088079979_0.29418535786485567"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-19T13:59:05.777Z","modified":"2026-01-22T13:21:20.232Z","0.1.0":"2026-01-19T13:59:06.028Z","1.0.0":"2026-01-22T13:21:20.122Z"},"bugs":{"url":"https://github.com/Axiom-Infra/axiom-core/issues"},"author":{"name":"Axiom Core Team","email":"hello@axiominfra.cloud"},"license":"Apache-2.0","homepage":"https://github.com/Axiom-Infra/axiom-core#readme","keywords":["ai-infrastructure","semantic","transformation","boundary","local","privacy","security","sdk","open-core"],"repository":{"type":"git","url":"git+https://github.com/Axiom-Infra/axiom-core.git"},"description":"Local semantic boundary engine for private AI reasoning","maintainers":[{"name":"atadzhan","email":"atajanbaratov360@gmail.com"}],"readme":"# Axiom Core (v1.0)\r\n\r\n**Local semantic transformation for private AI reasoning.**\r\n\r\nAxiom Core is the v1.0 execution layer of the Axiom system. It transforms sensitive local input into non-identifying semantic representations so cloud models can reason over structure without seeing raw data.\r\n\r\nThe SDK performs semantic transformation locally: removing identifying information while preserving the relational structure required for reasoning.\r\n\r\n---\r\n\r\n## Table of Contents\r\n\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [Guarantees (v1.0)](#guarantees-v10)\r\n- [Features](#features)\r\n- [What This SDK Is](#what-this-sdk-is)\r\n- [What This SDK Is Not](#what-this-sdk-is-not)\r\n- [High-Level Architecture](#high-level-architecture)\r\n- [Security Model (v1.0)](#security-model-v10)\r\n- [Experimental: Enclave Execution (Preview)](#experimental-enclave-execution-preview)\r\n- [Repository Structure](#repository-structure)\r\n- [Contributing](#contributing)\r\n- [License](#license)\r\n- [Links](#links)\r\n\r\n---\r\n\r\n## Installation\r\n\r\n### Requirements\r\n\r\n- Node.js >= 20.0.0\r\n- npm >= 9.0.0 (or Yarn/pnpm)\r\n\r\n### Install\r\n\r\n```bash\r\nnpm install @axiom-infra/core\r\n```\r\n\r\n```bash\r\nyarn add @axiom-infra/core\r\n```\r\n\r\n---\r\n\r\n## Usage\r\n\r\n### Basic Example\r\n\r\n```ts\r\nimport { Axiom } from \"@axiom-infra/core\";\r\n\r\nconst axiom = new Axiom({\r\n  securityTier: \"standard\",\r\n  enclave: \"none\",\r\n  policyVersion: \"v1\",\r\n});\r\n\r\nconst result = await axiom.reason({\r\n  context: localDocuments,\r\n  task: \"analyze obligations and risks\",\r\n  model: \"gpt-5\",\r\n});\r\n\r\n// Send only result.transformedContext to cloud\r\n```\r\n\r\n### Local Demo (from this repo)\r\n\r\n```bash\r\nnpm install\r\nnpm run demo\r\n```\r\n\r\nIf your shell blocks npm scripts, run:\r\n\r\n```bash\r\nnode --experimental-strip-types demo/demo.js\r\n```\r\n\r\n### Advanced Usage (Preview)\r\n\r\n```ts\r\nconst axiomPreview = new Axiom({\r\n  securityTier: \"attested\",\r\n  enclave: \"auto\",\r\n  policyVersion: \"v1\",\r\n});\r\n```\r\n\r\nFor full integration details, see `docs/INTEGRATION.md`.\r\n\r\n---\r\n\r\n## Guarantees (v1.0)\r\n\r\nWhen invoking `axiom.reason(...)` in the **standard** tier, the SDK provides:\r\n\r\n| Guarantee | Description |\r\n|-----------|-------------|\r\n| **No raw data transmission** | Raw input data is not transmitted by the SDK |\r\n| **Local transformation** | Semantic transformation occurs locally |\r\n| **Explicit network calls** | No implicit network calls are performed |\r\n| **Fail-fast boundaries** | Boundary violations fail explicitly |\r\n| **No identity mapping output** | The SDK does not expose a raw↔synthetic mapping |\r\n\r\nThese guarantees apply only to SDK-controlled execution paths.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- Local semantic abstraction pipeline\r\n- Entity and role modeling\r\n- Deterministic canonicalization and hashing\r\n- Explicit boundary enforcement and fail-fast errors\r\n- Zero data retention by default (SDK-controlled paths)\r\n- Optional attestation evidence in the attested preview tier\r\n\r\n---\r\n\r\n## What This SDK Is\r\n\r\nAxiom Core is **infrastructure**, not an application.\r\n\r\nIt is designed to be embedded into systems where:\r\n\r\n- Private data should not be transmitted to the cloud\r\n- Frontier models are still required for reasoning\r\n- Trust boundaries and auditability matter\r\n\r\nAt a high level, the SDK:\r\n\r\n- Executes semantic analysis on local input\r\n- Transforms raw data into non-identifying representations\r\n- Preserves entities, roles, and relationships\r\n- Enforces a strict boundary between local context and cloud models\r\n\r\n---\r\n\r\n## What This SDK Is Not\r\n\r\nTo avoid ambiguity, Axiom Core is explicitly **not**:\r\n\r\n- A hosted service or proxy\r\n- A redaction or PII-masking tool\r\n- A compliance product or legal authority\r\n- A cryptographic encryption system\r\n- A local language model or inference engine\r\n- A cloud routing or billing layer\r\n\r\nThese concerns are intentionally outside the scope of this repository.\r\n\r\n---\r\n\r\n## High-Level Architecture\r\n\r\nThe Axiom system enforces a hard trust boundary.\r\n\r\n```\r\n┌─────────────────────────────────────────────────────────────────┐\r\n│  Local Environment (This SDK)                                   │\r\n│                                                                 │\r\n│  • Semantic analysis and transformation                         │\r\n│  • Entity and relationship abstraction                          │\r\n│  • Context filtering and minimization                           │\r\n└─────────────────────────────────────────────────────────────────┘\r\n                             │\r\n                             ▼ Transformed context only\r\n┌─────────────────────────────────────────────────────────────────┐\r\n│  Cloud Boundary                                                 │\r\n│                                                                 │\r\n│  • Receives non-identifying context only                        │\r\n│  • Performs reasoning using external models                     │\r\n│  • Never receives raw private data                              │\r\n└─────────────────────────────────────────────────────────────────┘\r\n```\r\n\r\nThis repository operates entirely on the **local side** of that boundary.\r\n\r\n---\r\n\r\n## Security Model (v1.0)\r\n\r\n### Hard Guarantees\r\n\r\nWithin its execution scope, the SDK enforces:\r\n\r\n- ✓ No raw text serialization\r\n- ✓ No implicit network access\r\n- ✓ Explicit local-to-cloud boundary enforcement\r\n- ✓ Zero data retention by default\r\n\r\nAll guarantees apply only to SDK-controlled execution paths.\r\n\r\n### Trust Assumptions\r\n\r\nThe SDK assumes:\r\n\r\n- The host operating system is honest-but-curious\r\n- The runtime environment is not actively malicious\r\n\r\nThe SDK is **not** designed to be safe under fully compromised host conditions.\r\n\r\n---\r\n\r\n## Experimental: Enclave Execution (Preview)\r\n\r\nThe attested tier uses an enclave runner (private `@axiom-infra/enclave-runner`). It is **not** part of the core v1.0 guarantee set and is **not required** to run the SDK.\r\n\r\nNotes:\r\n- `enclave: \"auto\"` falls back to a simulator when the native runner is unavailable.\r\n- `enclave: \"required\"` fails if the native runner is unavailable.\r\n- Simulator mode provides **no security guarantees** and is for development only.\r\n\r\n---\r\n\r\n## Repository Structure\r\n\r\n```\r\naxiom-core/\r\n├── src/           # Core SDK implementation (v1.0)\r\n├── demo/          # Demo script\r\n├── artifacts/     # Example evidence/verdicts\r\n├── docs/          # Design notes and specifications\r\n├── tests/         # Unit and boundary tests\r\n├── STATUS.md      # Consolidated project status\r\n├── README.md\r\n├── docs/architecture.md\r\n├── docs/security.md\r\n├── docs/roadmap.md\r\n└── LICENSE\r\n```\r\n\r\n---\r\n\r\n## Contributing\r\n\r\nThis project maintains high standards for correctness and clarity. Contributions are welcome for improvements to semantic correctness, documentation quality, and developer ergonomics.\r\n\r\n---\r\n\r\n## License\r\n\r\nAxiom Core is released under the **Apache 2.0 License**.\r\n\r\nThis repository represents the open-core component of the Axiom system.\r\n\r\n---\r\n\r\n## Links\r\n\r\n- Integration Guide: [`docs/INTEGRATION.md`](docs/INTEGRATION.md)\r\n- Docs Site: https://github.com/AxiomInfra/axiom-core-docs\r\n- Architecture: [`docs/architecture.md`](docs/architecture.md)\r\n- Security: [`docs/security.md`](docs/security.md)\r\n- Roadmap: [`docs/roadmap.md`](docs/roadmap.md)\r\n- Status: [`STATUS.md`](STATUS.md)\r\n- Issues: [github.com/Axiom-Infra/axiom-core/issues](https://github.com/Axiom-Infra/axiom-core/issues)\r\n- Changelog: [`CHANGELOG.md`](CHANGELOG.md)\r\n- Contact: hello@axiominfra.cloud | security@axiominfra.cloud\r\n\r\n---\r\n\r\n<p align=\"center\">\r\n  <em>Axiom exists to make advanced reasoning possible<br><strong>without surrendering ownership of data.</strong></em>\r\n</p>\r\n","readmeFilename":"README.md"}