Get Started
Install and set up Swifty in seconds.
Ready to build something awesome? Let's get you up and running with Swifty in no time!
Installation
First, grab Swifty from npm:
npm install @daz4126/swifty
Create Your First Site
Swifty comes with a handy init command that sets up a fresh project with all the folders you need:
npx swifty init
This creates a nice starter structure with example pages, layouts, and styles to play with. Think of it as your creative sandbox.
Start Developing
Fire up the development server and watch your site come to life:
npx swifty start
Head over to localhost:3000 and boom - you've got a website! The dev server includes live reload, so every time you save a file, your browser refreshes automatically. No more manual refreshing like it's 2005.
Build for Production
When you're ready to ship your masterpiece to the world:
npx swifty build
This creates a squeaky-clean dist/ folder with optimized HTML, CSS, JS, and images - no development scripts, no cruft. Just pure, fast static files ready for deployment.
That's It!
Seriously, that's all you need to get going. Swifty handles the boring stuff so you can focus on creating great content. Check out the rest of the docs to discover layouts, partials, and all the other goodies.