-
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
π Welcome to A+ Grade Enterprise Solution! This comprehensive guide gets you running the production-ready Arsenal Lab in under 10 minutes. Whether you're evaluating enterprise performance tools or deploying for production, this guide covers full-stack enterprise setup.
Before we begin, ensure you have:
-
Bun Runtime:
>=1.3.0(Install Bun) - Git: For cloning repositories
- Modern Browser: Chrome 90+, Firefox 88+, or Safari 14+
# Check your Bun version
bun --version # Should show 1.3.x or higher# Clone the A+ grade enterprise repository
git clone https://github.com/brendadeeznuts1111/Arsenal-Lab.git
cd Arsenal-Lab
# Install all dependencies (frontend + backend)
bun install
# Setup enterprise backend infrastructure
bun run backend:migrate
# Start full-stack enterprise environment
bun run fullstack:devAccess Points:
- π A+ Grade Frontend: http://localhost:3655 (Complete enterprise UI)
- π§ RESTful Backend API: http://localhost:3001 (Enterprise-grade APIs)
- π Analytics Dashboard: Real-time performance monitoring
- βοΈ Cloud Features: Persistent storage and remote builds
π Enterprise deployment complete! You're now running the A+ grade solution.
# Clone and run frontend with simulated backend
git clone https://github.com/brendadeeznuts1111/Arsenal-Lab.git
cd Arsenal-Lab
# Install frontend dependencies only
bun install
# Start enterprise frontend (backend features simulated)
bun run devThen open: http://localhost:3655
# Enterprise evaluation without any setup
git clone https://github.com/brendadeeznuts1111/Arsenal-Lab.git
cd Arsenal-Lab/public
# Open enterprise preview - works completely offline
open arsenal-lab.htmlFeatures Available:
- β A+ Grade UI with enterprise branding
- β Complete arsenal demonstrations
- β Performance metrics showcase
- β Enterprise feature previews
# Install as a dependency in your project
bun add @bun/performance-arsenal
# Or globally for CLI access
bun add -g @bun/performance-arsenalWhen you first load Arsenal Lab, you'll see five main arsenals:
- β‘ Performance Arsenal: Benchmark Bun vs Node.js
- ποΈ Database Infrastructure: Test SQLite & Redis
- π§ Build Configuration: Interactive Bun.build() playground
- π§ͺ Testing Arsenal: Comprehensive testing tools
- π Process & Shell: System-level testing
# Using the CLI
bun arsenal:benchmark
# Or through the web interface
# 1. Click "Performance Arsenal"
# 2. Select a benchmark (try "Crypto")
# 3. Click "Run Benchmark"# Enable real-time analytics
bun arsenal:lab --analytics
# View performance metrics in your browser
open http://localhost:3655Arsenal Lab is organized around five specialized testing environments:
- Real-time benchmarking of Bun vs Node.js
- Hardware detection and optimization
- Custom benchmark creation capabilities
- SQLite performance testing with in-memory databases
- Redis integration and caching benchmarks
- Cloud storage simulation (S3-compatible)
- Interactive Bun.build() API playground
- CLI command generation and testing
- Bundle optimization tools
- Concurrent test execution
- Mock data generation
- CI/CD integration examples
- Socket communication testing
- Process management and monitoring
- Memory and stream analysis
import { PerformanceArsenal } from '@bun/performance-arsenal';
// Quick performance comparison
const results = await PerformanceArsenal.runBenchmark('crypto', {
iterations: 1000,
compareWithNode: true
});
console.log(`Bun: ${results.bun}ms, Node: ${results.node}ms`);
console.log(`Speedup: ${results.speedup}x`);import { DatabaseInfrastructureArsenal } from '@bun/performance-arsenal';
// Test SQLite performance
const db = new DatabaseInfrastructureArsenal.Database();
await db.connect(':memory:');
await db.benchmarkBulkInsert(10000);
const metrics = db.getMetrics();
console.log(`Insert rate: ${metrics.insertsPerSecond} ops/sec`);import { BuildConfigurationArsenal } from '@bun/performance-arsenal';
// Generate optimized build config
const config = BuildConfigurationArsenal.generateConfig({
entrypoints: ['./src/index.ts'],
target: 'browser',
minify: true,
sourcemap: 'external'
});
// Get CLI command
const cliCommand = config.toCLI();
console.log(cliCommand); // bun build ./src/index.ts --target=browser --minify --sourcemap=external# Set analytics preferences
export ARSENAL_ANALYTICS_ENABLED=true
export ARSENAL_ANALYTICS_RETENTION=30d
# Configure hardware detection
export ARSENAL_HARDWARE_DETECTION=true
export ARSENAL_LOW_FPS_THRESHOLD=30
# Database settings
export ARSENAL_SQLITE_PATH=:memory:
export ARSENAL_REDIS_URL=redis://localhost:6379Create arsenal.config.json:
{
"analytics": {
"enabled": true,
"retention": "30-days",
"exportPath": "./analytics"
},
"performance": {
"hardwareDetection": true,
"fpsThreshold": 30,
"memoryThreshold": 500
},
"database": {
"sqlite": { "path": ":memory:" },
"redis": { "url": "redis://localhost:6379" }
},
"build": {
"defaultTarget": "browser",
"minify": true,
"sourcemap": "external"
}
}# Install Bun
curl -fsSL https://bun.sh/install | bash
# Restart your terminal
exec $SHELL# Use a different port
bun run dev --port 3000
# Or find what's using the port
lsof -i :3655
kill -9 <PID># Check Node.js installation
node --version
# Ensure clean system state
# Close background applications
# Restart Arsenal Lab
bun run dev --fresh# For SQLite - use in-memory database
export ARSENAL_SQLITE_PATH=:memory:
# For Redis - ensure Redis is running
redis-server --daemonize yes
redis-cli ping # Should return PONGNow that you're set up, explore these resources:
- Performance Testing Tutorial - Learn benchmarking
- Database Integration Guide - Master data testing
- Build Optimization - Optimize your builds
- Analytics & Monitoring - Deep dive into metrics
- API Reference - Complete technical docs
- Integration Examples - Framework integration
- GitHub Discussions - Ask questions
- Issues - Report bugs
- Contributing Guide - Help improve Arsenal Lab
You've successfully installed and configured Arsenal Lab! Here's a quick checklist:
- β Bun runtime installed
- β Arsenal Lab running
- β Basic benchmark executed
- β Analytics configured
- β Documentation explored
Ready to dive deeper? Head to the Performance Arsenal Tutorial to learn advanced benchmarking techniques.
Need help? Join our GitHub Discussions or check the Troubleshooting Guide.
Built with β€οΈ for the Bun ecosystem β’ Last updated: October 21, 2025