Sol.College

Structure lesson (licence does not allow quoting code)

drive

Free-to-use, end-to-end encrypted file store

Original
Chakra-Network/drive
SuperStack fork
Blockchains/drive @ 8c3d29c
Stars
19
Last push (original)
2024-10-21
Languages
TypeScript, JavaScript, CSS
Detected stack
Next.jsSolana Actionsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://drive.chakra.network

Architecture

106 source files. By extension: .tsx ×61, .ts ×40, .js ×5.

Top-level directorySource files
src99
(root)5
scripts2

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
src/lib/solana.tsTransaction, PublicKey, Connection, SystemProgram, signTransaction, transfer
src/app/share/[publicShareId]/ClientShareContent.tsxWalletMultiButton, Transaction, signTransaction, sendTransaction, useWallet, useConnection
src/app/components/TipButton.tsxsignTransaction, useWallet, Connection, PublicKey, Transaction
src/app/components/client_lib/lit_encryption.tsPublicKey
src/context/balance.tsxuseWallet, PublicKey, getBalance
src/app/components/wallet_connect_button/BaseWalletMultiButton.tsxPublicKey, useWallet
src/app/components/AppWithSidebar.tsxWalletMultiButton
src/app/components/files/FileActions/AllFileActionsMenu.tsxuseWallet, PublicKey
src/lib/emoji.tsPublicKey
src/lib/auth.tsPublicKey
src/app/components/files/FilePreview.tsxuseWallet
src/app/api/fileentry/share/route.tsPublicKey

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/drive/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run dev
.npm run start
.npm run build
.npm run lint

What you could build from it