Guidelines for contributing to this project.
Please be respectful and constructive in all interactions. We're building a welcoming community for everyone.
- Node.js 18+ or Bun
- Git
- Basic knowledge of React, TypeScript, and Tailwind CSS
-
Clone the repository:
git clone https://github.com/CodeMeAPixel/cfxstat.us.git cd cfxstat.us -
Install dependencies:
bun install
-
Start the dev server:
bun run dev
Visit
http://localhost:3000 -
Create a feature branch:
git checkout -b feature/your-feature-name
- Biome for formatting and linting
bun run lintto checkbun run formatto auto-format
- All code should be properly typed
- No
anytypes unless absolutely necessary with a comment explaining why - Run
bun run buildto verify TypeScript compilation
- Single-responsibility components
- Use Lucide React for icons
- Tailwind CSS for styling
- Proper TypeScript types for all props
Follow the Conventional Commits format:
feat:- New featuresfix:- Bug fixesdocs:- Documentation changesstyle:- Code style changes (formatting, missing semicolons, etc.)refactor:- Code refactoring without feature changesperf:- Performance improvementstest:- Adding or updating testschore:- Build process, dependencies, etc.
Example:
feat(links): add support for custom link categories
fix(ui): correct hover state color on link cards
docs(readme): update installation instructions
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Test thoroughly:
bun run devandbun run build - Run linting:
bun run lintandbun run check - Commit with conventional format
- Push and create a pull request
To add or modify link categories:
- Edit src/data/categories.ts
- Follow the existing structure for consistency
- Use available color options from the color map in src/components/layouts/LinkHubContent.tsx
To add new background colors:
- Add entries to
bgColorMapandglowColorMapin src/components/layouts/LinkHubContent.tsx - Use Tailwind CSS color classes
- Ensure the glow effect complements the background
- Test your changes locally before submitting
- Verify responsive design works on mobile, tablet, and desktop
- Check that deep linking works: navigate using hashes like
#communityand#community/github - Test pagination when categories have more than 8 links
The project deploys automatically via Cloudflare Workers. To deploy manually:
# Authenticate with Cloudflare
wrangler login
# Deploy to staging
bun run deploy -- -e staging
# Deploy to production
bun run deploySee DEPLOYMENT.md for detailed deployment instructions.
Found a bug? Have a feature request?
- Check GitHub Issues
- Provide clear description and reproduction steps
- Include your environment (OS, Node version, browser)
src/
├── routes/ # File-based routes
├── components/ # React components
├── data/ # Monitored endpoints
├── types/ # TypeScript types
├── utils/ # Utilities
└── styles.css # Global styles
Email: hey@codemeapixel.dev
By contributing, you agree your contributions will be licensed under the same license as the project (see LICENSE).