{"_id":"@aircraftworth/hedera-logger","name":"@aircraftworth/hedera-logger","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aircraftworth/hedera-logger","version":"0.1.0","description":"Lightweight Hedera HCS logging and HTS token minting for any Node.js application. Log structured events to Hedera Consensus Service with retry, batching, and async support.","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"jest --testPathPattern=tests/","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test","lint":"eslint src/**/*.ts"},"keywords":["hedera","hcs","hts","consensus","hashgraph","blockchain","logging","audit-trail","depin","iot"],"author":{"name":"AircraftWorth","email":"team@aircraftworth.io"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aircraftworth/hedera-logger.git"},"homepage":"https://github.com/aircraftworth/hedera-logger#readme","bugs":{"url":"https://github.com/aircraftworth/hedera-logger/issues"},"peerDependencies":{"@hashgraph/sdk":"^2.0.0"},"devDependencies":{"@hashgraph/sdk":"^2.44.0","@types/jest":"^29.5.14","@types/node":"^20.19.37","jest":"^29.5.0","ts-jest":"^29.1.0","tsup":"^8.0.0","typescript":"^5.0.0"},"engines":{"node":">=18.0.0"},"publishConfig":{"access":"public"},"_id":"@aircraftworth/hedera-logger@0.1.0","gitHead":"dcf73d654bbf0b3cb46e679b654167bc47cd89e8","_nodeVersion":"22.12.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-l5jkDb2gJO8NCmcZd1uLi5OwtZZD8jo7p4c2xq1enDVRgqO0tNhKAEx6nHuhZ+mTqpZGoHv5NkmKmXExDiFaFA==","shasum":"9e35bbdd56486e9fa6fea46ebe6f3b3e5e8efce3","tarball":"https://registry.npmjs.org/@aircraftworth/hedera-logger/-/hedera-logger-0.1.0.tgz","fileCount":7,"unpackedSize":38038,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHCWiCzL3DCpQjhKTbErLJR6Zb0bZTulAfe0k7UKljnmAiA9MECeEMl70YT014fmo2LujrE2fO9qObibztRgbNYhLw=="}]},"_npmUser":{"name":"austinlorenzmccoy","email":"chibuezeaugustine23@gmail.com"},"directories":{},"maintainers":[{"name":"austinlorenzmccoy","email":"chibuezeaugustine23@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hedera-logger_0.1.0_1773237724682_0.49326624038989664"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-11T14:02:04.621Z","0.1.0":"2026-03-11T14:02:04.825Z","modified":"2026-03-11T14:02:05.081Z"},"maintainers":[{"name":"austinlorenzmccoy","email":"chibuezeaugustine23@gmail.com"}],"description":"Lightweight Hedera HCS logging and HTS token minting for any Node.js application. Log structured events to Hedera Consensus Service with retry, batching, and async support.","homepage":"https://github.com/aircraftworth/hedera-logger#readme","keywords":["hedera","hcs","hts","consensus","hashgraph","blockchain","logging","audit-trail","depin","iot"],"repository":{"type":"git","url":"git+https://github.com/aircraftworth/hedera-logger.git"},"author":{"name":"AircraftWorth","email":"team@aircraftworth.io"},"bugs":{"url":"https://github.com/aircraftworth/hedera-logger/issues"},"license":"MIT","readme":"# @aircraftworth/hedera-logger\n\nLightweight Hedera HCS logging and HTS token minting for any Node.js application.\n\n## Installation\n\n```bash\nnpm install @aircraftworth/hedera-logger @hashgraph/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { HederaLogger } from '@aircraftworth/hedera-logger'\n\nconst logger = new HederaLogger({\n  operatorId: process.env.HEDERA_OPERATOR_ID!,\n  operatorKey: process.env.HEDERA_OPERATOR_KEY!,\n  network: 'testnet'\n})\n\nconst result = await logger.log({\n  topicId: '0.0.7968510',\n  payload: { type: 'my_event', value: 42 }\n})\n\nconsole.log(`Logged to HCS — Seq #${result.sequenceNumber}`)\n```\n\n## Features\n\n- ✅ **HCS Logging**: Structured event logging with automatic retries\n- ✅ **Batch Processing**: Parallel message submission with concurrency control\n- ✅ **HTS Minting**: Token/NFT creation with metadata\n- ✅ **MLAT Helper**: Built-in MLAT position logging + token minting\n- ✅ **Type Safety**: Full TypeScript definitions, no `any` types\n- ✅ **Network Support**: Testnet, previewnet, mainnet\n- ✅ **Production Ready**: Optimized builds for CommonJS + ESM\n\n## API\n\n### `HederaLogger`\n\nMain class for Hedera interactions.\n\n#### Constructor\n\n```typescript\nnew HederaLogger(config: HederaLoggerConfig)\n```\n\n#### Methods\n\n- `log(options: HCSLogOptions): Promise<HCSLogResult>`\n- `logBatch(options: BatchOptions): Promise<HCSBatchResult>`\n- `mint(options: HTSMintOptions): Promise<HTSMintResult>`\n- `logMLATPosition(options: MLATOptions): Promise<{log: HCSLogResult, token: HTSMintResult | null}>`\n- `createTopic(memo?: string): Promise<string>`\n- `close(): Promise<void>`\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-cc4f0adeb201ef1e12255e1f8e3817b0"}