Documentation Index
Fetch the complete documentation index at: https://docs.tariqdev.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Game Hosting
Game hosting is one of Sonata’s core product areas.Game hosting pages combine product data, checkout parameters, locations, software options, and optional live stock.
What Game Hosting Supports
- Multiple games.
- Game-specific pages.
- Hero images.
- Theme accents.
- Plan tiers.
- Monthly and yearly pricing.
- Location selection.
- Software selection.
- Billing URL parameters.
- Badges.
- Stock availability.
Adding a New Game
- Open
lib/data/game-hosting.ts. - Copy an existing game entry.
- Change
slug,label,shortLabel, andhref. - Update hero copy and SEO metadata.
- Set images.
- Configure locations.
- Configure software options.
- Add tiers and plans.
- Test the page route.
Billing Config
Game checkout links can append selected options. Typical fields:- WHMCS may use
billingcycleandconfig[...]. - Paymenter may use
cycleandoptions[...]. - Custom billing can use any query names your app expects.
Location Options
Locations should match the real regions you can provide. Check each location against:- Public product copy.
- Billing configurable options.
- Pterodactyl location or node mapping.
- Stock availability.
Software Options
Software options can represent:- Vanilla.
- Paper.
- Purpur.
- Forge.
- Fabric.
- BungeeCord.
- Velocity.
- Game-specific versions or loaders.
Plans
Game plans are created using the plan helper ingame-hosting.ts.
Plan fields commonly include:
- ID.
- Billing path.
- Name.
- Tagline.
- Monthly price.
- Yearly price.
- RAM.
- CPU.
- Storage.
- Bandwidth.
- Location.
- Backup.
- Slots.
- Recommended usage.
- Badges.
Plan Writing Tips
- Keep RAM, CPU, storage, and slots consistent across plans.
- Use plan names that are easy to compare.
- Put the best value badge on one plan only.
- Avoid long plan descriptions inside cards.
- Keep recommended usage realistic.
Stock Badges
Stock badge UI:Pterodactyl Requirements
Set:Testing Game Pages
After changing game data:- Open the game listing page.
- Open every game detail page.
- Switch billing cycles.
- Change locations.
- Change software options.
- Click checkout links.
- Check stock badges.
- Run
pnpm build.
Common Mistakes
- Wrong Pterodactyl location IDs.
- Billing parameter names do not match the billing panel.
- Software options are enabled but no
softwareParamexists. - Plan card text is too long for mobile.
- Hero image path is wrong.