Full lesson
AImour
Your AI needs a date
What it does
From the project README:
[](https://opensource.org/licenses/MIT) [](https://solana.com/) [](https://nextjs.org/)
- Original
- mreeddd/AImour
- SuperStack fork
- Blockchains/AImour @
bca510d - Stars
- 0
- Last push (original)
- 2025-05-15
- Languages
- TypeScript, Python, Rust, CSS, JavaScript
- Detected stack
- AnchorNext.js
- Categories
- AI & Agents
- Licence
- MIT
Architecture
88 source files. By extension: .tsx ×71, .ts ×8, .py ×6, .rs ×3.
| Top-level directory | Source files |
|---|---|
frontend | 79 |
ai-engine | 6 |
solana-programs | 3 |
On-chain programs: solana-programs/agent-registry, solana-programs/influence, solana-programs/relationship
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/aimour/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.
Key code, explained
Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.
solana-programs/influence/src/lib.rs L241–264 @ bca510d · MIT · original init, payer = authority, space = 8 + std::mem::size_of::<MintConfig>() + 100, // Extra space for strings seeds = [b"mint_config", mint.key().as_ref()], bump )] pub mint_config: Account<'info, MintConfig>, pub token_program: Program<'info, Token>, pub system_program: Program<'info, System>, pub rent: Sysvar<'info, Rent>,} #[derive(Accounts)]pub struct MintTokens<'info> { #[account(mut)] pub authority: Signer<'info>, #[account( mut, constraint = mint_config.mint == mint.key(), constraint = mint_config.authority == authority.key(), )] pub mint_config: Account<'info, MintConfig>,- Line 241
init,: Creates and pays for a new account. Space and payer must be specified. - Line 244
seeds = [b"mint_config", mint.key().as_ref()],: Declares the PDA seeds. Anchor re-derives the address and rejects the account if it doesn't match. - Line 245
bump: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve. - Line 255
pub struct MintTokens<'info> {: Mints new tokens. The mint authority must sign. - Line 257
pub authority: Signer<'info>,: Requires this account to have signed the transaction.
solana-programs/relationship/src/lib.rs L133–155 @ bca510d · MIT · original pub timestamp: i64,} // Context structs for instructions#[derive(Accounts)]pub struct CreateRelationship<'info> { #[account(mut)] pub authority: Signer<'info>, pub agent_one: AccountInfo<'info>, pub agent_two: AccountInfo<'info>, #[account( init, payer = authority, space = 8 + std::mem::size_of::<RelationshipData>(), seeds = [b"relationship", agent_one.key().as_ref(), agent_two.key().as_ref()], bump )] pub relationship_data: Account<'info, RelationshipData>, pub system_program: Program<'info, System>,}- Line 140
pub authority: Signer<'info>,: Requires this account to have signed the transaction. - Line 146
init,: Creates and pays for a new account. Space and payer must be specified. - Line 149
seeds = [b"relationship", agent_one.key().as_ref(), agent_two.key().as_ref()],: Declares the PDA seeds. Anchor re-derives the address and rejects the account if it doesn't match. - Line 150
bump: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve.
solana-programs/agent-registry/src/lib.rs L205–228 @ bca510d · MIT · originalpub struct MatchData { pub agent_one: Pubkey, pub agent_two: Pubkey, pub compatibility_score: u8, pub match_date: i64, pub is_active: bool,} // Context structs for instructions#[derive(Accounts)]pub struct RegisterAgent<'info> { #[account(mut)] pub owner: Signer<'info>, #[account( init, payer = owner, space = 8 + std::mem::size_of::<AgentData>(), seeds = [b"agent", owner.key().as_ref(), name.as_bytes()], bump )] pub agent_data: Account<'info, AgentData>, // Accounts needed for minting compressed NFT- Line 217
pub owner: Signer<'info>,: Requires this account to have signed the transaction. - Line 220
init,: Creates and pays for a new account. Space and payer must be specified. - Line 223
seeds = [b"agent", owner.key().as_ref(), name.as_bytes()],: Declares the PDA seeds. Anchor re-derives the address and rejects the account if it doesn't match. - Line 224
bump: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve.
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.
| Directory | Command | Runs |
|---|---|---|
frontend | npm run dev | next dev |
frontend | npm run start | next start |
frontend | npm run build | next build |
frontend | npm run lint | next lint |
What you could build from it
- Fork the SuperStack copy and extend it within the AI & Agents gaps listed on the idea page.
- Learn the pattern first: AI agents on Solana
- Learn the pattern first: Building and sending transactions from a client