Skip to content

Component Guide

Use this page to find the smallest part of Singularity that owns the behavior you want to change. Start from the product boundary, then follow the component README and nearest AGENTS.md.

User-facing products

ProductPrimary pathStackFirst local command
Main site, wallet, bridge, profile, DeFi and APIsbackend/laravel/Laravel 13, Inertia, Vue 3composer run dev
Ritual DEXfrontend/ritual/React 18, react-app-rewirednpm start
Landing pagesfrontend/landing/Static HTML/CSS/JSServe the directory locally
Blogfrontend/jekyll/JekyllFollow its Gemfile and _config.yml
Desktop shellfrontend/desktop/Electronnpm start
Mobile shellfrontend/mobile/Capacitornpm run sync
Browser wallet extensionfrontend/extension/MV3, TypeScriptnpm run build
Wiredgame/wired/Godot 4Open project.godot
NO CARRIERgame/nocarrier/Godot 4Open project.godot
Game SDKgame/SDK/TypeScriptRead game/SDK/docs/README.md

The Laravel subtree has its own AGENTS.md; read it in full before changing Laravel, Vue, Inertia, routes, bridge behavior, wallet code, or tests.

Contracts and chain integrations

AreaPrimary pathSource of truth
Cyberia EVM contractscrypto/hardhat/contracts/Contract source plus crypto/hardhat/deployments/
Deployment and relay scriptscrypto/hardhat/scripts/Script source and checked-in deployment records
Solana programscrypto/anchor/programs/Anchor program source
Solana client and relayer scriptscrypto/anchor/scripts/Script source and program configuration
Legacy AMM corecrypto/quickswap-core/Solidity source in that package
TON integrationcrypto/ton/Package source and local README/config
Yenten integrationcrypto/yenten/Package source and local README/config

For public identifiers and wallet configuration, use the Network reference. Do not copy an address from prose when a deployment record or verified explorer contract is available.

Services

ServicePathPurpose
Block explorer configurationservices/blockscout/Docker Compose deployment of official Blockscout images
IPFSservices/ipfs/IPFS service configuration
Telegram botservices/telegram-bot/Rewards, announcements, gates, market signals, and Mini App
LainOSservices/lainos/Autonomous agent framework and Cyberia chain plugin
Lisp servicesservices/lisp/Common Lisp daemons and HTTP services

Operational provisioning and production runbooks are maintained in Cyberia's internal documentation set rather than the public developer manual.

Choose the entry point

Change a Laravel page

  1. Find the route in backend/laravel/routes/.
  2. Follow it to the controller or Inertia render call.
  3. Find the Vue page in backend/laravel/resources/js/pages/.
  4. Reuse routes from @/routes and actions from @/actions.
  5. Add or update the narrow PHP and frontend tests that pin the behavior.

Change a wallet feature

  1. Start in backend/laravel/resources/js/components/wallet/ for screens.
  2. Use backend/laravel/resources/js/lib/wallet/ for chain-independent wallet logic.
  3. Use chains.ts and the relevant chain adapter for network behavior.
  4. Keep recovery phrases, private keys, signing, balances, and history browser-side.
  5. Run the matching tests under backend/laravel/tests/Frontend/.

Change the bridge

  1. Identify the corridor in backend/laravel/config/bridge.php.
  2. Trace admission and inventory through the Laravel bridge services.
  3. Trace the on-chain leg to crypto/hardhat/ or crypto/anchor/.
  4. Preserve token decimals and integer smallest-unit arithmetic across both sides.
  5. Test configuration, request state transitions, capacity, and the relevant contract or script.

Change a contract

  1. Find the deployed contract and record in crypto/hardhat/deployments/.
  2. Edit the Solidity source and its test together.
  3. Compile and run the narrow Hardhat tests locally.
  4. Update frontend ABI/address consumers and documentation when the public interface changes.
  5. Keep deployment as a separate, explicitly authorized workflow.

Change an application shell

  1. Confirm whether the behavior belongs to the shared live site or to the shell itself.
  2. Make site behavior changes in Laravel; keep shell changes in frontend/desktop/, frontend/mobile/, or frontend/extension/.
  3. Run the shell's own tests and build command.
  4. Confirm its expected artifact without editing generated output by hand.

Open-source documentation for the Cyberia ecosystem.