SwiftMarket offers a modern and efficient e-commerce platform, leveraging the power of SvelteKit for a highly performant frontend. It integrates Pocketbase as a lightweight, self-hosted backend, providing a real-time database and authentication system. For secure and seamless transactions, Stripe is incorporated as the payment gateway.
Key Features:
- SvelteKit Frontend: Built with SvelteKit, known for its reactivity and small bundle sizes, ensuring a fast and smooth user experience.
- Pocketbase Backend: Utilizes Pocketbase for a robust and easy-to-manage backend, offering a database, authentication, and file storage out of the box. This simplifies backend development and deployment.
- Stripe Payments: Securely handles all payment processing through Stripe, supporting various payment methods and ensuring PCI compliance.
- Rapid Development: The combination of SvelteKit and Pocketbase allows for quicker iteration and development cycles, making it ideal for startups and projects requiring a fast time-to-market.
- Performance-Oriented: Designed with performance in mind, from the efficient frontend framework to the optimized backend data handling.
Use Cases: SwiftMarket is suitable for developers and businesses looking to quickly launch an online store with a modern tech stack. It's particularly beneficial for:
- Small to medium-sized e-commerce businesses.
- Developers who prefer Svelte/SvelteKit and want a straightforward backend solution.
- Projects where performance and development speed are critical.
- Anyone needing a customizable e-commerce platform with integrated payment processing.
Getting Started:
- Clone the repository:
git clone https://github.com/SwiftMarket/swiftmarket-sveltekit.git - Navigate to the project directory:
cd swiftmarket-sveltekit - Install dependencies:
pnpm install - Configure environment variables: Copy
.env.exampleto.envand updatePUBLIC_STRIPE_KEYandSECRET_STRIPE_KEYfrom your Stripe dashboard. - Set up Pocketbase:
- Download the Pocketbase executable from
pocketbase.io/docs/. - Serve Pocketbase:
./pocketbase serve - Access the Admin UI, create an admin account.
- Download
pb_schema.jsonfrom the SwiftMarket repository. - Import collections via Settings/Import collections in the Pocketbase Admin UI.
- Download the Pocketbase executable from
- Start development server:
pnpm run dev
Building for Production:
To create a production-ready version of the application, use pnpm run build. You can preview the build with pnpm run preview. For deployment, consider installing an appropriate SvelteKit adapter for your target environment.




