Skip to content

About

A workspace that shows a functional analysis end to end — requirements, business rules, BPMN, API contracts, SQL validation and tests, with traceability derived from the artefacts themselves. Next.js 15 + TypeScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Functional Analyst Workspace

How a banking project gets analysed — requirement by requirement, all the way to the test that proves it

Open the workspace →

Live Portfolio

Next.js React TypeScript Tailwind CSS Radix UI PlantUML Vercel

Static export No auth TypeScript strict Projects Artefacts

Saadaoui Abdessalem — Functional Analyst & Java Developer


A recruiter reading a CV learns that someone writes specifications. They learn nothing about how those specifications hold together. This workspace shows the work itself: pick a project, follow the analysis from the business need to the acceptance criteria, the rules, the process model, the interface contract, the SQL that proves the data behaves, and the tests that close the loop.

Every cross-reference is live. Click BR-001 anywhere and you land on it. The traceability matrix is not maintained by hand — it is derived from the links the artefacts already carry, so it cannot drift from them.


Running it offline — every step

A copy that runs on one laptop and reaches nothing outside it. No analytics, no fonts fetched from Google, no diagram sent away to be drawn. Built for showing work that must not leave the room.

You need Node.js 20 or newer, and nothing else. No Java, no Docker, no database, no Graphviz.

node --version        # must print v20 or higher

If not, install the LTS build from nodejs.org and take the defaults.

1. Install

npm install

Two or three minutes. This is the only step that needs the internet. If the machine that will run it has no network at all, do steps 1 and 2 somewhere that does, then copy the whole folder across.

2. Build the offline copy

npm run build:offline

It builds, then checks its own work. The last lines must read:

  No external host appears anywhere in this build.
  Every asset the pages load comes from the build itself.

If it lists a host instead, stop. Something in the build can reach outside the machine, and that should be understood before confidential work goes near it.

3. Start it

npm run serve:offline

Open http://localhost:4173. Leave the terminal open — closing it stops the server. Ctrl + C stops it deliberately.

Now pull the network cable out and reload. Everything still works.

4. Import a spreadsheet

  1. Open http://localhost:4173/studio/
  2. Enter any password. The gate keeps strangers out of the published website; there is no website here, so the offline build lets you straight in.
  3. Choose your .xlsx
  4. Read the check. Errors block the import; warnings are gaps worth knowing about, not mistakes.
  5. Press Add … to the workspace

5. Open it

It appears in the project list at once — All Projects, or the project switcher at the top.

The project is stored in that browser, on that machine. It is never uploaded, and it survives closing the browser and restarting the laptop. Two consequences, both of which surprise people:

  • Keep the port at 4173. Browser storage belongs to an address and the port is part of it. Serve the same build on 4174 and yesterday's projects are still on 4173, apparently gone.
  • Clearing browsing data clears the projects. Use Download the project file in the studio to keep a copy you can re-import.

6. Check the claim yourself

Do not take "it works offline" on trust.

npm run audit:offline

Lists every external host in the build; it should find none, and it fails loudly if it does. It looks for hostnames wherever they appear — a URL assembled from pieces at runtime hides from a search for src="https://…", which is exactly how the first version of this check passed while a diagram service was still being contacted.

Then, with the network disconnected: press F12, open the Network tab, and use the workspace normally. Every row will say localhost. That is the one to show a security officer, because they can run it themselves.

Diagrams, drawn on the machine

No diagram source is ever sent anywhere.

  • Mermaid models are drawn directly by the browser. Write new diagrams in Mermaid.
  • PlantUML models are translated to Mermaid first, because PlantUML is a Java program that normally needs an outside server to draw anything at all.

All 55 models in this workspace translate and draw — sequence, state, entity relationship, component, use case and activity. Where a line cannot be carried across, the diagram says so underneath rather than quietly leaving it out, and the full original stays on the Source tab.

If something goes wrong

