@barkajs/barka 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -103
- package/dist/cli/create-app.d.ts +1 -1
- package/dist/cli/create-app.d.ts.map +1 -1
- package/dist/cli/create-app.js +1 -1
- package/dist/cli/create-app.js.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
# What is Barka?
|
|
33
33
|
|
|
34
|
-
Barka is the first **progressive CMS built for AI agents**. It bridges the gap between static site generators and traditional content management systems — combining the simplicity of Astro/Hugo (Markdown files, free hosting) with the power of
|
|
34
|
+
Barka is the first **progressive CMS built for AI agents**. It bridges the gap between static site generators and traditional content management systems — combining the simplicity of Astro/Hugo (Markdown files, free hosting) with the power of a full CMS (structured content, page builder, multi-language, admin UI).
|
|
35
35
|
|
|
36
36
|
**Born from real frustration.** Barka was created after extensive work with AI coding agents (Claude Code, Cursor, Codex, Copilot) on existing CMS platforms — Payload, Astro, Drupal, WordPress, Strapi. The problems hit hardest in the scenarios that matter most for marketing teams: multi-language sites across multiple domains, rapid creation of custom landing pages, and high-volume content publishing (blog posts, case studies, service pages). Every existing CMS made these tasks painful with AI — complex configs, binary formats, database-dependent workflows, and opaque abstractions meant that building a simple landing page with AI required fighting the framework instead of creating content.
|
|
37
37
|
|
|
@@ -47,7 +47,7 @@ Barka is the first **progressive CMS built for AI agents**. It bridges the gap b
|
|
|
47
47
|
- **Progressive Complexity** — Start with files only, add a database when you actually need one. No upfront infrastructure decisions.
|
|
48
48
|
- **Zero JavaScript on Frontend** — Public pages ship 0 bytes of JS. Pure server-rendered HTML with perfect Lighthouse scores.
|
|
49
49
|
- **Full Code Ownership** — No vendor lock-in, no SaaS fees. Your content lives in Git. Self-host anywhere or deploy static for free.
|
|
50
|
-
- **
|
|
50
|
+
- **Enterprise-Grade Features** — Page builder with 15 section types, multi-language, multi-site, taxonomy, revisions — without the complexity of traditional CMS platforms.
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ Barka is the first **progressive CMS built for AI agents**. It bridges the gap b
|
|
|
57
57
|
Write content in Markdown with YAML frontmatter. Define content types, taxonomies, and section types in simple YAML config files. Everything is a file — version-controlled, diffable, AI-friendly.
|
|
58
58
|
|
|
59
59
|
**Page Builder — 15 Section Types**
|
|
60
|
-
Compose landing pages from reusable sections: Hero, Features, CTA, Testimonials, FAQ, Pricing, Gallery, Counters, Logo Slider, Text with Image, Blog Listing, Columns, Video, Form, and Text
|
|
60
|
+
Compose landing pages from reusable sections: Hero, Features, CTA, Testimonials, FAQ, Pricing, Gallery, Counters, Logo Slider, Text with Image, Blog Listing, Columns, Video, Form, and Text. Each section supports per-instance settings (background, spacing, width, CSS class).
|
|
61
61
|
|
|
62
62
|
**Single Directory Components (SDC)**
|
|
63
63
|
Each section component lives in its own directory with co-located template (`.tsx`), scoped styles (`.css`), and schema definition (`schema.yaml`). CSS is automatically collected and served via a dynamic `/static/components.css` route — no build step needed.
|
|
@@ -75,8 +75,8 @@ themes/lokatech/components/
|
|
|
75
75
|
└── ... (15 components)
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
**Starter
|
|
79
|
-
|
|
78
|
+
**Starter Templates**
|
|
79
|
+
Ready-made starter templates for different industries. Each starter bundles a premium theme, config, and demo content. After `barka init`, everything is yours to customize — framework updates never touch your files.
|
|
80
80
|
|
|
81
81
|
**Admin UI with HTMX**
|
|
82
82
|
A full content management interface at `/admin` — content CRUD with revisions, section builder, media library, taxonomy management, user accounts, settings. Built with server-rendered HTML + HTMX for instant interactivity. No React, no JS build step.
|
|
@@ -97,7 +97,7 @@ languages:
|
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
**UI strings (theme / admin copy)**
|
|
100
|
-
Navigation labels, mega-menu copy, footer headings, and other **non-content** strings are not stored in Markdown. They live in `config/translations/<lang>.yaml` (dot keys, e.g. `nav.services: "Services"`). At render time the active theme receives a
|
|
100
|
+
Navigation labels, mega-menu copy, footer headings, and other **non-content** strings are not stored in Markdown. They live in `config/translations/<lang>.yaml` (dot keys, e.g. `nav.services: "Services"`). At render time the active theme receives a `t()` helper via theme settings (`themeSettings._t`) with fallback to the site default language.
|
|
101
101
|
|
|
102
102
|
**Base path & internal URLs**
|
|
103
103
|
Templates get **`_basePath`** (empty for the default language, or `/<lang>` when prefixed) and **`_url('/path')`** so links stay correct when the user is on `/pl/...` (logo, nav, footer, CTAs). You don’t hardcode `/pl` in JSX.
|
|
@@ -124,7 +124,7 @@ sites:
|
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
**Themes**
|
|
127
|
-
|
|
127
|
+
Theme system with inheritance and a resolution chain: `active theme → base theme → built-in fallback`. Themes include layouts, section components, partials, and static assets. Slug-specific templates (`page--contact.tsx`), collection listings (`index--articles.tsx`). Shipped inside starters so they're fully customizable.
|
|
128
128
|
|
|
129
129
|
**Bidirectional Sync**
|
|
130
130
|
Edit in files, edit in admin UI — it all stays in sync. `barka sync` merges changes from both directions with conflict detection. Export from DB to files for Git versioning anytime.
|
|
@@ -147,9 +147,9 @@ Barka grows with your project. Start simple, scale up only when needed.
|
|
|
147
147
|
```
|
|
148
148
|
Level 1: Files Only Level 2: Dev Server Level 3: + Database Level 4: Full CMS
|
|
149
149
|
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
|
|
150
|
-
│ content/*.md │ │ barka dev │ │ + SQLite │ │ +
|
|
151
|
-
│ config/*.yaml │ → │ Hot reload │ → │ + Admin UI │ → │ +
|
|
152
|
-
│ barka build │ │ Live preview │ │ + Auth │ │ +
|
|
150
|
+
│ content/*.md │ │ barka dev │ │ + SQLite │ │ + Workflows │
|
|
151
|
+
│ config/*.yaml │ → │ Hot reload │ → │ + Admin UI │ → │ + Approvals │
|
|
152
|
+
│ barka build │ │ Live preview │ │ + Auth │ │ + Scheduling │
|
|
153
153
|
│ Deploy: $0 │ │ Local only │ │ Deploy: $0-5 │ │ Deploy: $5-20 │
|
|
154
154
|
└─────────────────┘ └─────────────────┘ └─────────────────┘ └─────────────────┘
|
|
155
155
|
No DB No DB SQLite SQLite or PG
|
|
@@ -162,7 +162,9 @@ Level 1: Files Only Level 2: Dev Server Level 3: + Database
|
|
|
162
162
|
**Step 1:** Create a new Barka project:
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
|
-
npx
|
|
165
|
+
npx create-barka-app my-site # default: lokatech starter
|
|
166
|
+
npx create-barka-app my-site --starter kadoservices # HR/staffing starter
|
|
167
|
+
npx create-barka-app my-site --starter blank # empty project
|
|
166
168
|
```
|
|
167
169
|
|
|
168
170
|
**Step 2:** Install dependencies and start:
|
|
@@ -173,9 +175,9 @@ npm install
|
|
|
173
175
|
npm run dev
|
|
174
176
|
```
|
|
175
177
|
|
|
176
|
-
**Step
|
|
178
|
+
**Step 3:** Open your site at `http://localhost:3000`
|
|
177
179
|
|
|
178
|
-
**Step
|
|
180
|
+
**Step 4 (optional):** Add a database and admin UI:
|
|
179
181
|
|
|
180
182
|
```bash
|
|
181
183
|
npx barka db:init
|
|
@@ -195,7 +197,7 @@ That's it. No Docker, no PostgreSQL, no Redis — unless you want them later.
|
|
|
195
197
|
|
|
196
198
|
<h2 id="starters">Starter Profiles</h2>
|
|
197
199
|
|
|
198
|
-
Starters are
|
|
200
|
+
Starters are ready-made website templates for different industries. Each starter bundles a premium theme, full configuration, demo content, and translations. Pick a starter, customize it for your company, and you're live. More starters are coming.
|
|
199
201
|
|
|
200
202
|
```bash
|
|
201
203
|
barka starters # list available starters
|
|
@@ -235,8 +237,7 @@ Minimal setup for starting from scratch. Just a homepage, about page, and the ba
|
|
|
235
237
|
|
|
236
238
|
```bash
|
|
237
239
|
# Create a new project
|
|
238
|
-
npx
|
|
239
|
-
cd my-company && npm install
|
|
240
|
+
npx create-barka-app my-company
|
|
240
241
|
|
|
241
242
|
# Pick a starter that matches your industry
|
|
242
243
|
barka init --starter kadoservices --force
|
|
@@ -257,94 +258,156 @@ Framework updates (`npm update @barkajs/barka`) never touch these directories.
|
|
|
257
258
|
|
|
258
259
|
## For AI Coding Agents
|
|
259
260
|
|
|
260
|
-
Copy the prompt below into **Claude Code**, **Cursor**, **Codex**, **Aider**, or any AI coding tool to start building a new Barka site
|
|
261
|
+
Copy the prompt below into **Claude Code**, **Cursor**, **Codex**, **Aider**, or any AI coding tool to start building a new Barka site. The agent will gather requirements, scan your existing website, create a plan, and build a customized site.
|
|
261
262
|
|
|
262
263
|
````markdown
|
|
263
264
|
# Build a new website with Barka CMS
|
|
264
265
|
|
|
265
|
-
|
|
266
|
+
**IMPORTANT: Start by switching to plan mode** (e.g. `/plan` in Claude Code, or ask the
|
|
267
|
+
user to confirm planning before execution). Do NOT write code until the plan is approved.
|
|
266
268
|
|
|
267
|
-
|
|
268
|
-
npx @barkajs/barka create my-site
|
|
269
|
-
cd my-site
|
|
270
|
-
npm install
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
Read the files `CLAUDE.md` and `INVARIANTS.json` in the project root before making
|
|
274
|
-
any changes — they contain the rules you must follow.
|
|
269
|
+
## Phase 1 — Gather requirements
|
|
275
270
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
Before choosing a starter or generating content, ask me (the human) these questions
|
|
279
|
-
and wait for answers:
|
|
271
|
+
Ask me (the human) these questions one by one. Wait for all answers before proceeding.
|
|
280
272
|
|
|
281
273
|
1. **Company / website name** — What is the company called? What should the site title be?
|
|
282
|
-
2. **
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
(
|
|
274
|
+
2. **Existing website URL** — Do you have a current website? Paste the URL so I can:
|
|
275
|
+
- Scan the site structure (pages, services, blog, about, contact)
|
|
276
|
+
- Extract color palette and typography from the design
|
|
277
|
+
- Identify content that should be migrated (service descriptions, team, case studies)
|
|
278
|
+
- Detect languages currently in use
|
|
279
|
+
3. **Logo** — Paste a link to your logo file, or describe the brand colors if no logo yet.
|
|
280
|
+
4. **Main goal** — What is the primary goal of the website?
|
|
281
|
+
(lead generation, brand awareness, recruitment, e-commerce, portfolio, etc.)
|
|
282
|
+
5. **Services / products** — What does the company offer? List the main services or product
|
|
283
|
+
categories. (If I already scanned your website, I'll suggest what I found — confirm or correct.)
|
|
284
|
+
6. **Target audience** — Who are the ideal customers? Which industries?
|
|
285
|
+
7. **Languages** — How many languages are needed and which ones? (e.g. EN + PL, EN only)
|
|
286
|
+
8. **Content plan** — What content do you want to publish regularly?
|
|
287
|
+
(blog posts, case studies, landing pages for campaigns, job offers, etc.)
|
|
288
|
+
|
|
289
|
+
## Phase 2 — Analyze existing site (if URL provided)
|
|
290
|
+
|
|
291
|
+
If the user provided a website URL:
|
|
292
|
+
|
|
293
|
+
1. Use web fetch / browser tools to scan the site
|
|
294
|
+
2. List all pages found (nav structure, footer links, sitemap if available)
|
|
295
|
+
3. Extract the color palette (primary, secondary, accent, background colors)
|
|
296
|
+
4. Note the typography (heading font, body font)
|
|
297
|
+
5. Identify content types present (services, blog, case studies, team, locations, etc.)
|
|
298
|
+
6. Report findings to the user: "I found X pages, Y services, Z blog posts. Colors: #xxx, #yyy.
|
|
299
|
+
Here's what I suggest migrating..."
|
|
300
|
+
7. Ask the user to confirm or adjust
|
|
301
|
+
|
|
302
|
+
## Phase 3 — Create the plan
|
|
303
|
+
|
|
304
|
+
Based on all answers, create a file called `BARKA_PLAN.md` in the project root with:
|
|
290
305
|
|
|
291
|
-
|
|
306
|
+
```markdown
|
|
307
|
+
# Barka Site Plan — [Company Name]
|
|
308
|
+
|
|
309
|
+
## Requirements
|
|
310
|
+
- Company: [name]
|
|
311
|
+
- Goal: [goal]
|
|
312
|
+
- Languages: [list]
|
|
313
|
+
- Existing site: [URL or "none"]
|
|
314
|
+
- Brand colors: primary [#xxx], secondary [#yyy], accent [#zzz]
|
|
315
|
+
|
|
316
|
+
## Starter selection
|
|
317
|
+
- Chosen: [lokatech / kadoservices / blank]
|
|
318
|
+
- Reason: [why this starter fits]
|
|
319
|
+
|
|
320
|
+
## Checklist
|
|
321
|
+
|
|
322
|
+
### Setup
|
|
323
|
+
- [ ] Create project: `npx create-barka-app [name]`
|
|
324
|
+
- [ ] Init starter: `barka init --starter [name] --force`
|
|
325
|
+
- [ ] Configure settings.yaml (site name, URL, colors)
|
|
326
|
+
- [ ] Configure languages.yaml
|
|
327
|
+
- [ ] Configure sites.yaml (domain, localhost)
|
|
328
|
+
|
|
329
|
+
### Content migration
|
|
330
|
+
- [ ] Homepage — hero, features, CTA sections
|
|
331
|
+
- [ ] About page — company story, mission, values
|
|
332
|
+
- [ ] Services — [list each service page]
|
|
333
|
+
- [ ] Blog posts — [number] articles to create/migrate
|
|
334
|
+
- [ ] Case studies — [list if applicable]
|
|
335
|
+
- [ ] Team page — [list members if applicable]
|
|
336
|
+
- [ ] Contact page — address, form, map
|
|
337
|
+
- [ ] [Other pages found on existing site]
|
|
338
|
+
|
|
339
|
+
### Translations (per language)
|
|
340
|
+
- [ ] [lang] — homepage.yaml
|
|
341
|
+
- [ ] [lang] — navigation labels (config/translations/[lang].yaml)
|
|
342
|
+
- [ ] [lang] — service pages
|
|
343
|
+
- [ ] [lang] — about, contact pages
|
|
344
|
+
|
|
345
|
+
### Theme customization
|
|
346
|
+
- [ ] Update brand colors in theme CSS/settings
|
|
347
|
+
- [ ] Replace logo
|
|
348
|
+
- [ ] Adjust typography if needed
|
|
349
|
+
- [ ] Update footer links and social media
|
|
350
|
+
|
|
351
|
+
### Verification
|
|
352
|
+
- [ ] `barka dev` — all pages render correctly
|
|
353
|
+
- [ ] Check all languages and language switcher
|
|
354
|
+
- [ ] Check mobile responsiveness
|
|
355
|
+
- [ ] Verify all navigation links work
|
|
356
|
+
- [ ] `barka build` — static build succeeds
|
|
357
|
+
```
|
|
292
358
|
|
|
293
|
-
|
|
359
|
+
**Show this plan to the user and wait for approval before executing.**
|
|
294
360
|
|
|
295
|
-
|
|
296
|
-
|---------|----------|-------------|
|
|
297
|
-
| `lokatech` | IT services, software houses, consulting, digital agencies | Dark navy + emerald, premium animations |
|
|
298
|
-
| `kadoservices` | HR, staffing, recruitment, outsourcing, business services | Warm amber + deep plum, professional |
|
|
299
|
-
| `blank` | Fully custom design, e-commerce, portfolio, non-standard layouts | Minimal base theme |
|
|
361
|
+
## Phase 4 — Execute the plan
|
|
300
362
|
|
|
301
|
-
|
|
302
|
-
> For now, pick the closest match and customize from there.
|
|
363
|
+
After plan approval:
|
|
303
364
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
365
|
+
1. Set up the project:
|
|
366
|
+
```bash
|
|
367
|
+
npx create-barka-app [name]
|
|
368
|
+
cd [name]
|
|
369
|
+
```
|
|
307
370
|
|
|
308
|
-
|
|
371
|
+
2. Read `CLAUDE.md` and `INVARIANTS.json` — follow these rules strictly.
|
|
309
372
|
|
|
310
|
-
|
|
311
|
-
to match the brand book or provided palette.
|
|
312
|
-
2. Edit `config/languages.yaml` — configure the languages from the requirements.
|
|
313
|
-
3. Edit `config/sites.yaml` — set the production domain and localhost alias.
|
|
314
|
-
4. Update `config/translations/en.yaml` (and other language files) — replace demo
|
|
315
|
-
navigation labels, footer text, and CTA copy with the real company content.
|
|
373
|
+
3. Choose the best starter:
|
|
316
374
|
|
|
317
|
-
|
|
375
|
+
| Starter | Best for | Theme style |
|
|
376
|
+
|---------|----------|-------------|
|
|
377
|
+
| `lokatech` | IT, software, consulting, digital agencies | Dark navy + emerald |
|
|
378
|
+
| `kadoservices` | HR, staffing, recruitment, business services | Warm amber + deep plum |
|
|
379
|
+
| `blank` | Custom design, e-commerce, portfolio | Minimal base theme |
|
|
318
380
|
|
|
319
|
-
|
|
381
|
+
> More starters coming. Pick the closest match and customize.
|
|
320
382
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
- `content/articles/*.md` — blog posts relevant to the industry
|
|
325
|
-
- `content/landing-pages/*.yaml` — campaign landing pages with section builder
|
|
383
|
+
```bash
|
|
384
|
+
barka init --starter <recommended> --force
|
|
385
|
+
```
|
|
326
386
|
|
|
327
|
-
|
|
328
|
-
|
|
387
|
+
4. Customize `config/settings.yaml` — site name, URL, brand colors from scan.
|
|
388
|
+
5. Configure `config/languages.yaml` and `config/translations/*.yaml`.
|
|
389
|
+
6. Replace demo content in `content/` with real pages.
|
|
390
|
+
- For each page migrated from the old site, create the content file
|
|
391
|
+
- For each non-default language, create translated files (`.pl.md`, `.pl.yaml`)
|
|
392
|
+
7. Update `BARKA_PLAN.md` — check off each completed item as `[x]`.
|
|
329
393
|
|
|
330
|
-
##
|
|
394
|
+
## Phase 5 — Verify
|
|
331
395
|
|
|
332
396
|
```bash
|
|
333
397
|
barka dev
|
|
334
398
|
# Open http://localhost:3000
|
|
335
399
|
```
|
|
336
400
|
|
|
337
|
-
|
|
338
|
-
|
|
401
|
+
Check every page, every language, navigation, footer, mobile view.
|
|
402
|
+
Mark verification items as done in `BARKA_PLAN.md`.
|
|
339
403
|
|
|
340
|
-
## Rules
|
|
404
|
+
## Rules
|
|
341
405
|
|
|
342
406
|
- NEVER delete content/, config/, or themes/ directories
|
|
343
|
-
- NEVER hardcode language prefixes (/pl/, /de/) — use `_url()` and `_t()`
|
|
344
|
-
- ALWAYS run `npm test && npm run typecheck` before committing
|
|
407
|
+
- NEVER hardcode language prefixes (/pl/, /de/) — use `_url()` and `_t()`
|
|
345
408
|
- Content files use YAML frontmatter; landing pages are pure YAML with sections
|
|
346
|
-
-
|
|
347
|
-
-
|
|
409
|
+
- UI strings in `config/translations/<lang>.yaml` — not hardcoded in JSX
|
|
410
|
+
- Update `BARKA_PLAN.md` checklist as you complete each step
|
|
348
411
|
````
|
|
349
412
|
|
|
350
413
|
---
|
|
@@ -353,7 +416,7 @@ Check all languages, navigation, footer links, and mobile responsiveness.
|
|
|
353
416
|
|
|
354
417
|
```bash
|
|
355
418
|
barka create <name> # Scaffold a new project
|
|
356
|
-
barka init -s <starter> # Initialize from a starter
|
|
419
|
+
barka init -s <starter> # Initialize from a starter (lokatech, kadoservices, blank)
|
|
357
420
|
barka starters # List available starter profiles
|
|
358
421
|
barka dev # Dev server with hot reload
|
|
359
422
|
barka build # Static HTML output to dist/
|
|
@@ -461,7 +524,7 @@ After changes to routing, i18n, `sites.yaml`, or theme navigation, verify at lea
|
|
|
461
524
|
| **404** | `/missing` vs `/pl/missing` — themed page + matching nav language |
|
|
462
525
|
| **Switcher** | Dropdown lists all configured languages; links use correct prefix |
|
|
463
526
|
|
|
464
|
-
|
|
527
|
+
Use Playwright MCP or manual browser testing to verify all routes.
|
|
465
528
|
|
|
466
529
|
---
|
|
467
530
|
|
|
@@ -487,7 +550,7 @@ The Barka wrapper documents a fuller checklist in `.claude/skills/role-qa-testin
|
|
|
487
550
|
| Content in files | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
|
|
488
551
|
| Admin UI for editors | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Partial | :white_check_mark: |
|
|
489
552
|
| Page builder / sections | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :white_check_mark: |
|
|
490
|
-
| Starter
|
|
553
|
+
| Starter templates | :x: | :x: | :white_check_mark: | :x: | :x: | :x: | :white_check_mark: |
|
|
491
554
|
| Database optional | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
|
|
492
555
|
| Multi-language | Plugin | Built-in | Built-in | Plugin | Plugin | :x: | Built-in |
|
|
493
556
|
| Multi-site | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: | :white_check_mark: |
|
|
@@ -497,7 +560,7 @@ The Barka wrapper documents a fuller checklist in `.claude/skills/role-qa-testin
|
|
|
497
560
|
| Free static hosting | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
|
|
498
561
|
| Self-contained | :x: | :white_check_mark: | :x: | :x: | :x: | Partial | :white_check_mark: |
|
|
499
562
|
| SDC / co-located styles | :white_check_mark: | :x: | :white_check_mark: | :x: | :x: | :x: | :white_check_mark: |
|
|
500
|
-
| Setup complexity | `npm create` | `brew install` | Docker + server | PHP + MySQL | Node + DB | `npm create` | **`npx barka
|
|
563
|
+
| Setup complexity | `npm create` | `brew install` | Docker + server | PHP + MySQL | Node + DB | `npm create` | **`npx create-barka-app`** |
|
|
501
564
|
| Hosting cost | $0 | $0 | $10-50/mo | $5-30/mo | $10-30/mo | $0 | **$0-5/mo** |
|
|
502
565
|
|
|
503
566
|
---
|
|
@@ -506,41 +569,33 @@ The Barka wrapper documents a fuller checklist in `.claude/skills/role-qa-testin
|
|
|
506
569
|
|
|
507
570
|
```
|
|
508
571
|
my-site/
|
|
509
|
-
├── content/ # Your content (Markdown + YAML)
|
|
510
|
-
│ ├── articles/ #
|
|
511
|
-
│ ├── pages/ # Static pages (about, contact
|
|
512
|
-
│ ├── services/ #
|
|
513
|
-
│ ├── case-studies/ #
|
|
572
|
+
├── content/ # Your content (Markdown + YAML)
|
|
573
|
+
│ ├── articles/ # Blog posts (+ .pl.md translations)
|
|
574
|
+
│ ├── pages/ # Static pages (about, contact)
|
|
575
|
+
│ ├── services/ # Service pages
|
|
576
|
+
│ ├── case-studies/ # Case studies
|
|
514
577
|
│ ├── industries/ # Industry pages
|
|
515
|
-
│ ├── landing-pages/ # Homepage and landing pages (YAML
|
|
578
|
+
│ ├── landing-pages/ # Homepage and landing pages (YAML sections)
|
|
516
579
|
│ ├── team/ # Team member profiles
|
|
517
580
|
│ └── locations/ # Office locations
|
|
518
|
-
├── config/ # Configuration (YAML)
|
|
581
|
+
├── config/ # Configuration (YAML)
|
|
519
582
|
│ ├── settings.yaml # Site name, theme, SEO
|
|
520
|
-
│ ├── content-types.yaml #
|
|
521
|
-
│ ├── section-types.yaml # Section
|
|
583
|
+
│ ├── content-types.yaml # Content type definitions
|
|
584
|
+
│ ├── section-types.yaml # Section types for page builder
|
|
522
585
|
│ ├── languages.yaml # en, pl, de
|
|
523
586
|
│ ├── taxonomies.yaml # Vocabularies and terms
|
|
524
587
|
│ ├── sites.yaml # Multi-site domains
|
|
525
588
|
│ └── translations/ # UI strings per locale (en.yaml, pl.yaml, …)
|
|
526
|
-
├── themes/ # Themes (Hono JSX + SDC)
|
|
527
|
-
│ ├── lokatech/ #
|
|
528
|
-
│ │ ├── theme.yaml # Theme config
|
|
529
|
-
│ │ ├── layouts/ #
|
|
530
|
-
│ │ ├── components/ #
|
|
531
|
-
│ │ │ ├── hero/ # hero.tsx + hero.css + schema.yaml
|
|
532
|
-
│ │ │ ├── features/ # features.tsx + features.css + schema.yaml
|
|
533
|
-
│ │ │ └── ...
|
|
589
|
+
├── themes/ # Themes (Hono JSX + SDC)
|
|
590
|
+
│ ├── lokatech/ # Active theme
|
|
591
|
+
│ │ ├── theme.yaml # Theme config
|
|
592
|
+
│ │ ├── layouts/ # Page templates
|
|
593
|
+
│ │ ├── components/ # Section components (hero/, features/, cta/, …)
|
|
534
594
|
│ │ └── static/ # CSS, images, fonts
|
|
535
595
|
│ └── starter/ # Base theme (fallback)
|
|
536
|
-
├──
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
├── src/ # Framework source code
|
|
540
|
-
│ ├── lib/ # Content engine, i18n, themes, SEO
|
|
541
|
-
│ ├── built-in-theme/ # Minimal fallback theme
|
|
542
|
-
│ └── cli/ # CLI commands
|
|
543
|
-
├── public/ # Static assets
|
|
596
|
+
├── node_modules/@barkajs/barka/ # Framework (npm, updatable)
|
|
597
|
+
├── package.json # { "@barkajs/barka": "^0.1.0" }
|
|
598
|
+
├── tsconfig.json # JSX config for theme templates
|
|
544
599
|
└── dist/ # Build output (generated)
|
|
545
600
|
```
|
|
546
601
|
|
package/dist/cli/create-app.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-app.d.ts","sourceRoot":"","sources":["../../src/cli/create-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,
|
|
1
|
+
{"version":3,"file":"create-app.d.ts","sourceRoot":"","sources":["../../src/cli/create-app.ts"],"names":[],"mappings":"AAKA,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAmD1F"}
|
package/dist/cli/create-app.js
CHANGED
|
@@ -24,7 +24,7 @@ export async function createApp(name, options) {
|
|
|
24
24
|
fs.writeFileSync(fullPath, content, 'utf-8');
|
|
25
25
|
}
|
|
26
26
|
console.log(` \x1b[32m✓\x1b[0m Project scaffolded: ${name}\n`);
|
|
27
|
-
const starterName = options.
|
|
27
|
+
const starterName = options.starter ?? 'lokatech';
|
|
28
28
|
const startersDir = resolveStartersDir();
|
|
29
29
|
if (startersDir && fs.existsSync(path.join(startersDir, starterName))) {
|
|
30
30
|
await runInit({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-app.js","sourceRoot":"","sources":["../../src/cli/create-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAgB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,IAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"create-app.js","sourceRoot":"","sources":["../../src/cli/create-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAgB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,M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AC,CAAC;IAC7D,CAAC;IAED,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,EAC5C,eAAe,IAAI;;;;;;;CAOtB,CACE,CAAC;IAEF,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,EACjD;;;;;;;;;;;;;;;;;;;;;;;CAuBH,CACE,CAAC;IAEF,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,EAC9C;;;;;WAKO,IAAI;;;CAGd,CACE,CAAC;IAEF,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qCAAqC,CAAC,EAC3D;;;;;2BAKuB,IAAI;;;;;;CAM9B,CACE,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,IAAI,CAAC,SAAS,CACnB;QACE,IAAI;QACJ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE;YACP,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,eAAe;SAC3B;QACD,YAAY,EAAE;YACZ,gBAAgB,EAAE,QAAQ;SAC3B;KACF,EACD,IAAI,EACJ,CAAC,CACF,GAAG,IAAI,CAAC;AACX,CAAC;AAED,MAAM,aAAa,GAAG;;;;;;CAMrB,CAAC;AAEF,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjB,CAAC;AACF,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -154,7 +154,7 @@ program
|
|
|
154
154
|
program
|
|
155
155
|
.command('create <name>')
|
|
156
156
|
.description('Create a new Barka project')
|
|
157
|
-
.option('-
|
|
157
|
+
.option('-s, --starter <starter>', 'Starter template (lokatech, kadoservices, blank)', 'lokatech')
|
|
158
158
|
.action(async (name, opts) => {
|
|
159
159
|
const { createApp } = await import('./create-app.js');
|
|
160
160
|
await createApp(name, opts);
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,yCAAyC,CAAC;KACtD,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,SAAS,UAAU,CAAC,GAAW;IAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,OAAO;KACJ,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,8CAA8C,CAAC;KAC3D,MAAM,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,CAAC;KAC1D,MAAM,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,SAA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