https://github.com/nexys-system/ipfs-infura-client
simple client to access IPFS via infura
https://github.com/nexys-system/ipfs-infura-client
infura infura-api ipfs ipfs-api typescript typescript-library
Last synced: about 2 months ago
JSON representation
simple client to access IPFS via infura
- Host: GitHub
- URL: https://github.com/nexys-system/ipfs-infura-client
- Owner: nexys-system
- Created: 2022-01-26T22:45:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T19:38:39.000Z (over 3 years ago)
- Last Synced: 2025-03-27T09:19:43.617Z (2 months ago)
- Topics: infura, infura-api, ipfs, ipfs-api, typescript, typescript-library
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# client ipfs-infura
[](https://www.npmjs.com/package/@nexys/ipfs-infura-client)
[](https://github.com/nexys-system/ipfs-infura-client/actions/workflows/test.yml)
[](https://github.com/nexys-system/ipfs-infura-client/actions/workflows/publish.yml)

[](https://bundlephobia.com/result?p=@nexys/ipfs-infura-client)## Get started
```
import Client from '@nexys/ipfs-infura-client';const url = process.env.IPFS_URL || '';
const username = process.env.IPFS_CLIENT || '';
const password = process.env.IPFS_SECRET || '';const client = new Client({ username, password, url });
export const main = async () => {
const { cid } = await client.set('hello world');const r = await client.get(cid);
return { cid, r };
};
```