Databases you design, browse and script; an open-source desktop database built from scratch in pure Rust.
Tables, relationships, layouts, calculations, scripts, find and sort, in a familiar
workflow with Browse, Find, Layout and Preview modes. It opens and saves FileMaker
.fmp12 files, runs natively on Windows, macOS and Linux, and in the browser
through WebAssembly.
Try BaseCraft in your browser · Progress · The .fmp12 format · CLI and MCP
Status · Progress to 1.0 · Clean room · Command line · Web version · Try it · Testing
🇫🇷 BaseCraft est une recréation libre, en Rust, de FileMaker Pro 26 : lecture et écriture des fichiers
.fmp12, moteur de calcul, scripts, layouts et interface. Avancement détaillé dans PROGRESS.md.
Not affiliated with Claris. FileMaker is a trademark of Claris International Inc. BaseCraft contains no Claris code, binaries, artwork, themes, templates or documentation text. File-format compatibility comes from reverse engineering done for interoperability.
Early development. See PROGRESS.md for the live feature matrix.
| Area | State |
|---|---|
.fmp12 reading: sectors, byte code, text, tables, fields, records |
✅ |
.fmp12 reading: field options, relationships, scripts, value lists, layouts, calculations |
✅ (verified against FileMaker's XML) |
Calculation engine (crates/calc): all 234 functions; 1,934 of 1,987 oracle expressions match FileMaker Pro 26 |
🚧 |
Data engine (crates/engine): records, find, sort, calculated fields |
🚧 |
| GUI (egui): read-only viewer, layouts drawn in form view | 🚧 |
.fmp12 writing: unchanged rewrite, new/edited/deleted records |
🚧 |
| Look of the windows next to FileMaker Pro 26 (VISUAL.md) | Visually verified: 64 of 84 windows |
Estimated overall progress: ~83 % (▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░) · revised 2026-12-01
This is a weighted estimate over the milestones that make up version 1.0 (a faithful single-user FileMaker Pro). Server hosting (M9) is excluded. The earlier figure (~96 %) counted features as done once they worked; this one is anchored on the measured coverage below and leaves room for what has never been compared with FileMaker Pro (look of layouts, print output, data engine edge cases). Details live in PROGRESS.md.
| Milestone | Weight | Done | Basis |
|---|---|---|---|
| M0 Bootstrap | 2 | 100 % | |
M1 Read .fmp12 |
15 | 95 % | schema, scripts, layouts checked against FileMaker's XML on 66 templates |
| M2 Calculation engine | 12 | 90 % | 197 full + 37 partial of 234 functions; 1,934 of 1,987 oracle rows |
| M3 Data engine | 12 | 85 % | find/sort/summaries spec-backed; validation and lookups less measured |
| M4 GUI (browse/find/views) | 15 | 75 % | never compared object by object with FileMaker Pro |
| M5 Script engine | 12 | 85 % | 130 full + 28 partial of 158 runnable steps; 97 + 8 of 138 Get flags; 22 of 26 triggers |
| M6 Layout mode | 10 | 75 % | 15 + 4 of 19 object types, 3 + 3 of 7 control styles |
M7 Write .fmp12 |
10 | 85 % | FileMaker Pro opens the files written; saves write the open file in place, page by page, as FileMaker does (STO-05 v1.1, the default; in_place_saves=false in the settings file or CLI --whole-file writes a whole new file instead) |
| M8 Import/export, print, security… | 12 | 70 % | print and PDF output never compared; 69 of 300 error codes raised |
The clean-room rework (below) is a second, separate measure: how much of the code is re-derived from black-box specifications. 125 of 131 milestones are specified, and 101 are already integrated (fully or in part) into the engine.
BaseCraft is being re-derived, milestone by milestone, from specifications written only from black-box observation of FileMaker Pro. A separate analyst writes each spec. It is reviewed, then implemented by a fresh agent that sees only the spec, and finally integrated into the engine. Details and rules: docs/CLEANROOM.md.
Specified: 123 of 131 milestones (▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░) · started 2026-11-28
Usable: 52 of 79 capabilities through the UI, checked by a from-scratch user journey test: docs/USABILITY.md
| Milestone | Spec | Clean crate | Integrated |
|---|---|---|---|
| CAL-15 Date and time | ✅ v1.3 | ✅ cal15: 1143 vectors |
✅ |
| LOC-01 File locale | ✅ v1.3 | ✅ locale: all vectors |
🟡 partial: file locale for conversions and Evaluate; typed formulas read with the active locale from the file's Data entry choice (system locale fixed at fr-FR, no File Options dialog) |
| CAL-02 Numbers and conversions | ✅ v1.4 | ✅ cal02: 923 cells |
✅ |
| CAL-01 Formula syntax | ✅ v1.1 | ✅ cal01: 472 vectors (v1.0) |
✅ every formula read through cal01::parse |
| CAL-04 Calculation errors | ✅ v1.1 | ✅ in cal01: 127 vectors (v1.0) |
✅ error values on cal01's evaluator; stored ? |
| CAL-03 Evaluation and dependencies | ✅ v1.0 | ✅ cal01 |
🟡 stored results and recalculation through cal01::recalc; auto-enter references |
| STO-01 File header | ✅ v1.1 | ✅ fmstore: 74 vectors |
✅ fmp12 opening and writing |
| STO-02 Pages and chaining | ✅ v1.0 | ✅ fmstore: 39 vectors |
✅ fmp12 reading |
| STO-03a Page instruction stream | ✅ v1.1 | ✅ fmstore: 37 vectors |
🟡 fmp12 reading |
| STO-03b Key order and lookup | ✅ v1.0 | ✅ fmstore: 23 vectors + multi-level tests |
🟡 fmp12 reading |
| STO-03c What FileMaker accepts and writes | ✅ v1.0 | ✅ fmstore: 42 vectors + random updates |
✅ fmp12 writer |
| STO-04 Value encodings | ✅ v1.0 | ✅ fmstore: 83 vectors |
🟡 fmp12 text (one-character CJK texts kept) |
| SCH-01 Tables | ✅ v1.0 | ✅ fmstore: 69 vectors |
— |
| SCH-02 Fields | ✅ v1.0 | ✅ fmstore: 65 vectors |
— |
| REC-01 Record storage | ✅ v1.1 | ✅ fmstore: 16 vectors |
— |
| REC-03a Index structure and keys | ✅ v1.0 | ✅ fmstore: 29 vectors |
🟡 text keys |
| SCH-03 Field options | ✅ v1.1 | ✅ fmstore: 237 checks |
— |
| REC-03b Index upkeep | ✅ v1.0 | ✅ fmstore: 15 checks |
✅ record saves |
| CAL-42a Stored formulas: structure | ✅ v1.0 | ✅ fmformula |
🟡 fmp12::calc reads every stored formula and checks and writes 05; 06 and forms outside the spec on the earlier codec |
| CAL-42b Stored formulas: codes | ✅ v1.0 | ✅ fmformula: 230 functions, 138 Get |
🟡 through CAL-42a; codes outside §4 on the earlier codec |
| SCH-04 Occurrences and relationships | ✅ v1.0 | ✅ fmstore: 44 checks |
🟡 fmp12 reading |
| CAL-10a Text functions (core) | ✅ v1.0 | ✅ cal01: 892 rows |
✅ calc |
| CAL-10b Values, words, filters | ✅ v1.0 | ✅ cal01: 550 rows |
✅ calc |
| CAL-12 Number functions | ✅ v1.0 | ✅ cal01: 314 rows |
🟡 calc (not Pi, SetPrecision) |
| CAL-17 Logical functions | ✅ v1.0 | ✅ cal01: 303 rows |
🟡 If/Case/Choose, While, Evaluate, IsValid… on cal01 |
| REC-03c Full weight table | ✅ v1.0 | ✅ fmcollate |
✅ calc, engine, fmp12 |
| FND-01 Find requests | ✅ v1.1 | ✅ fmfind: 186 vectors |
✅ engine |
| FND-04 Record sort | ✅ v1.0 | ✅ fmfind: 73 vectors |
✅ engine |
| FND-03 Related finds | ✅ v1.0 | ✅ fmfind: 41 vectors |
✅ engine |
| FND-05 Found sets | ✅ v1.0 | ✅ fmfind: 34 vectors |
✅ engine |
| SCH-06 Value lists | ✅ v1.0 | ✅ fmstore: 35 vectors |
— |
| SCH-07 Custom functions | ✅ v1.0 | ✅ fmstore + fmformula + cal01 |
🟡 fmp12 reading |
| REC-06 Serials and UUIDs | ✅ v1.2 | ✅ fmstore + cal01 |
✅ engine (creation, commit, duplicate, 0C on save), app, scripts, Get ( UUID ) |
| REC-02 Global fields | ✅ v1.2 | ✅ fmstore + fmfind |
🟡 t/08 read and written by fmstore, no record opening, unstored calculations, relationships (a typed global on field exit), finds; « Ne pas évaluer… » on calculations not read |
| REC-07 Locking and transactions | ✅ v1.2 | ✅ fmstore |
✅ script (revert on error, editor check, locks between windows; records copied at Open Transaction) |
| SCR-01 Script storage | ✅ v1.1 | ✅ fmstore |
🟡 branch positions, stored sort orders, name index keys |
| SCR-02 Script execution | ✅ v1.0 (part 1) | ✅ fmstore::runtime |
✅ call stack, variables (callstack) |
| SCR-03 / SCR-05 Errors | ✅ v1.0 | ✅ fmstore::runtime |
🟡 LastError, error capture, alerts, the error state around trigger scripts (callstack) |
| SCR-10 Control steps | ✅ v1.0 | ✅ fmstore |
✅ |
| SCR-14 Records steps | ✅ v1.0 | ✅ fmstore |
🟡 New, Duplicate, Open, Delete, Revert; Commit's « skip validation »; Set Field By Name's names (recordsteps) |
| CAL-33 / CAL-36 Get functions | ✅ v1.0 | ✅ cal01 |
— |
| CAL-16 Aggregate functions | ✅ v1.0 | ✅ cal01 |
🟡 Sum, Count, Average, StDev…, List, Last on cal01; Min/Max calc's |
| CAL-18 JSON functions | ✅ v1.3 | ✅ cal01 |
✅ calc |
| SCR-13 / SCR-15 Fields and found-set steps | ✅ v1.0 | ✅ fmstore |
🟡 Omit Multiple's count, stored sort orders and find requests, Modify Last Find (foundsteps); Replace Field Contents' serials (fieldsteps); where insert steps write (editsteps) |
| LAY-01 Layouts and parts | ✅ v1.2 | ✅ fmstore |
— |
| SCR-11 Navigation steps | ✅ v1.1 | ✅ fmstore |
🟡 Go to Record's destination (foundsteps); Go to Layout, Portal Row, Object and Related Record rules (navsteps) |
| REC-04 Number and date index keys | ✅ v1.0 | ✅ fmstore |
🟡 record saves (fr-FR keys) |
| REC-08 Containers | ✅ v1.3 | ✅ fmstore |
🟡 record values (hex ids), new streams (PNG, JPEG, GIF, DPI_), key 04 MD5 and dedupe, renamed files, GetAsText of open storage |
| STO-05 Consistent writing | ✅ v1.1 | ✅ fmstore |
✅ in place by default (app and CLI --in-place); check at an unclean opening with Recuperer.log, damaged files refused; opt-out in_place_saves=false / --whole-file; encrypted files and the web build are written whole |
| SCR-21 / 20 / 16 Misc, menu, window steps | ✅ v1.0 | ✅ fmstore |
🟡 Show/Hide, View As, zoom levels; the window a step names, Move/Resize geometry, Show Custom Dialog's input commit, new window names, Resize to Fit (windowsteps) |
| SCH-05 External data sources | ✅ v1.1 | ✅ fmstore |
— |
| SCR-17 File steps | ✅ v1.0 | ✅ fmstore |
🟡 Write and Read formats, what a read takes (datasteps) |
| APP-02 File options | ✅ v1.0 | ✅ fmstore |
— |
| FND-06 Summary fields | ✅ v1.1 | ✅ fmfind + fmstore |
🟡 engine |
| CAL-20 Design functions | ✅ v1.0 | ✅ cal01 |
🟡 calc (partial: name and ID lists, value list items, field functions; not LayoutObjectNames, RelationInfo) |
| CAL-11 Text formatting | ✅ v1.1 | ✅ cal01 |
✅ calc |
| CAL-13 / 14 Trigonometry and finance | ✅ v1.1 | ✅ cal01 |
✅ calc |
| CAL-19 Containers and encodings | ✅ v1.1 | ✅ cal01 |
🟡 calc (encodings and digests) |
| CAL-21 Miscellaneous functions | ✅ v1.1 | ✅ cal01 |
🟡 calc (path conversion) |
| CAL-41a ExecuteSQL (part 1) | ✅ v1.1 | ✅ cal01 |
✅ calc |
| LAY-03 Field data formats | ✅ v1.2 | ✅ cal01 + fmstore |
✅ yes: key 13 read and written by fmstore, every format shown by cal01::display (dates of non-French files kept) |
| LAY-05 Conditional formatting and hiding | ✅ v1.1 | ✅ fmstore + cal01 |
🟡 print / app: effects, last-wins stack and value conditions on the stored operand; fill kept under mask bit 4 |
| LAY-06 / 09 Anchoring, tab order, merge fields | ✅ v1.0 | ✅ fmstore + cal01 |
🟡 fmp12 / engine / print: anchor bits, merge field references, numbered symbols, Tab skips hidden fields; no window-size moves yet |
| IO-03 XML export and import | ✅ v1.2 | ✅ fmstore |
🟡 partial: engine FMPXMLRESULT export; XML import (app, Import Records step, CLI) reads FMPXMLRESULT with fmstore::xmlimport (717/718) |
| IO-04 Import between FileMaker files | ✅ v1.0 | ✅ fmstore |
🟡 partial: script Import Records option bits and map codes |
| PRN-01 Pagination and preview | ✅ v1.2 | ✅ fmstore |
✅ print (preview and PDF pages through fmstore::paginate: fit rule, footers, summaries, page breaks, hide when printing, slide left; A4 PDF) |
| LAY-07 Views and preview mode | ✅ v1.0 | ✅ fmstore |
🟡 partial: stored views through fmstore::layouts::Views, View As cycling, preview pages in scripts (not Get ( PageNumber ) after leaving Preview) |
| IO-02 Excel export and import | ✅ v1.3 | ✅ fmstore |
🟡 partial: engine .xlsx export and import (not the sheet/title/author options or layout columns) |
| CAL-32 Layout and window Get functions | ✅ v1.0 | ✅ fmstore, cal01 |
🟡 partial: script window geometry, content size and window states through cal01 (not WindowStyle, WindowDesktop*, WindowUUID, menu set, printer) |
| SCH-08 Custom menus | ✅ v1.0 | ✅ fmstore |
— |
| STO-07 Save a Copy As | ✅ v1.1 | ✅ fmstore |
🟡 partial: the app's File › Save a Copy As (each type), the script step and basecraft-cli save-copy write fmstore::copies::save_copy's copy, compacted copy, clone and self-contained copy (external container data stays outside) |
| CHT-01 Charts | ✅ v1.0 | ✅ fmstore |
✅ yes: Chart tool and Chart Setup through fmstore::charts (default block, type, source, titles, series, legend, grid, pie options, related table and sort); Browse, Preview and PDF from series_related |
| CHT-02 Chart settings block | ✅ v1.3 | ✅ fmstore |
✅ yes: with CHT-01; text styles, colours and number formats kept, not edited |
| LAY-04 Styles and themes | ✅ v1.0 | ✅ fmstore |
✅ yes: BaseCraft's theme on new layouts, Save as New Style through save_style_to_theme; Layout, Browse and Preview draw our themes' styles from fmstore::themes (FileMaker's own themes in existing files still through fmp12::theme; no states in our grammar) |
| IO-07 Save a Copy as XML | ✅ v1.2 | ✅ fmstore |
🟡 partial: the app's Tools › Save a Copy as XML…, the script step (code 3), basecraft-cli save-xml and MCP save_xml write fmstore::xmlcopy::save_as_xml's document, calculation texts from BaseCraft's formula decompiler (no options dialog in the app; the CLI's headless step writes it too) |
| FND-02 Finds on numbers, dates and times | ✅ v1.0 | ✅ fmfind |
✅ yes: engine, the find steps and the app's Find mode use FindError::code(): 400 (criterion refused) keeps the found set, 401 (nothing found) |
| CAL-34 Field and object Get functions | ✅ v1.0 | ✅ fmstore, cal01 |
🟡 partial: script active field, object, portal row, selection and record through cal01 (fields a script entered) |
| PRN-02 PDF output | ✅ v1.1 | ✅ fmstore |
✅ yes: File › Print, Save Records as PDF, print-pdf and MCP print_pdf draw fmstore::pdf shapes (paths, styled runs, images, icons) and write them with fmstore::pdf; the old writer is deleted. Charts are vector shapes, not ChartImage. Fonts: installed TrueType faces, else egui's bundled Ubuntu Light / Hack (always on the web) |
| SCR-23 PDF script steps | ✅ v1.0 | ✅ fmstore |
✅ yes: script steps 243–247 build the PDF with fmstore::pdfsteps::PdfDoc; not a PDF gives 830 |
| STO-06 Verify and Recover | ✅ v1.0 | ✅ fmstore |
🟡 partial: the app's File › Recover… (desktop), basecraft-cli check / recover and MCP check_file / recover_file run fmstore::recover, write Recuperer.log and never touch the source (French alerts only; the check at an unclean opening is STO-05's) |
| APP-04 Undo and Redo | ✅ v1.2 | ✅ fmstore |
✅ yes: Edit › Undo / Redo labels from fmstore::undo; Browse typing, cut and paste per field being edited (egui's TextEdit undo bypassed, emptied on leaving the field); Layout mode Nouveau / Déplacer / Supprimer and the named §2.3.1 steps (Redimensionner, Aligner, Associer, Réorganiser, Verrouiller, Formatage for every property change), kept over Browse; step 45 on the same history |
| APP-06 Manage Value Lists dialogs | ✅ v1.0 | — (UI) | ✅ yes: File › Manage › Value Lists… creates, edits, duplicates and deletes lists (custom values or fields), written on OK; another file's list and language re-sort greyed |
| APP-07 Portal setup and portals in Browse mode | ✅ v1.0 | — (UI) | 🟡 partial: « Table externe » (occurrence, sort, filter, rows 1–1000) written through the layout writer; row selection and Ctrl+E deletion of the related record; creation row; deletion / scroll bar / row-state options greyed (storage unknown) |
| APP-08 Manage Layouts and Part Setup | ✅ v1.0 | — (UI) | ✅ yes: File › Manage › Layouts… (Ctrl+Alt+T): layouts, folders and separators in order, duplicate after, delete, new folder / separator / layout after the selection, menu check box, search, ▲ ▼ and drag, Open in a new window; Layouts › Part Setup…: create, change kind, reorder, delete parts, sub-summary above / below; part options greyed |
| APP-09 Button, tab control and slide control setup | ✅ v1.0 | — (UI) | 🟡 partial: button popover (styles, label, icon, Aucune action / Action unique / Exécuter script with « Définir le script »), tab control dialog (calculated names, create / rename / delete, front tab, justification, width), slide control panel count in the Inspector; Format › Button / Tab Control / Slide Control Setup; one-step editor without parameters, script parameter not written, tab settings applied but not stored |
| LAY-08 Rendering in Browse mode | ✅ v1.1 | ✅ fmstore |
🟡 partial: Browse mode draws fields, text, rectangles, lines, ovals, pictures and portals from fmstore::render's display list; a field's editor sits on its text box. Tab controls, popovers, slide controls, web viewers, charts, buttons and styled text keep the app's own painting |
| IO-06 Folder import | ✅ v1.0 | ✅ fmstore |
✅ File › Import Records › Folder…, the Import Records step and basecraft-cli import <folder> list the folder with fmstore::folderimport |
| LAY-11 Labels and envelopes | ✅ v1.3 | ✅ fmstore |
✅ yes: Layouts › New Layout/Report › Labels (J8159 or Other) and Envelopes; Layout Setup › Printing written through set_print_setup |
| APP-01 Standard windows and menus | ✅ v1.1 | — (UI) | 🟡 app: menu bar of each mode from one table (labels, order, separators, shortcuts, greyed not removed), checked against annexes A–D v1.1 (File › Manage, File › Récent); toolbar and layout bar per mode; items BaseCraft cannot do yet are greyed (crates/app/tests/app01/known.tsv) |
| LOC-02 Languages | ✅ v1.0 | ✅ fmlocale, fmstore |
🟡 partial: new fields take the file locale's index language (application language not fed to fmlocale) |
| LAY-10 Button icons | ✅ v1.1 | ✅ fmstore |
✅ yes: icon library and field 16 written through fmstore, segment edges, icons drawn from svg_icon_paths; PLACEHOLDER_SVG and the user's SVGs only |
| APP-03 Preferences | ✅ v1.0 | — | — |
| APP-05 Manage Database dialog | ✅ v1.1 | — (UI) | 🟡 app: File › Manage › Database… (Ctrl+Shift+D, Layout mode's Manage button): Tables, Fields (8 types, Ctrl+letter, Options… for auto-enter, validation, storage, calculation, summary), occurrences and relationships as a list, « Modifier le lien » (several pairs, create / delete / sort options per side); a working copy committed on OK through reload_schema; APP-05's messages; no Copy/Paste, Import, Print, graph |
| CAL-37 Device and hardware Get functions | ✅ v1.0 | ✅ cal01 |
✅ script screen, modifier keys and NIC addresses through cal01; UUIDNumber from cal01 |
| LOC-03 Spelling | ✅ v1.1 | ✅ fmstore |
✅ yes: Edit › Spelling (Check Selection / Record / All, Select Dictionaries, Edit User Dictionary with Import / Export), File › File Options › Spelling, underline while typing. No dictionary is shipped: pick a word list (one word per line) in Select Dictionaries; the user dictionary is User.upr in BaseCraft's settings folder |
| CAL-23 Japanese functions | ✅ v1.0 | ✅ cal01 |
— |
| SCR-18 Account script steps (envelope) | ✅ v1.0 | ✅ fmstore |
— |
| FND-07 Quick Find | ✅ v1.1 | ✅ fmfind, fmstore |
✅ yes: the Browse toolbar box (shown only when the layout has Quick Find on) and step 150 run fmfind::quick_find over the layout's included fields (related ones too); 400/401 keep the found set, 401 shows the no-records alert; Layout Setup « Activer la recherche rapide » (F1) and « Réinitialiser la recherche rapide »; Inspector › Data › Behavior « Inclure la rubrique dans la recherche rapide » (8.1 bit 8000 and object flag 00400000), undone as Formatage |
| CAL-22 Mobile functions (desktop) | ✅ v1.0 | ✅ cal01 |
— |
| FND-08 Saved and recent finds | ✅ v1.0 | ✅ fmstore |
🟡 partial: finds performed in the app and by Perform Find are recorded in the file (02/5d/10) with fmstore::savedfinds; Records › Saved Finds lists saved finds and the 10 newest recent finds by label, runs them (a saved find moves to the top), clears the recent list for the session; Save Current Find… proposes the label as name; Edit Saved Finds… (menu and step 149) lists, orders and deletes. Gaps: no request editor (Advanced…, New…, Edit…, Duplicate greyed); recent finds reach the disk with the next File › Save |
| ADD-01 Add-ons | ✅ v1.0 | ✅ fmstore |
✅ yes: Tools › Create Add-on… and step 96 into BaseCraft's Extensions folder (or one you pick); Tools › Add-ons… installs and uninstalls |
| ADD-02 Theme packages | ✅ v1.0 | ✅ fmstore |
✅ yes: Change Theme… with Import Themes… (personal themes only; Cancel undoes, OK applies) |
| ADD-03 Starter templates | ✅ v1.0 | — | ✅ yes: Launch Center › Create › BaseCraft's own Contacts and Tasks templates |
| NET-06 fmp:// URLs (local) | ✅ v1.0 | ✅ fmstore |
— |
| NET-05 Web Viewer (local content) | ✅ v1.0 | ✅ fmstore |
— |
| CAL-38 Network and server Get functions | ✅ v1.0 | ✅ cal01 |
— |
| IO-08 FileMaker clipboard formats | ✅ v1.0 | ✅ fmstore |
🟡 partial (no Manage Database or Manage Value Lists dialog yet): Copy / Paste in Manage Custom Functions, the Script Workspace and Layout mode go through fmstore::clipboard; on Windows BaseCraft ↔ FileMaker copy/paste works through the registered Mac-XM?? formats (see Clipboard) |
| PLG-01 Plug-in envelope | ✅ v1.0 | ✅ fmstore |
— |
| PLG-02 Plug-in installation | ✅ v1.1 | ✅ fmstore, cal01 |
— |
| SEC-02 Privilege sets (envelope) | ✅ v1.0 | ✅ fmstore |
— |
| SEC-06 File access protection (envelope) | ✅ v1.0 | ✅ fmstore |
— |
| REC-05 On-disk indexes | ✅ v1.2 | ✅ fmstore |
✅ yes: every save of the app, CLI and MCP rebuilds the indexes of edited tables with fmstore::index::rebuild_indexes (REC-05 §2.4 full rebuild; dropped with W4 cleared when a value has no key; multi-line texts keyed once per line by fmstore) |
| SCR-04 Layout and object triggers | ✅ v1.1 | ✅ fmstore |
— |
| CAL-41b ExecuteSQL (part 2) | ✅ v1.2 | ✅ cal01 |
✅ calc |
| IO-01 Text import and export | ✅ v1.1 | ✅ fmstore |
🟡 partial: engine tab, CSV and merge export and import (not character sets or step options) |
| SCR-12 / 19 Editing and spelling steps | ✅ v1.1 | ✅ fmstore |
🟡 Set Selection's range, Cut, Copy, Clear and Paste on the selection (editsteps), Undo/Redo's action |
| CAL-40 Custom function evaluation | ✅ v1.0 | ✅ cal01 |
✅ custom functions on cal01's evaluator through calc; parse cache |
| CAL-31 / 35 / 39 Get functions | ✅ v1.0 | ✅ cal01 |
— |
| LAY-02 Layout objects | ✅ v1.5 | ✅ fmstore |
— |
The specs found 3 bugs in the old date code, and integration found cases the specs had missed. These were sent back to the analyst, without the expected results, and observed again. Next: schema and records (SCH, REC).
Copy and Paste of custom functions (Manage Custom Functions, Ctrl+C / Ctrl+V on
the list), scripts and steps (Script Workspace) and layout objects (Layout mode)
use FileMaker's clipboard formats (Mac-XMFN, Mac-XMSC, Mac-XMSS, Mac-XML2:
a length and an fmxmlsnippet XML document). A name already taken gets « 2 »;
pasted formulas are read with the active locale, and one that does not parse is
kept as a comment /*…*/. Fields, tables and value lists have the same Copy and
Paste underneath, but BaseCraft has no Manage Database or Manage Value Lists
dialog yet.
On the system clipboard:
- BaseCraft ↔ FileMaker (Windows): works both ways. Copy writes FileMaker's
registered format (
Mac-XM??) and the snippet's XML as text; Paste (Ctrl+V, or Edit › Paste in Layout mode) reads FileMaker's formats first. FileMaker's Copy puts no text on the clipboard, so there BaseCraft pastes on the release of Ctrl+V: release V before Ctrl. - BaseCraft to BaseCraft: works (an internal clipboard also keeps the format; layout objects keep every kind of object).
- BaseCraft to a text editor: Copy also puts the snippet's XML on the clipboard as text.
- Text to BaseCraft: a
<fmxmlsnippet …>copied as text (from an editor, or a tool that converts FileMaker's formats to text) is pasted with Ctrl+V. - Linux, macOS and the web build: text only (no exchange with FileMaker).
File › Import Records › ODBC Data Source… reads the rows of an SQL query from a
data source name (DSN) of the system's ODBC driver manager. Windows builds always
have it (odbc32 ships with Windows). Linux and macOS builds leave it out by
default, so they keep running without the driver manager; to have it, install
unixODBC and build with the odbc feature:
sudo apt install unixodbc-dev # Debian, Ubuntu (to run only: libodbc2)
brew install unixodbc # macOS
cargo build --release -p basecraft --features odbc- Encrypted files (encryption at rest) open with their encryption password (the
app asks for it;
basecraft-clireadsBASECRAFT_ENCRYPTION_PASSWORDor, with--encryption-password, stdin) and are saved encrypted again with the same password; File › Save a Copy Without Encryption writes a decrypted copy. Encrypting a plain file from the app, and AES-128 files (which FileMaker's tools do not make), are not supported (FORMAT.md §17). - Accounts and privilege sets are read, enforced and written (File › Manage ›
Security,
accounts/privilegescommands); external-server and OAuth accounts are listed but cannot log in, and "Run script with full access privileges" is not honoured yet. Opening a protected file always needs its account name and password: BaseCraft has no way around them.
On Windows, macOS and Linux, web viewers show their page in Browse mode, with
Set Web Viewer, Perform JavaScript in Web Viewer and the FileMaker.PerformScript
bridge (when the web viewer allows JavaScript to perform scripts). Windows uses
the Microsoft Edge WebView2 runtime, already present on Windows 10 and 11. In
the web version a web viewer is a sandboxed iframe (the bridge and Perform
JavaScript work for data:text/html pages only, browsers keep other sites out
of reach).
Linux needs WebKitGTK 4.1, to build and to run (the .deb asks for it; the AppImage and the tar.gz do not bring it):
sudo apt install libwebkit2gtk-4.1-dev # Debian, Ubuntu (to run only: libwebkit2gtk-4.1-0)
sudo dnf install webkit2gtk4.1-devel # Fedora (to run only: webkit2gtk4.1)Linux webviews are X11 child windows. Under a Wayland session BaseCraft's window
is a Wayland window and web viewers stay a box with their address; to see the
pages, run it on XWayland: env -u WAYLAND_DISPLAY basecraft.
basecraft-cli drives BaseCraft without a GUI. Every command prints JSON,
so tools and AI agents can read the results directly. Nothing is written to disk unless
you pass -o <out.fmp12> or --in-place; without them, writes are dry runs.
--in-place writes the file it opened as FileMaker does: only the pages that
changed, in place (like FileMaker, with no journal: a crash in the middle of a
write can leave it half written). --whole-file writes it as a whole new file
instead. A file left open by a crash is checked when opened (lines appended to
Recuperer.log next to it) and refused when the check finds damage: use
recover. The app saves in place too; in_place_saves=false in its settings
file (%APPDATA%\BaseCraft\preferences.txt, ~/.config/basecraft/preferences.txt)
makes it write whole files.
basecraft-cli info Contacts.fmp12 # tables, fields, relationships, layouts, value lists
basecraft-cli records Contacts.fmp12 Contacts --find "First Name=ad" --sort "Last Name:desc" --limit 20
basecraft-cli eval Contacts.fmp12 'Upper ( ${Last Name} )' --table Contacts --record 2
basecraft-cli new Contacts.fmp12 Contacts "First Name=Ada" "Last Name=Lovelace" -o out.fmp12
basecraft-cli set Contacts.fmp12 Contacts 2 "Company=Navy" --in-place
basecraft-cli delete Contacts.fmp12 Contacts 2 --in-place
basecraft-cli scripts Contacts.fmp12 # scripts and their steps
basecraft-cli run-script Contacts.fmp12 "Sort by Name" --layout "Contact List" [--param P] [--answer 2] [-o out.fmp12]
basecraft-cli save-copy Contacts.fmp12 -o Copy.fmp12 [--kind copy|compacted|clone|self-contained]
basecraft-cli save-xml Contacts.fmp12 -o Contacts.xml # Save a Copy as XML (structure)
basecraft-cli check Contacts.fmp12 # consistency check, appends Recuperer.log
basecraft-cli recover Contacts.fmp12 [-o out.fmp12] [--mode rebuild|logical|asis] [--no-schema] [--no-structure] [--no-indexes] [--indexes-later] [--keep-cache]recordsuses FileMaker's find syntax (=,==,*,<,>, rangesa...b,--omitrequests) and FileMaker's sort.newapplies auto-enter options (serials, UUIDs, timestamps).newandsetreport validation failures invalidation_errors.- In
eval, field names that contain spaces go between${…}. - Session mode keeps a file open and reads one JSON command per line on stdin, replying with one JSON line each:
basecraft-cli session Contacts.fmp12
{"cmd":"records","args":["Contacts","--find","Company=Navy"]}
{"cmd":"set","args":["Contacts","1","Company=Army"]}
{"cmd":"save","args":["-o","out.fmp12"]}
{"cmd":"quit"}Files written by the CLI open in FileMaker Pro 26.
basecraft-cli new-file Shop.fmp12 --table Customers # a new, empty database
basecraft-cli schema add-table Shop.fmp12 Orders --in-place # table + occurrence + layout
basecraft-cli schema add-field Shop.fmp12 Orders Id --type number --serial 1 --unique --in-place
basecraft-cli schema add-field Shop.fmp12 Orders Amount --type number --range 0:10000 --in-place
basecraft-cli schema add-field Shop.fmp12 Orders Label --calc '"#" & Id & " " & Amount' --in-place
basecraft-cli schema add-field Shop.fmp12 Orders Total --summary total:Amount --in-place
basecraft-cli schema set-options Shop.fmp12 Orders Amount --not-empty --index all --in-place
basecraft-cli schema rename Shop.fmp12 field Orders Amount Price --in-place
basecraft-cli schema rename Shop.fmp12 table Orders Sales --in-place
basecraft-cli schema delete Shop.fmp12 field Sales Label --in-place
basecraft-cli schema delete Shop.fmp12 table Sales --in-place# Customers (Id, Name, Limit) and Orders (CustomerId, Amount, Date):
basecraft-cli schema add-occurrence Shop.fmp12 Orders "Big orders" --in-place # another occurrence of Orders
basecraft-cli schema add-relationship Shop.fmp12 Customers Orders "Id = CustomerId" \
--create-right --delete-right --sort-right Date:desc --in-place
basecraft-cli schema add-relationship Shop.fmp12 Customers "Big orders" "Id = CustomerId" "Limit < Amount" --in-place
basecraft-cli schema set-relationship Shop.fmp12 Customers Orders --no-delete-right --in-place
basecraft-cli schema add-field Shop.fmp12 Orders CustomerName --lookup Customers::Name --if-no-match value:? --in-place
basecraft-cli schema add-valuelist Shop.fmp12 Sizes S M L --in-place
basecraft-cli schema add-valuelist Shop.fmp12 Customers --from-field Customers::Id --second Customers::Name --second-only --in-place
basecraft-cli schema add-field Shop.fmp12 Orders Size --in-list Sizes --max-chars 1 --message "S, M or L" --in-place
basecraft-cli schema rename Shop.fmp12 occurrence "Big orders" Large --in-place
basecraft-cli schema delete Shop.fmp12 relationship Customers Large --in-place # also: occurrence, valuelist- Field options:
--type text|number|date|time|timestamp|container,--comment;--calc FORMULA(--unstored) or--summary total|average|count|minimum|maximum|stdev|fraction|list:Field; auto-enter--serial NEXT,--stamp creation-date|creation-time|creation-timestamp|creation-name|creation-account(ormodification-…),--auto-calc FORMULA(--replace,--always-evaluate),--constant VALUE,--prohibit-modification; validation--not-empty,--unique,--existing,--range LOW:HIGH,--validate FORMULA,--always-validate,--strict(no override),--in-list VALUELIST,--max-chars N,--message TEXT(or--message-calc FORMULA); serial--increment N; lookups--lookup Occurrence::Field(--lookup-from Occurrence,--if-no-match none|lower|higher|value:TEXT,--copy-empty); summaries--running,--restart-by Field,--weighted-by Field,--subtotal-by Field; storage--global,--repetitions N,--index none|minimal|all,--no-auto-index. Withset-options,--name NEWrenames and--no-<option>turns an option off. - Relationships join two table occurrences with one or more
Field op Fieldarguments, the operator being=,≠(!=),<,≤(<=),>,≥(>=) or×(x). Options per side:--create-left/right,--delete-left/right,--sort-left/right Field[:desc](repeated);set-relationshiptakes the same arguments (new predicates replace the old ones) and--no-…. As in FileMaker, two occurrences have at most one relationship and the graph has no cycles: relate a new occurrence instead. - Value lists take custom values as arguments, or
--from-field Occurrence::Fieldwith--second Occurrence::Field,--second-only,--sort-second,--related-from Occurrence. - Lookups copy when the match field changes (
set,new, scripts) as in FileMaker, and deleting a record deletes the related records its relationships say to delete. - Calculations use FileMaker's syntax (fields of other tables as
Occurrence::Field) and are compiled the way FileMaker stores them, so FileMaker evaluates them. - A new table gets a table occurrence and an empty layout of the same name. Deleting a table also deletes its occurrences and their relationships.
basecraft-cli export Contacts.fmp12 Contacts -o out.csv --field "First Name" --field "Phone Numbers::Number" --sort "Last Name"
basecraft-cli import Contacts.fmp12 Contacts people.xlsx --names --mode update --match Email --add-remaining -o out.fmp12
basecraft-cli print-pdf Contacts.fmp12 "Contact List" -o list.pdf --paper a4 --landscape --sort Initialexportwrites the found set (--find,--omit,--sort) ascsv,tab,mer(Merge),xml(FMPXMLRESULT),xlsxorjson, chosen by--formator the-oextension. Without-o, text formats are returned incontent.--fieldpicks fields (Occurrence::Fieldfor related fields; default: every field).--formattedexports values in the file's display formats instead of as stored. As in FileMaker, returns inside fields become vertical tabs, and repetitions and related records are joined with the group separator (ASCII 29).importreadscsv,tab,merorxlsx.--namestakes field names from the first row (columns map by name);--map Field(repeated) maps columns in order.--mode add(default),update(records of the found set whose--matchfields equal the row's;--add-remainingadds the others) orreplace(row n into record n of the found set). Auto-enter applies unless--no-auto-enter; validation failures are reported, and records failing a field that validates "always" are skipped. Likenew, it writes only with-oor--in-place.import … feed.xml --xsl transform.xslapplies an XSL style sheet (a file or anhttp(s)://URL) to an XML source first; its result must be FMPXMLRESULT (another grammar, FMPDSORESULT included, is error 717; malformed XML 718).import Contacts.fmp12 Contacts photos/imports a folder (FileMaker's folder import): one record per picture, sorted by name, with the source fieldsImage,Nom du fichier,Chemin d'accès au fichier,Miniature d'image(--mapin that order).--referencestoresimage:/…references instead of the pictures,--subfoldersadds the subfolders' files,--text-filesimports.txtfiles (Texte, name, path).skipped_filescounts the files of the other kind.import Contacts.fmp12 Contacts --odbc-dsn Sales --odbc-user me --odbc-sql "SELECT …"imports an ODBC query's rows (column names map by name). The password comes fromBASECRAFT_ODBC_PASSWORD, else a prompt on a terminal; it is never a command-line argument (--odbc-passwordis refused). Windows builds have ODBC; on Linux and macOS buildbasecraft-cliwith--features odbc(see ODBC import).print-pdflays the layout out as Preview mode does (header and footer on every page, body per record, sub-summaries for the sorted break fields, grand summaries, summary fields) on--paper letter|a4,--landscape,--marginpoints.
basecraft-cli mcp [file.fmp12] is a Model Context Protocol
server on stdio. It exposes these tools:
open_file,new_file,describe_database;find_records,evaluate;create_record,update_record,delete_record;create_table,create_field(types, calculations, summaries, auto-enter, lookups, validation, storage);create_occurrence,create_relationship,create_valuelist;list_scripts,run_script;export_records,import_records,print_pdf;save_file;remote_command(a hosted file, see below).
Changes stay in memory until save_file is called.
BaseCraft can also work on a file hosted by FileMaker Server, through the server's Data API. In the app, File › Open Remote… asks for the host, the database, an account and its password. Browse, Find, sort, List and Table views then work on the hosted records, and committed changes go straight back to the server. File › Perform Script on Server… runs the file's scripts there. Layout mode, schema changes and Manage Security are not available for a hosted file, because the Data API does not offer them.
From the command line, --remote takes the place of the file. The password
comes from an environment variable (--password-env) or from stdin
(--password-stdin), so it never appears on the command line:
read -rs FMS_PASSWORD && export FMS_PASSWORD # typed, not echoed
R="--remote https://fms.example.com/Contacts --account api --password-env FMS_PASSWORD"
basecraft-cli info $R # layouts, fields, scripts
basecraft-cli records $R "Contact List" --sort "Last Name:desc" --limit 20
basecraft-cli find $R "Contact List" --find "City=Paris" --omit "Status=Closed"
basecraft-cli new $R "Contact List" "First Name=Ada" "Last Name=Lovelace"
basecraft-cli set $R "Contact List" 12 "Company=Navy" --mod-id 3 # refused if changed since
basecraft-cli delete $R "Contact List" 12
basecraft-cli run-script $R "Send Reminders" --layout "Contact List" --param 7- The account's privilege set needs the fmrest extended privilege
("Access via FileMaker Data API").
basecraft-cli privileges set file.fmp12 "Set" --extended fmrest --in-placegrants it before hosting. - Certificates are checked.
--insecure(or the app's checkbox) accepts a self-signed certificate, with a warning. Use it only for your own test servers. - Records are addressed by layout, as in the Data API;
recordIdandmodIdcome back with each record. FileMaker's error codes are kept (212wrong password,9no access,306record changed by someone else…). - Not in the web version yet.
cargo install --path crates/cli # installs basecraft-cli
claude mcp add basecraft -- basecraft-cli mcp # Claude CodeClaude Desktop (claude_desktop_config.json):
{ "mcpServers": { "basecraft": { "command": "basecraft-cli", "args": ["mcp"] } } }BaseCraft also runs in the browser (WebAssembly): https://ripleyxlr8.github.io/basecraft/.
Open or drop a .fmp12 file. It stays on your machine, because everything runs
locally in the page. To build it yourself: cd crates/app && trunk serve.
A page cannot read the installed fonts, so the web version draws text in
egui's own font, and PDFs embed egui's bundled TrueType font (Ubuntu Light, Hack
for monospaced families); the desktop app draws (and embeds in PDFs) the fonts the
file asks for, with the same fallback when no TrueType face is installed.
crates/fmp12 .fmp12 (HBAM7) reader, later writer
crates/app the BaseCraft desktop application (egui)
crates/cli basecraft-cli: JSON command line for scripts and AI agents
crates/print Preview-mode pagination and PDF output
crates/remote FileMaker Data API client (files hosted by FileMaker Server)
tools/fmdump command-line inspector for .fmp12 files
tools/oracle scripts that drive a real FileMaker Pro to produce test oracles
docs/ format specification and reference lists
Also: crates/calc (calculation language) and crates/engine (records,
found sets, find, sort). Planned: script (script engine).
cargo run -p basecraft -- MyDatabase.fmp12 # GUI (set BASECRAFT_LANG=fr for French)cargo run -p fmdump -- MyDatabase.fmp12 tables
cargo run -p fmdump -- MyDatabase.fmp12 records "Contacts"
cargo run -p fmdump -- MyDatabase.fmp12 chunks # raw path/key/value dumpcargo test --workspaceIf FileMaker Pro is installed, some tests also run against its starter
templates. Point FMP12_TEMPLATES at a template folder to use another
location. Without them, those tests are skipped, as on CI.
basecraft-server is a separate project. It is a server that hosts .fmp12 files for several users at once, and aims to work with FileMaker Pro and BaseCraft clients.
It is at an early stage: its progress is tracked in its STATUS page.
The two projects share no code.
To work today on a file hosted by FileMaker Server, use Remote files above.
- docs/FORMAT.md: our specification of the
.fmp12format. - docs/reference/: lists of calculation and
Get()functions, used to measure coverage. - docs/CLEANROOM.md: the clean-room rework, milestone by milestone, and its progress.
The sector and byte-code layer is based on the public notes of fmptools (MIT) by Evan Miller.
MIT, see LICENSE.