https://github.com/magickbase/platform-api
Web3Platform API client
https://github.com/magickbase/platform-api
Last synced: about 1 year ago
JSON representation
Web3Platform API client
- Host: GitHub
- URL: https://github.com/magickbase/platform-api
- Owner: Magickbase
- Created: 2024-12-11T07:47:32.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2025-03-17T07:32:29.000Z (about 1 year ago)
- Last Synced: 2025-03-26T19:42:47.765Z (about 1 year ago)
- Language: TypeScript
- Size: 307 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Magickbase Platform API
## Usage with tRPC
```ts
import { TRPCRouter } from '@magickbase/p';
import { createTRPCClient, httpBatchLink } from '@trpc/client';
import SuperJSON from 'superjson';
const client = createTRPCClient({
links: [
httpBatchLink({
url: `https://api-endpoint.domain/api/trpc`,
transformer: SuperJSON,
headers: {
Authorization: `Bearer `,
},
}),
],
});
```
It is recommended to use tRPC and TypeScript to interact with the platform API for a better development experience

## Import this Repo
```json
{
"dependencies": {
"@magickbase/p": "github:magickbase/platform-api"
}
}
```