A comprehensive salary and margin calculator built with SvelteKit. Calculate salary breakdowns, analyse profit margins, compare industry benchmarks, and gain strategic insights for freelancing and consulting businesses.
- Salary Breakdown Analysis: Calculate gross salary, employer costs, and hourly rates
- Margin Analysis: Detailed gross and net margin calculations with profit breakdowns
- Strategic Insights: Get actionable recommendations for pricing and business strategy
- Dark Mode Support: Modern UI with light and dark themes
- Responsive Design: Works seamlessly on desktop and mobile devices
- Industry Benchmarks: Compare your rates against industry standards
- Collaborative Sharing: Share calculations with team members and clients
- Real-time Collaboration: Work together on calculations in real-time
- Framework: SvelteKit 2.x with Svelte 5
- Styling: TailwindCSS 4.x with custom UI components
- Charts: LayerChart for data visualisation
- Deployment: Netlify with adapter
- Payments: Stripe integration for Pro features
- Real-time: Socket.io for collaboration
- Type Safety: TypeScript throughout
- Testing: Vitest with Playwright for E2E
- Node.js 18+
- pnpm
- Clone the repository:
git clone <repository-url>
cd compalign- Install dependencies:
pnpm install- Start the development server:
pnpm dev
# or open in browser automatically
pnpm dev --openpnpm dev # Start development server
pnpm build # Build for production
pnpm preview # Preview production build
pnpm check # Type checking with Svelte
pnpm lint # Lint code with ESLint and Prettier
pnpm format # Format code with Prettier
pnpm test # Run unit tests
pnpm test:unit # Run unit tests in watch modeWe welcome contributions! Please see our Contributing Guide for detailed information on how to get started, code style guidelines, and the pull request process.
The application is automatically deployed to Netlify on every push to the main branch. The build process:
- Runs
pnpm buildto create the production bundle - Uses
@sveltejs/adapter-netlifyfor optimised Netlify deployment - Serves static files from the
static/directory - Includes serverless functions for API routes