https://github.com/cartersusi/bstorejs-react
Server Actions and Components for Bstore, a simple blob store.
https://github.com/cartersusi/bstorejs-react
blob blob-storage components go nextjs npm-package react server-actions
Last synced: 8 months ago
JSON representation
Server Actions and Components for Bstore, a simple blob store.
- Host: GitHub
- URL: https://github.com/cartersusi/bstorejs-react
- Owner: cartersusi
- License: mit
- Created: 2024-10-07T22:18:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T00:08:31.000Z (about 1 year ago)
- Last Synced: 2025-04-05T00:47:35.328Z (9 months ago)
- Topics: blob, blob-storage, components, go, nextjs, npm-package, react, server-actions
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/bstorejs-react
- Size: 311 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Bstore
A simple blob storage.
[](https://github.com/cartersusi/bstore)
[](https://www.npmjs.com/package/bstorejs)
[](https://www.npmjs.com/package/bstorejs-react)
[](https://github.com/cartersusi/bstore-demo)
### Install
```sh
npm i bstorejs-react
```
### Import
```ts
import { Put, Get, Del } from 'bstorejs-react'; //Functions
import { BstoreImage, BstoreVideo, BstoreApplication } from 'bstorejs-react'; // Component
```
### Functions
```ts
// Upload a File
const res = await Put(file.name, file, 'public');
// Download a File
const res = await Get(file.name, 'public');
// Delete a File
const res = await Del(file.name, 'public');
```
### Components
1. Image
```tsx
return (
)
```
2. Video
```tsx
return (
)
```
3. Application
```tsx
return (
)
```