Generated output — this is a static snapshot rendered from .vibekb/. The
.vibekb/ content is the source of truth. See Reference for provenance.
Files that matter
The files worth understanding
A curated list — not the whole repository. Each file says what it does, when it runs, and how safe it is to change.
auth_lib.php
High impact Verified from source
Core auth, PDO, schema helpers, credits, settings, CSRF/session utilities.
- Runs when
- Included by nearly all authenticated flows.
- Depends on
config/load_env.php
- Depended on by
-
auth_check.php; Most arcana.*.php pages
- Test after change
- Login, register, credit check/consume, maintenance flag.
auth_check.php
High impact Verified from source
Require login and honor maintenance mode.
- Runs when
- Included by protected pages.
- Depends on
auth_lib.php
- Depended on by
-
Generator, gallery, dashboard, queue submit
- Test after change
- Hit a protected page logged out and in maintenance.
arcana.image.generator.php
High impact Verified from source
Primary user-facing generation UI and queue enqueue.
- Runs when
- User opens/submits generator.
- Depends on
auth_check.php arcana.plan_tiers.php
- Depended on by
-
End-user generation experience
- Test after change
- Enqueue a job with and without portraits/styles; confirm JSON + queue row.
arcana.queue.processor.cron.parallel.v3.dynamicstyle.php
High impact Verified from source
Best-evidence current worker: parallel Gemini, styles, retries, credits, notifications.
- Runs when
- Cron/CLI execution.
- Depends on
auth_lib.php includes/b2_helpers.php
- Depended on by
-
Completed renders
- Test after change
- Process a pending queue row end-to-end; verify credit and gallery.
arcana.image.gallery.php
Understand dependencies first Verified from source
User gallery browse/search/sort/paginate/email/delete.
- Runs when
- User visits gallery.
- Depends on
auth_check.php includes/b2_helpers.php
- Depended on by
-
Post-generation UX
- Test after change
- List, search, delete, email a render.
arcana.plan_tiers.php
Understand dependencies first Verified from source
Normalize plan_type into capability flags.
- Runs when
- Generator and other gated UIs.
- Depended on by
-
arcana.image.generator.php
- Test after change
- Check flags for apprentice/starter/creator users.
stripe_lib.php
High impact Verified from source
Stripe SDK helpers for products, checkout, webhooks, credit grants.
- Runs when
- Pricing, webhooks, subscription pages.
- Depends on
vendor/autoload.php .env
- Depended on by
-
arcana.pricing.php; arcana.stripe.endpoint.php
- Test after change
- Create checkout session in test mode; process a test webhook.
webhook.php
High impact Verified from source
Lightweight Stripe webhook for checkout session credit grants.
- Runs when
- Stripe POSTs to this URL if configured.
- Depends on
auth_lib.php
- Depended on by
-
Credit pack fulfillment (if this endpoint is live)
- Test after change
- Signed test event grants credits once.
includes/b2_helpers.php
High impact Verified from source
Backblaze B2 upload/delete/public URL helpers.
- Runs when
- Worker save and gallery/admin URL/delete paths.
- Depends on
config/backblaze.php
- Depended on by
-
Workers; Gallery
- Test after change
- Upload and delete a test object; resolve a public URL.
arcana.admin/admin_check.php
High impact Verified from source
Admin gate and admin schema/logging bootstrap.
- Runs when
- Any admin page.
- Depends on
auth_lib.php
- Depended on by
-
arcana.admin/*
- Test after change
- Non-admin denied; admin allowed.
config/load_env.php
High impact Verified from source
Load .env key/value pairs into environment.
- Runs when
- Included by pages that need config.
- Depends on
.env
- Depended on by
-
Auth DB connect paths; integrations
- Test after change
- Confirm keys present without exposing values.
index.php
Presentation only Verified from source
Public marketing landing with mobile redirect.
- Runs when
- Anonymous visitors hit site root.
- Depended on by
-
Marketing acquisition
- Test after change
- Load desktop and mobile UA.
.env.example
Low impact Verified from source
Documents required environment key names without secrets.
- Runs when
- Operator setup.
- Depended on by
-
Deployment
- Test after change
- Ensure no real secrets were added.
arcana.queue.processor.php
Understand dependencies first Verified from source
Sequential/manual queue processor variant.
- Runs when
- Manual or legacy cron.
- Depends on
auth_lib.php
- Depended on by
-
Legacy ops paths
- Test after change
- Process one pending job.
login.php
Moderate impact Verified from source
Alternate/duplicate login entry point used by auth_check default redirect.
- Runs when
- Redirect from auth_check or direct visit.
- Depends on
auth_lib.php
- Depended on by
-
auth_check.php
- Test after change
- Login via both login.php and arcana.login.php.