ms-tools-integrations 0.1.3
Install from the command line:
Learn more about npm packages
$ npm install @solana-foundation/ms-tools-integrations@0.1.3
Install via package.json:
"@solana-foundation/ms-tools-integrations": "0.1.3"
About this version
Handles integrations with third-party services, providing a centralized location for managing these connections for Solana microsites.
- Multiple third-party service integrations:
- Sanity CMS integration with automatic type generation
- API client utilities
- Centralized management of third-party service connections
- TypeScript support with full type definitions
- Error handling and retry logic
- Rate limiting protection
- Caching support
- Environment-based configuration
First, configure your project to use the GitHub registry:
# .npmrc
@solana-foundation:registry=https://npm.pkg.github.com
Then install the package:
pnpm add @solana-foundation/ms-tools-integrations
import { createSanityClient } from '@solana-foundation/ms-tools-integrations'
const client = createSanityClient({
projectId: 'your-project-id',
dataset: 'production',
apiVersion: '2024-03-21'
})
// Using with React hooks
import { useSanityQuery } from '@solana-foundation/ms-tools-integrations'
function MyComponent() {
const { data, isLoading } = useSanityQuery('*[_type == "post"]')
if (isLoading) return <div>Loading...</div>
return <div>{/* Render your data */}</div>
}
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build package
pnpm build
- Sanity CMS
Please refer to the main repository's contributing guidelines.
Details
- ms-tools-integrations
-
solana-foundation
- 3 months ago
- 15 dependencies
Assets
- ms-tools-integrations-0.1.3.tgz
Download activity
- Total downloads 9
- Last 30 days 1
- Last week 0
- Today 0