Aetherna is an experimental AI + DeFi protocol workspace centered on a Solana-based RAPR token/treasury system and an Athena/Aetherna agent that can publish protocol updates and prepare parameter changes.
This repository is a multi-part prototype, not a single packaged application.
gui/- Next.js frontend for the public Aetherna interface, staking/ticket pages, charts, profile views, meme creation, and documentation pagesapi/- NestJS API and Socket.IO gateway for health/status, tweet publishing, scheduled mood/config updates, and Solana transaction submissionsolana/- Rust Solana program for RAPR minting, burning, transfers, staking, ticket purchase/redeem, treasury setup, and protocol config updatesagent/- Athena agent configuration, environment placeholders, Akash deployment scaffolding, and personality/config JSONmodel/- local model, LoRA, conversion, and dataset artifacts used during Athena model experimentsdeploy.sh- deployment helper script
The GUI is a Next.js 15 app using React 19, Tailwind CSS, Radix UI primitives, Recharts, and custom Aetherna assets. It contains pages for:
- homepage and docs
- staking
- ticket buying/selling
- charts
- profile and transaction history
- meme creation
The API is a NestJS 10 service with:
- HTTP health/status endpoint
- Socket.IO gateway
- scheduled Athena mood publishing
- Twitter posting hooks
- Solana devnet transaction flow for protocol config updates
The API expects runtime environment variables for Twitter and Solana signing before the live actions can work.
The Solana program is named rapr and includes instruction handlers for minting, burning, transfers, staking, unstaking, ticket purchase/redeem, treasury setup, config initialization, config updates, config retrieval, and token withdrawals.
The agent/ package contains configuration and deployment scaffolding for an Athena/RAPR protocol agent. In this snapshot, the package scripts reference TypeScript source files under agent/src/, but that source directory is not present. Treat the agent folder as scaffolding/config unless source files are restored.
The model/ folder contains experimental model, adapter, and dataset files. It is not wired as a standalone package from the repository root.
Run each module from its own directory.
cd gui
pnpm install
cp env-example .env.local
pnpm devOpen http://localhost:3000.
cd api
pnpm install
pnpm start:developmentRequired live-action environment variables include:
PROGRAM_ID=
ADMIN_PRIVATE_KEY=
ADMIN_PUBLIC_KEY=
TWITTER_KEY=
TWITTER_SECRET=
TWITTER_AT=
TWITTER_AT_SECRET=Without those values, read-only health checks may work, but Twitter and Solana actions will not.
cd solana
pnpm install
pnpm test:build
pnpm test:runpnpm test builds the SBF program and runs the TypeScript tests.
This is a prototype workspace with several active experiments and some generated/model artifacts checked in. The root README is the canonical project overview; subdirectories may contain lower-level notes for their own modules.