Message What it means
node is not recognised Node.js is not installed, or the terminal predates the install. Open a new terminal.
Port 4173 is already in use It is already running in another window. Use that one.
No build at … Step 2 has not been run, or was run in a different folder.
A page is blank or unstyled The build is incomplete. Run npm run build:offline again and read the output.
"lines could not be translated" The tool being honest. The picture is right as far as it goes; the rest is on the Source tab.

Longer notes, including the desktop wrapper, are in docs/OFFLINE-INSTALL.md.

The spreadsheet the studio reads — sheet names, columns, the rules that decide whether an import succeeds, and a prompt for generating one — is in docs/SPREADSHEET.md.


The two projects

EuroPay Hub Instant Payments Hub
What Merchant payment platform SEPA Instant Credit Transfer onboarding
Source Real project — transcribed from its own docs/ folder Sample analysis: a method demonstration, not client work
Requirements 12, with 49 acceptance criteria 24
Business rules 8 16
Actors 6 8
Specification sections 7 8
Models 8, one of them BPMN 6, one of them BPMN
Wireframes — 6
Endpoints 26 across 1 service 5 across 2 services
SQL validations 6 6
Test cases 39 39
Documents 10 7
Risks 12 (R-01 … R-12) —

The sample project is labelled as a sample everywhere it appears. Nothing here is presented as client work that isn't.


What's in it

Route What it holds
/ The project register — pick one to open it
/journey The analysis process, step by step, in plain language
/overview Objective, scope, stakeholders (RACI), timeline, dependencies, risks
/requirements Requirements with Given / When / Then acceptance criteria
/functional-specification Business logic, field tables, validations, error codes, edge cases
/business-rules Rule catalogue with the source of authority and the rule logic
/actors Human, system and external actors — responsibilities and permissions
/process-flow Swimlane decomposition of the end-to-end process
/bpmn BPMN model, rendered — zoom, pan, full screen, PNG export
/plantuml Use case, sequence, state, class and ER models with their .puml source
/wireframes Annotated screen designs with version history
/swagger-api Interface contracts, endpoint by endpoint
/sql-validation Validation queries with result sets and analyst notes
/test-cases Test catalogue with steps, execution status and defect links
/documents Controlled document register
/traceability Requirement → rule → model → interface → data → SQL → test → document
/document The whole project as one printable document — save as PDF
/studio Import a project from a spreadsheet (read-only preview when published)

The studio

Adding a project means writing a spreadsheet, not writing TypeScript.

Sixteen sheets — Requirements, Acceptance Criteria, Business Rules, Actors, Process Steps, five Spec sheets, Diagrams, Wireframes, API Endpoints, SQL Validations, Test Cases, Documents. Bring only the ones you have. Column headings are matched loosely, so Business Need finds businessNeed, and a sheet whose name says nothing is identified by its columns.

The import is then checked before it can be added: duplicate ids, references that resolve to nothing, artefacts nobody points at, empty collections, and requirement coverage. A project with a dead link cannot be added — a broken reference renders as an ordinary grey chip, which on a traceability tool is the worst failure available.

Then one button writes the bundle, registers it and adds it to the project register. Commit, push, live.

An example file ships with the workspace — a complete worked project (card disputes) across all sixteen sheets, so the layout is shown being used rather than described.

Authoring is local only, on purpose

The published site is static files. It has no server, no database, no login — and therefore nothing to attack. Visitors can open the studio, drop in a spreadsheet and watch the checks run; that runs entirely in their own browser and the file never leaves their machine.

Adding, publishing and deleting need routes named *.dev.ts, which pageExtensions drops from the static export. They exist only on the machine that owns the source, behind a password held in .env.local and checked by the server — never compiled into the bundle, so it cannot be read out of the page.


Stack

