Skip to content

Architecture

Kai Xu edited this page Oct 12, 2023 · 28 revisions

Newer architecture for manifest v3 version 0.1 (Oct 2023) - 'mv3' branch

This is the bare minimal historymap (v0.1). All the other parts, such as content script and data storage, will be added later.

Architecture for mv3 branch v0.1

New Architecture 2.0 ('rebuild-mvc' branch)

As everything in life, the SenseMap architecture evolves over time, too. Hopefully for the better :-)

new architecture 2.0

source file (editable)

Main (architecture) changes

  • Added user login
  • Added database
  • The model/data is no longer shared between the MVCs.

New Architecture ('rebuild' branch)

The new architecture tries to follow the model-view-controller pattern

new architecture

(source file)

  • Each view has its own controller;
  • Each view has its own provenance (model);
  • This way it should be easy to add new views (such as comparison support for online shopping);
  • There may be similarities between the views, for example the 'history map' and the 'knowledge map'. This will allow reuse part of the code for view, controller, and provenance.
  • Each top level directory in the js source code contains one set of module-view-controller, such as those for the 'browser view'.

Old Architecture ('master' branch)

This is the current architecture of the rebuild branch:

old architecture

(source file)

Files related to browser features:

files for browser features

(source file)

Clone this wiki locally