Ionfold documentation
Version 1.0.0 · Portable HTML build
1. Introduction
Ionfold is a Bootstrap 5.3.9 admin interface for SaaS applications. Six dashboards and operational modules provide realistic local-only interface examples. This package does not implement a backend, account security, payment processing, email sending, live AI requests or network chat.
2. Installation
Open directly — no server required
Extract the entire ZIP and double-click dist/index.html in the development package, or index.html inside the portable Ionfold folder. Keep all assets and page folders together. The compiled version uses local classic scripts and does not require JavaScript module loading, npm, or a web server.
Optional static HTTP server
Extract the ZIP, open a terminal in the project root, and serve the compiled directory.
python3 -m http.server 8000 --directory dist
On Windows use py instead of python3. Open http://localhost:8000/. No Node installation, npm registry, database or network dependencies are needed for the compiled demo.
XAMPP
Copy the contents of dist into C:\xampp\htdocs\ionfold\. Start Apache and visit http://localhost/ionfold/. MySQL is not needed.
3. Source and build
python3 scripts/build.py # Optional aliases: npm run build, npm run dev
Optional Vite/Sass workflow
With Node 22.12+ and npm registry access, install the development dependencies and run:
npm install npm run dev:vite npm run build:vite
The Vite build writes vite-dist/. The optional pipeline was verified with Node 24, Sass 1.108 and Vite 7.3 (0 npm advisories at release). The npm scripts call scripts/py.mjs, which finds python3, python or py -3 automatically, so they also work on Windows. npm run sass:build overwrites dist/assets/css/ionfold.css with a compressed build; rerun python scripts/build.py for the readable version.
The Python standard-library builder reads the independent src/routes.json manifest and writes static HTML entry points with relative links, the shared navigation and asset references. It assembles CSS from the SCSS-compatible partials, generates the registry, and bundles modular source into dist/assets/js/app.bundle.js as a classic script. The original source remains in src/assets/js/. Editing the build script or source modules followed by rebuilding regenerates dist. Do not edit generated files only.
| Location | Purpose |
|---|---|
scripts/build.py | Route registry, shared shell, asset copy |
src/scss/ | Tokens, component rules and release overrides |
core.js | Navigation, themes, storage, notifications, modals, CSV |
data.js | Fictional seed records and dashboard config |
charts.js | SVG visualization helpers |
features.js | Local operational and app controllers |
catalog.js | Components, auth, forms and landing |
dist/ | Compiled static site |
Customize the HTML
Edit src/templates/landing.html to change the landing hero, demo cards and feature sections. The production landing is real HTML and is no longer overwritten by JavaScript. Edit src/templates/page.html for document-level markup, meta tags and asset links; the generator provides the shared sidebar, topbar and dialogs from scripts/build.py. Dashboard and application content is rendered by the relevant JavaScript controller; editing generated inner content alone will not persist.
Typical workflow
- Edit
src/scss/_tokens.scssto change theme colors. - Edit a dashboard's labels and sample values in
src/assets/js/data.js. - Edit the relevant controller in
charts.js,features.js,catalog.jsorrelease.jsto change interactive markup. - Rebuild using
python3 scripts/build.py(Windows:py scripts/build.py). Keep a backup of your source.
Replace brand artwork in brand/ and the favicon in src/assets/brand/. Edit the sidebar and landing mark separately if replacing the logo.
4. Design customization
Customize CSS variables starting with --nx-. Light and dark modes use Bootstrap's data-bs-theme. Accent, layout and text direction are represented as root attributes. The Appearance panel persists preferences locally. When RTL is selected, the page swaps Bootstrap's official bootstrap.rtl.min.css (same version) in for bootstrap.min.css, so utilities such as ms-*, me-*, text-end, offcanvas, form controls and dropdowns mirror natively. Charts intentionally keep a left-to-right time axis. RTL is layout support only: interface text remains English and no translations are included. Compact uses a narrow labelled sidebar; mini uses an icon rail; horizontal uses a scrollable module strip. Ionfold ships Geist and Geist Mono (SIL OFL 1.1) as local WOFF2 files in assets/fonts/, with system fallbacks.
:root {
--nx-primary: #2548d8;
--nx-teal: #159d8d;
--nx-border: #e4e7ed;
}5. Pages and navigation
The six dashboard paths are under dashboards/. The sidebar opens each module and its relevant pages. The Ctrl+K command palette locates all 112 entries, including 10 expansion pages and three additional modules. Search also indexes selected local records. Use Up/Down and Enter to browse and open results. Detail pages accept a fictional ?id= query parameter and handle missing records.
To add a page, extend src/routes.json and the relevant page controller, provide a corresponding controller, update the expected route count and verify all relative links.
6. Chart configuration
The custom SVG line chart uses repeated values for plateau sections and linear connections for slopes. The chart shows sample values, a crosshair, legends, and a data table. Hover or focus the chart and use arrow keys to explore. The gauge calculates its filled tick count from a sample percentage; the segmented distribution shows explicitly labeled proportions. Change the configuration in data.js and functions in charts.js.
Sample analytics mode uses illustrative history and date ranges. Local records mode computes KPI values, gauges and distributions from the current local workspace across all dates; the historical trend chart remains illustrative. Replace these fixtures with consistent, real backend aggregates before actual business use.
7. Local demo data
Tables use fictional records. You can create, edit, remove, filter, sort and export supported records. CSV output escapes quotes and neutralizes formula-like prefixes. Calendar and Kanban update local records. Mailbox and chat create local demo messages or drafts, not communications to another person. Use Appearance → Reset demo records to clear the workspace sample records. The reset clears demo records and local workflow/assistant/notification states for both workspaces. Other settings can be reset through the appearance controls or browser site data.
Storage keys use the ionfold:v1: prefix. Storage behavior under file URLs varies by browser and may be isolated per page. Use the HTTP preview for reliable shared state. Browser storage is not encrypted or an authorization boundary. The sample repository provides basic record-shape checks, not a full database schema or migration system.
8. Integrate a backend
Replace the local repository in core.js with your own authenticated API adapter. Implement server-side access controls, validation, CSRF protection, audit logs, invoice/payment logic, API quota enforcement, secure file storage and real communication services independently. Never treat the demo role matrix as authorization or the demo login as authentication.
9. Hosting
For an authorized public deployment, place the contents of dist in a static document root, configure HTTPS, then test both the landing page and deep-linked dashboard routes. Use a hosting environment appropriate for your project. Do not place real customer data in the demo. Do not expose the development files or planning package to visitors. Ensure .js files are served with a JavaScript MIME type. The build has no API endpoints.
10. Troubleshooting
| Symptom | Check |
|---|---|
| Blank content | Confirm that the full ZIP was extracted and assets/js/app.bundle.js exists. Check the browser console. If your browser blocks local files, use the optional HTTP preview. |
| Broken styles | Ensure assets/vendor and assets/css are deployed unchanged. |
| Old preferences | Reset appearance or clear Ionfold site data. |
| Missing demo previews | Ensure assets/previews was included. |
| Wrong detail ID | Return to the relevant list and select an existing record. |
11. Release status and licenses
See release-reports/12_FINAL_RELEASE_STATUS.md in the development package for the test results and known limits. Bootstrap and the bundled Popper are MIT-licensed, and their notices are in licenses/. No font binaries or stock photos are included. The demo is a frontend only. It is not a secure backend, and browser storage is not a secure data store.
12. Common customizations
Change the logo
The sidebar and topbar mark is the inline SVG in brand() inside scripts/build.py. The landing page mark is in src/templates/landing.html, the favicon is src/assets/brand/favicon.svg, and marketplace artwork lives in brand/. Replace all of them, then rebuild.
Colors and typography
Edit the --nx-* variables in src/scss/_tokens.scss. Accent palettes are the [data-accent=…] blocks in the same file. The font stack starts with Geist (local WOFF2 in src/assets/fonts/, declared in _tokens.scss) and falls back to system fonts. To use a web font, add the font files to src/assets/ with their licence, declare an @font-face in _tokens.scss, and keep the system fallbacks.
Add a sidebar menu item or a new page
- Add an entry to
src/routes.jsonwith a uniqueid, apathsuch asprojects/roadmap.html, atitle, and agroupequal to the folder name. The build fails if the group does not match the folder. - The sidebar is generated from the route manifest. A new route appears under its group automatically. To add a whole new group, add it to
GROUPSand to the section list insidebar()inscripts/build.py. - Render the page body in a controller.
src/assets/js/app.jstriesreleasePage(),feature()andcatalog()in turn. Add a branch for your path in the relevant file, writing intorootand escaping user text with the existingesc()helper. - Run
python scripts/build.py, thenpython tests/static_check.py.
Add a dashboard
Add a dashboards/name.html route and a matching name entry in dashboardConfigs in src/assets/js/data.js, copying the shape of an existing dashboard (KPIs, series, gauge and table). dashboard(name) in charts.js renders it.
Customize charts
Series values, labels and colors are in the dashboard config in data.js. The SVG line chart, segmented gauge and distribution helpers are in charts.js. Keep the <table> fallback and the aria-label when you change a chart, so screen-reader users still get the data.
13. Browser compatibility
Tested in release 1.0.0 with Playwright: Chromium 149, Google Chrome (stable), Microsoft Edge (stable), Firefox and WebKit (the Safari engine) on Windows. Real Safari on macOS or iOS and physical mobile devices were not tested. Bootstrap 5.3 supports current evergreen browsers; Internet Explorer is not supported.
Opening files directly (file://)
- Pages, styles, scripts, charts and preview images load without a server or internet connection.
- Chromium-based browsers and Firefox may keep
localStorageseparate for each file, or not keep it at all, so demo edits may not carry between pages. Use HTTP for shared demo state. - Clipboard copy needs a secure context (HTTPS or localhost) in most browsers, so copy buttons may fail under
file://. - CSV export downloads work in Chromium and Firefox. Some browsers ask before saving.
14. Credits
Bootstrap 5.3.9 (MIT, The Bootstrap Authors), which includes Popper 2 (MIT). The licence texts are in licenses/. Icons, charts, illustrations and demo data are original to Ionfold. Names, companies and figures in the demo are fictional.