Concern Choice
Framework Next.js 15 (App Router) · React 19
Language TypeScript, strict
Styling Tailwind CSS 3 with CSS-variable theming
Components shadcn/ui conventions over Radix primitives
Icons Lucide
Command palette cmdk
Theming next-themes — light, dark, system
Spreadsheets SheetJS, dynamically imported so it never reaches a visitor's bundle
Diagrams PlantUML, rendered from the same source shown on the page
Data TypeScript modules. No backend, no authentication, no API calls

Running it

npm install
cp .env.example .env.local     # then set STUDIO_PASSWORD
npm run dev                    # http://localhost:3000
npm run typecheck              # tsc --noEmit
npm run build:static           # static export into ./out
npm run deploy:fa              # build for /fa and copy into the portfolio
npm run check:diagrams         # render every PlantUML model against the server

Offline

A build that runs on one laptop and reaches nothing outside it — for work that must not leave the room.

npm run build:offline          # build, then verify it contacts nothing
npm run serve:offline          # http://localhost:4173
npm run audit:offline          # list any external host in the build

Diagrams are drawn in the browser: Mermaid directly, PlantUML translated to Mermaid first, so no model is ever sent to a rendering service. The studio can add projects in this build, which it cannot do in the published one.

Step-by-step instructions, including for somebody installing it on their own machine, are in docs/OFFLINE-INSTALL.md.

Don't run a build while npm run dev is running. On Windows they interfere and leave the dev server serving a page whose JavaScript 404s — which looks like "the CSS stopped working".


Architecture

src/
├── app/                  Routes only — thin server components
│   └── api/studio/       *.dev.ts — authoring routes, excluded from the export
├── components/
│   ├── ui/               Radix-based primitives
│   ├── layout/           Shell: sidebar, top bar, breadcrumbs, command palette
│   ├── common/           Page header, filter bar, code block, states, reading nav
│   └── providers/        Theme and workspace (open project) context
├── features/             One folder per capability, each owning its views
├── data/
│   └── workspaces/       One bundle per project + a registry
├── hooks/                Filters, highlight, copy, download, project data
├── config/               Navigation and the reading path, single source of truth
└── lib/                  Types, artefact link resolver, bundle validation

Principles held to

  • Adding a project is two files and one line. A bundle in data/workspaces/, an entry in the register, one line in the registry. No component, route or navigation change.
  • Traceability is derived, never stored twice. The matrix is assembled from links already on the artefacts, so it cannot contradict them.
  • One source of truth per concern. Navigation drives the sidebar, the breadcrumbs and the search index. Status colours come from one map, so a word never renders in two tones.
  • States are designed, not omitted. Loading, empty, no-results and error states exist for every list and page.
  • Honesty about what is what. Sample work is labelled sample. Authored content is not presented as transcribed. A test that has not run reads "Not Run", never "Passed".

Details worth knowing

  • Command palette — Ctrl K or /, over every artefact in the open project.
  • Diagram viewer — scroll to zoom toward the cursor, drag to pan, Esc to close, 0 to reset.
  • Deep links — every artefact has one; ?highlight=BR-001 scrolls to it and marks it.
  • Exports — CSV, .puml, .sql, OpenAPI JSON, PNG, and the whole project as a PDF.
  • Print — /document drops the chrome, forces black on white, and stops tables splitting across pages.
  • Mobile — 100dvh rather than 100vh, and tables restack as cards rather than scrolling sideways.
  • Accessibility — focus rings are never suppressed, the app is keyboard operable throughout, and status is always carried by text as well as colour.

Author

Saadaoui Abdessalem

Functional Analyst & Java Developer

Requirements engineering · process modelling · interface specification · data validation · traceability

Portfolio Workspace GitHub Email


Built to be read, not just deployed. Every reference in this workspace resolves, or the build says so.

About

A workspace that shows a functional analysis end to end — requirements, business rules, BPMN, API contracts, SQL validation and tests, with traceability derived from the artefacts themselves. Next.js 15 + TypeScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages