@kobono-studio/create-webflow-starter v1.0.6
๐ create-webflow-starter
A powerful CLI tool to scaffold modern Webflow projects using Vite and deploy them to GitHub โ all with a single command. Whether you're a beginner or a pro, this tool gets you up and running in minutes.
โจ Features
- โ Interactive prompts to set up your project
- โ๏ธ Generates
vite.config.js,starter.config.js, ESLint/Prettier config, andpackage.json - ๐งฑ Adds plugins:
- ๐ Git + GitHub SSH integration with automatic key generation
- ๐ Optional GitHub deployment (including split repos for private source/public dist)
- ๐ฆ Installs dependencies and shows you how to start the dev server manually
๐ก Why use this tool?
Using create-webflow-starter simplifies the entire workflow of managing Webflow projects with custom code and modern development tools.
๐ Benefits
- ๐ฏ One command setup: Everything is scaffolded and configured in minutes.
- ๐ง Smart deployment: Handles GitHub repos, SSH keys, and CDN setup automatically.
- ๐งช Works out of the box: ESLint, Prettier, and Vite pre-configured.
- ๐ Versioned deployment: Paired with Git versioning + jsDelivr delivery.
๐ Powered by
โค vite-plugin-webflow-bundler
- ๐ง Smart script loading: Automatically chooses between
localhostand CDN depending on where your Webflow page is opened. - ๐ Hot-reload compatible: Works with
vite devfor instant local updates. - ๐ Copy-paste ready: Generates loader snippets you can paste into Webflow custom code areas.
- ๐ Generates manifest: Includes all scripts and styles, versioned for CDN use.
โค vite-plugin-github-deploy
- ๐ Handles SSH + GitHub auth
- โ๏ธ Creates public/private repos via GitHub API
- ๐ Pushes build to GitHub for jsDelivr CDN delivery
๐ Quick Start
npm install -g @kobono-studio/create-webflow-starter
create-webflow-starter
# or
npx @kobono-studio/create-webflow-starter๐ก If you get a permission error, you may need to prefix the install command with
sudo:
sudo npm install -g @kobono-studio/create-webflow-starterYouโll be prompted for:
- ๐ Project name
- ๐ Whether to create a new folder
- ๐ง Git deployment mode:
nonepublic-onlysplit
- (if needed) GitHub user/org, branch name, public repo name
- ๐ Auto-setup of SSH key and GitHub authentication
# Once it's done, follow the instructions:
cd my-project
npm run dev๐งฐ Installation Requirements
โ Node.js
Install from https://nodejs.org โ minimum v18.
โ Git + GitHub CLI
macOS
brew install git
brew install ghYou may need to prefix with
sudoif you get a permissions error:
sudo brew install git
sudo brew install ghWindows
Then run:
gh auth loginChoose SSH when asked for protocol. If you don't have a key, one will be generated for you.
๐ง Git Modes Explained
| Mode | Description |
|---|---|
none | No remote Git setup |
public-only | Push entire project to one public repo |
split | Push source to private repo, dist/ to public CDN repo |
๐งฉ Perfect for:
public-only: open sourcesplit: Webflow assets via jsDelivr
๐ Project Structure
my-project/
โโโ dist/
โโโ public/
โโโ src/
โ โโโ css/
โ โโโ script.js
โโโ .eslintignore
โโโ .gitignore
โโโ .prettierignore
โโโ .prettierrc
โโโ eslint.config.js
โโโ index.html
โโโ package.json
โโโ starter.config.js
โโโ vite.config.jsโ๏ธ Config Example: starter.config.js
export default {
cdn: {
baseUrl: 'https://cdn.jsdelivr.net/gh',
user: 'your-github-user',
repo: 'your-public-repo',
branch: 'main',
org: true, // optional
},
deploy: {
mode: 'split',
publicRepo: 'webflow-assets',
privateRepo: 'source-code-repo',
branch: 'main',
},
}๐ Workflow Summary
- ๐ You launch:
npx create-webflow-starter - ๐ง You answer a few questions
- ๐ If needed:
- SSH key is created
- GitHub auth is verified
- ๐ฆ Project is scaffolded
- ๐ Git repos are created if required
- ๐จโ๐ป Final instructions are shown โ just cd into your folder (if needed) and run npm run dev!
๐งช Webflow Integration Preview
After running:
npm run devVisit:
http://localhost:3000/webflowYou'll get a dedicated interface with:
- ๐ A visual preview of your loaders (CSS & JS)
- ๐ Copy-paste buttons for each loader
- โ
Snippets that switch automatically between:
- Local dev (
localhost) - Production CDN (
jsDelivr)
- Local dev (
This makes it super easy to integrate modern, versioned scripts directly into Webflow's custom code areas โ no guesswork, no manual rewriting.
๐ง Author
Made with โค๏ธ by Pierre Lovenfosse
๐ License
MIT โ ยฉ Pierre Lovenfosse