Skip to content

Conversation

@0xmaayan
Copy link
Contributor

@0xmaayan 0xmaayan commented Jan 29, 2026

A simple Solana dApp demonstrating file uploads to Shelby Protocol.

What's included

  • Simple file upload to Shelby using Solana wallet
  • Uses the new @shelby-protocol/solana-kit/react API
  • Same stack as token-gated example (create-solana-dapp) but without Anchor

Packages used

  • @solana/react-hooks - wallet connection
  • @shelby-protocol/solana-kit/react - storage account derivation
  • @shelby-protocol/react - blob uploads

Files

apps/solana/file-upload/
├── app/
│   ├── components/
│   │   ├── file-upload.tsx
│   │   ├── header.tsx
│   │   ├── providers.tsx
│   │   └── wallet-button.tsx
│   ├── lib/
│   │   ├── config.ts
│   │   └── shelbyClient.ts
│   ├── globals.css
│   ├── layout.tsx
│   └── page.tsx
├── package.json
└── README.md

Note

Low Risk
Adds a new standalone Next.js example app and updates the lockfile; no existing production logic is modified beyond dependency resolution.

Overview
Adds a new apps/solana/file-upload Next.js example that lets users connect a Solana wallet (via @solana/react-hooks), derives a Shelby storage account with the updated @shelby-protocol/solana-kit/react API, and uploads a selected file as a blob (with basic status/error UI and an Explorer link).

Includes app scaffolding/config (Providers with React Query + Solana client autodiscovery, Tailwind styling, Next/TS/ESLint configs), plus .env.example/README.md and pnpm-lock.yaml updates to pull in the new app’s dependencies.

Written by Cursor Bugbot for commit 41c2dd5. This will update automatically on new commits. Configure here.

Simple Solana dApp demonstrating file uploads to Shelby Protocol using:
- @solana/react-hooks for wallet connection
- @shelby-protocol/solana-kit/react for storage account
- @shelby-protocol/react for blob uploads

Uses the new simplified useStorageAccount API that accepts wallet directly.
@0xmaayan 0xmaayan force-pushed the feat/solana-file-upload branch from 0c9525a to 9f96ff3 Compare January 29, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants