Package Exports
- @blockroll/core
- @blockroll/core/dist/index.esm.js
- @blockroll/core/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@blockroll/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@blockroll/core
Core SDK for BlockRoll - Secure data exchange platform
This is the foundation package used by all BlockRoll SDKs (React, Vue, CDN).
📦 Installation
npm install @blockroll/core⚡ Quick Start
import { BlockRollCore } from '@blockroll/core';
const blockroll = new BlockRollCore({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://api.blockroll.io/v1', // optional
realtime: true, // Enable WebSocket (default: true)
});
// Upload file
const result = await blockroll.files.upload({
file: myFile,
accessType: 'private',
encryption: true,
});
console.log('Uploaded:', result.fileId);🎯 Features
- ✅ File operations (upload, download, share, delete)
- ✅ Workspace management
- ✅ Real-time notifications via WebSocket
- ✅ API key authentication
- ✅ Full TypeScript support
- ✅ Error handling
- ✅ Progress tracking
📚 API Reference
See parent README for complete API documentation.
🔧 Development
# Build
npm run build
# Watch mode
npm run dev
# Type check
npm run typecheck📄 License
MIT License