This reference describes the implemented system: its architecture, behavior, API contracts, and operating limits. Paths are relative to the repository root. See Appendix A for related documentation.
Dependency Parser tracks how user-defined software projects depend on each other across releases.
- Project definitions: a user defines a root project with a Git repository URL, an optional tag pattern, and a nested list of dependency projects. Each dependency identifies the manifest file (
package.jsonorpom.xml) and the entry that declares its version. - Version discovery: the backend persists observed git tags matching the project's pattern, retaining matching removed entries independently of computed trees.
- Tree resolution: for any version, the backend builds the transitive dependency tree. It reads each manifest at the parent's tag through the git CLI, recursing level by level.
- Persistence: tag catalogs and commit-aware dependency snapshots are stored in JSON files or MongoDB. Active caches respect project configuration; removed versions can use retained snapshots.
- Diffs: two versions of a project's root
package.jsoncan be compared. A separate commit-history comparison returns commits exclusive to each ref for root or nested projects, with browser links selected for the recognized hosting platform. - Background scan: a job runs at startup and on an interval (default 15 minutes). It refreshes complete matching tag catalogs for roots and configured nested dependencies; only registered roots receive independent dependency-tree jobs.
- Frontend: an Angular single-page app with three screens. Dependency Tree browses and compares resolved trees. Tree Builder edits the project definitions. Find Root Version locates the start of the latest parent release run containing a dependency minimum.
| Area | Technology |
|---|---|
| Backend | Node.js, TypeScript, and Express |
| Frontend | Angular and TypeScript |
| Persistence | JSON files, MongoDB, or no persistence |
| Source and manifests | Git CLI; npm package.json and Maven pom.xml parsers |
| Tests | Node's test runner for the backend; Vitest and Playwright for the frontend |
| Packaging and CI | Combined Docker test image; GitHub Actions verification and artifacts |
See the runtime prerequisites and the backend and frontend package manifests for supported versions.
flowchart LR
user["Engineer in a browser"]
operator["Operator"]
subgraph sys["Dependency Parser"]
spa["Angular SPA"]
api["Express API and background scan"]
end
git["Git hosting such as GitHub"]
json["JSON files in the backend data folder"]
mongo["MongoDB"]
clones["Local clone cache"]
user -->|"HTTP"| spa
spa -->|"REST over HTTP"| api
operator -->|"env vars and dotenv file"| api
api -->|"git CLI clone and fetch"| git
api -->|"DATASTORE json"| json
api -->|"DATASTORE mongodb"| mongo
api -->|"blobless clones per project"| clones
The API accesses repositories through the Git CLI, not through hosting-provider APIs. It generates browser links separately from the Git operations. Optional GitHub credentials are used only by the backend Git client.
The table summarizes the system's implemented capabilities.
mindmap
root((Dependency Parser))
Project definitions
CRUD API
Nested dependencies
Version references
Versions
Git tag discovery
Tag pattern filter
Latest and exact tag lookup
Dependency trees
Recursive resolution
npm and Maven parsers
Stored per version
Background scan
Startup and interval runs
Failure isolation
Diffs
Root package json
Hosting platform compare link
Frontend
Dependency Tree screen
Tree Builder screen
Find Root Version screen
| ID | Capability | Behaviour as implemented | Source |
|---|---|---|---|
| FR-01 | Manage project definitions | Operations: list, get, create, update and delete root project definitions. IDs: create always assigns a fresh UUID to the root; update keeps the ID in the path. Nested IDs are kept only if they are valid, unused UUIDs. Validation: root names must be unique ignoring case (409). Direct sibling dependency names must be unique (400). Persistence: writes need a persistent datastore; otherwise they return 503. |
backend/src/application/services/ProjectService.ts, backend/src/interfaces/http/controllers/ProjectController.ts |
| FR-02 | Define nested dependencies | A dependency embeds a full project definition plus:manifestPath: the manifest file. The parser is chosen by file name: package.json or pom.xml.versionReference: an exact package name, a /pattern/flags string, or a {pattern, flags} object.tagPattern: must compile as a regular expression. |
backend/src/application/dto/ProjectDefinitionDTO.ts, backend/src/domain/models/ProjectDependency.ts |
| FR-03 | Discover versions | Roots and configured nested dependencies each have a Git tag catalog filtered by tagPattern, independent of saved trees. Listings reuse a populated catalog when scans are enabled unless forceRefresh=true. Missing matching tags are marked removed only after a successful complete refresh. latest is the newest active tag by Git date, with numeric tag-name tie-breaking. |
backend/src/application/use-cases/GetDependencyVersion.ts, backend/src/application/services/VersionLocatorService.ts, backend/src/interfaces/http/controllers/VersionController.ts |
| FR-04 | Resolve a requested version | Accepts an exact tag name or latest. Prefixed and unprefixed names remain distinct; no v prefix is added or removed. Returns 404 when nothing matches. |
VersionLocatorService.resolveVersion, VersionController.getVersion |
| FR-05 | Resolve a dependency tree | Builds the tree for one project and version. Recursion: it follows the defined dependencies. Each child's declaration is read at the parent's ref; npm SemVer ranges select the highest compatible configured Git tag before recursion. Cycles: guarded by tracking projectId@version ancestry.Unreadable versions: a child whose version cannot be read becomes unknown. |
backend/src/application/services/DependencyResolverService.ts, NpmPackageParser.ts |
| FR-06 | Store and reuse trees | Storage: snapshots are keyed by root project, version, and commit hash. Reuse: active trees must match the project configuration and resolution-policy fingerprint; npm range selections expire after a configurable TTL, default one day. Retention: configuration or policy changes invalidate active reuse without deleting history; removed tags use retained snapshots without TTL expiry. |
DependencyResolverService.ts, backend/src/infrastructure/storage/JsonFileDataStore.ts, backend/src/infrastructure/storage/MongoDataStore.ts |
| FR-07 | Background dependency scan | Refreshes root and nested tag catalogs at startup and on a configured interval. Only active registered-root tags enter the tree queue. Tag refresh and tree processing run independently; a failure in one project or tag does not stop other work. | backend/src/scheduler/ScanScheduler.ts, backend/src/application/use-cases/ScanProjectDependencies.ts |
| FR-08 | Compare package versions | Reports added, removed and updated entries of the root package.json dependencies between two refs. Also returns a hosting-platform compare URL for recognized repository hosts. |
backend/src/application/services/DiffService.ts, backend/src/application/use-cases/ComparePackageVersions.ts, backend/src/infrastructure/providers/AutoDetectSourceControlProvider.ts |
| FR-09 | Health endpoint | GET /api/health always returns {"status":"ok"}. |
backend/src/interfaces/http/routes/routes.ts |
| FR-10 | Dependency Tree screen | Browse, filter, and compare resolved trees from selected projects and versions. The comparison marks changed, added, and removed dependencies. The last selection is remembered in the browser. | frontend/src/app/dependency-tree/dependency-tree.component.ts, frontend/src/app/dependency-tree/dependency-tree.models.ts |
| FR-11 | Tree Builder screen | Editing: create and edit nested project definitions, with a draft per project kept in browser storage. API: save, update and delete through the API. Files: import and export JSON. |
frontend/src/app/tree-builder/tree-builder.component.ts, frontend/src/app/tree-builder/tree-builder.models.ts |
| FR-12 | Theme | Dark and light themes; the preference is saved in the browser. | frontend/src/app/app.component.ts |
| FR-13 | Find Root Version | Requires an exact active minimum tag from the selected dependency's refreshed catalog. Inspects root releases newest first and stops at the first confirmed non-match. Returns the start of the latest inspectable matching run, its tree and dependency path, and attempted-release counts. | backend/src/application/use-cases/FindRootVersion.ts, frontend/src/app/find-root-version/find-root-version.component.ts |
| FR-14 | Commit changelog | Show changes opens the Git changelog for a version-changed root or dependency row. It lists commits exclusive to each version with hashes, subjects, timestamps, and browser links. | backend/src/application/use-cases/CompareVersionCommits.ts, frontend/src/app/dependency-tree/commit-diff-dialog.component.ts |
The security policy defines supported revisions and private vulnerability reporting. There are no published service-level objectives or capacity targets.
As built:
- Git commands: invoked without a shell. Empty and option-like refs are rejected, and manifest paths are restricted to the clone.
- Input validation: project definitions are validated on write, including any regular expressions used for tag patterns and version references.
- Credentials:
MONGODB_URIandGITHUB_TOKENare backend settings. The optional token applies only to HTTPSgithub.comGit operations and is not written to URLs or saved Git configuration. The configured token is redacted from Git error messages. See GitHub token authentication.
Gaps:
- No end-user authentication or authorization:
GITHUB_TOKENgrants repository access to the backend; it does not protect the API. Operators own end-user access controls; see deployment responsibilities. - Open CORS: all origins are allowed. The API has no rate limiting, security-header middleware, or custom request-size policy.
- Repository URLs and patterns: URL validation does not restrict repositories to trusted hosts or protocols, accepts local paths, and does not fully guard against Git option injection. Regular expressions are checked for valid syntax, not for costly matching behavior.
- Raw Git diagnostics: some API responses and logs include Git diagnostics. Credentials embedded in a
repoUrlmay be exposed even though the configuredGITHUB_TOKENis redacted. - Host credentials: Git uses the host's authentication when no configured token applies. An unresolved credential prompt can block requests or scans.
As built:
- Stored trees: matching complete snapshots are reused; removed tags can use retained historical snapshots.
- Version retrieval: populated scan-enabled catalogs can be listed without Git access. Concurrent source refreshes for the same project share one operation. Selective tag patterns can reduce object transfers on supported Git versions; see tag discovery.
- Newest-run search: reuses eligible trees and stops at the first confirmed non-match. If every release qualifies or is skipped, the search can visit the full catalog.
Gaps:
- Sequential tree building: children are resolved one at a time. Manifest reads can fetch missing blobs on demand.
- Source refreshes: even selective refreshes enumerate the full remote tag set before applying the pattern.
- Package diffs: each package-manifest comparison requires a full temporary clone.
- JSON store: each operation reads or rewrites a whole file, so cost grows with the number and size of stored trees.
As built:
- Startup: invalid configuration or a failed MongoDB connection prevents the server from starting.
- Graceful shutdown:
SIGINTandSIGTERMstop accepting requests and starting scan jobs. Active scan work finishes before the datastore closes. - Scan isolation: a project or tag failure does not stop unrelated work, and a failed tag refresh does not mark tags as removed.
- JSON store: operations are serialized within the process.
Gaps:
- No general Git timeouts/backoff or in-flight cancellation at shutdown. Confirmed missing dependency refs have bounded retries; authentication/network failures and root refs do not use that retry/fallback policy.
- JSON writes are not atomic: a crash during a write can truncate a file. A corrupt project store can prevent startup.
- Missing source: a removed root tag can be displayed only if a saved tree exists. Saved snapshots are not a source archive.
- Registry loaded once: the project list is read from the datastore only at startup. Edits made directly to the store need a restart.
- The health check is static:
/api/healthdoes not check the datastore or git.
Everything runs in a single Node.js process. The project registry, request deduplication, git queues and the scheduler all live in memory. See Section 5 for limits and options.
As built:
- Logger: timestamped console text with an optional context object.
LOG_LEVELcontrols verbosity;infoanddebuggo to stdout, andwarnanderrorgo to stderr. - Events: startup, shutdown, scan failures, and separate tag-refresh and tree-processing summaries are logged. Debug logging includes individual tree jobs and root-version search decisions. See the backend logging reference.
Gaps:
- No access logs or request correlation IDs.
- No metrics, tracing or alerting.
- Not machine-parseable: log lines are text with a context object, not structured JSON.
As built:
- Runtime needs: Node.js and a git CLI on
PATH. - Clone location: configurable with
CLONE_ROOT. - Test container: packages the frontend and backend with Git and an SSH client, runs as a non-root user, and supports a mountable data directory.
- Frontend API origin: browser requests use
/api; Angular's development proxy forwards them locally, while the combined image serves both applications on one origin.
Gaps:
- Data paths depend on the working directory: relative data and clone paths are resolved from the backend process's working directory. Start local runs from
backend/to use the documented layout.
- Manifests:
package.jsonwith onlydependenciesread (NpmPackageParser).pom.xmlwith<properties>and<dependencies>, resolving${...}placeholders, includingproject.*andpom.*with a fallback to<parent>(MavenPackageParser). Profiles, plugins anddependencyManagementare not read.- Any other manifest name fails with "No parser available" (404).
- Repository hosts:
- Clone and fetch work with any remote the git CLI can reach.
- Optional
GITHUB_TOKENauthentication covers HTTPSgithub.comremotes with Git 2.31+; SSH, HTTP, GitHub Enterprise Server, and other hosts retain existing host-provided Git authentication. - Browser links support
github.com,gitlab.com,bitbucket.org, and Bitbucket Server/Data Center hosts matchingbitbucket.<suffix>. Other hosts can still be reachable by Git but are not supported for generated links.
- API:
- There is no version prefix (
/apionly). - The frontend and backend communicate over HTTP; their TypeScript types are not shared.
- There is no version prefix (
- Stored data:
- Both stores share one serialization format (
DataStoreSerialization.ts). Regular expressions are stored as{pattern, flags}. - There is no migration between JSON and MongoDB.
- Both stores share one serialization format (
- Browsers: Angular's default browser targets apply.
The workload and resource drivers below are qualitative, not benchmark results or capacity targets.
- HTTP traffic: opening a tree loads projects and versions and resolves the selected tree. Comparison resolves a second tree; commit history is requested only when the user opens Show changes.
- Background load: tag catalogs are refreshed at startup and on the configured interval. Tree workers drain the root-version queue independently of that schedule.
- Shared budget:
GIT_MAX_CONCURRENCYbounds each scan phase's worker count and the total active Git commands across scan and API work. It does not count individual network connections opened by Git. - Serialization: repository updates exclude other access to the same clone; revision-pinned reads can otherwise run concurrently. JSON store operations are serialized.
- Independent resolutions: an HTTP request and a scan can compute the same tree concurrently; if both save the same snapshot, the last write wins.
| Item | What drives growth |
|---|---|
| Stored trees | The number of resolved root versions and commits, and the number of configured nodes in each tree. There is no automatic snapshot retention limit. |
| Tag catalogs | Matching tags observed across roots and nested dependencies, including removed tags. |
| Git clone cache | The number and history size of configured repositories and the manifests read from them. |
| Commit comparison caches | Retained comparison results in memory and isolated repository histories on disk. Bounds apply to entry or repository count, not to bytes. |
- Git network work: catalog refreshes, missing refs, on-demand manifest downloads, and uncached comparisons.
- Tree building: traversal of each tree is sequential even when multiple root trees are being built.
- Persistence and disk: whole-file JSON operations, shared clones, and temporary comparison repositories.
No latency targets exist. The table below gives qualitative expectations based on what each path does.
| Path | Expected latency driver |
|---|---|
| Tree with a matching complete snapshot | Catalog and snapshot reads |
| Missing or incomplete tree | Sequential manifest inspection and any required Git fetches |
| Version list | Stored catalog and snapshot availability; cold, disabled-scan, or forced refreshes also access Git |
| Package-manifest diff | A full temporary clone |
| Commit changelog | A memory lookup on a cache hit; otherwise Git retrieval and history traversal |
| Scan pass | One tag refresh per configured project, plus any tree work for eligible root releases |
Current model: each backend runs in one process. Multiple instances do not coordinate their registries, scanners, or caches.
| Bottleneck | Why | Source |
|---|---|---|
| In-memory project registry | Loaded once at startup. Create, update and delete calls change only the local instance's copy. | server.ts, backend/src/infrastructure/registry/ProjectRegistry.ts, ProjectService.ts |
| JSON datastore | Whole-file rewrites, and only one process can use it safely, since the queue is in-process. | JsonFileDataStore.ts |
| Scheduler per process | Every instance with scanning enabled runs its own full pass. | ScanScheduler.ts, server.ts |
| Bounded tree resolution | Up to GIT_MAX_CONCURRENCY background trees, with newest-first selection for free workers and a shared Git-command budget. Node recursion within each tree remains sequential. |
ScanProjectDependencies.ts, DependencyResolverService.ts, GitCliClient.ts |
| Local clone cache | Kept per host, and grows with the number of defined projects. | DependencyResolverService.ensureClone, VersionLocatorService.getClonePath |
Running more than one instance:
- Persistence: use MongoDB. Per-document upserts and unique indexes on
{projectId, name}for tags and{projectId, version, commitHash}for snapshots prevent duplicate identities. Concurrent scans across processes are still not coordinated. - Scanning: enable it on one instance only, by setting
DEPENDENCY_SCAN_ENABLED=falseon the others. - Project list: instances still don't see each other's project changes until they restart, because the registry is in memory.
End-user authentication and authorization are operator responsibilities. The table lists the limits of the base application.
| Area | Status | Evidence |
|---|---|---|
| End-user authentication and authorization | Operator-owned extension or fork | No user-authentication or role middleware in server.ts or routes.ts; see deployment responsibilities |
| Multi-tenancy | Not implemented | No tenant middleware in server.ts or routes.ts |
| Resolving third-party package graphs from the npm registry or Maven repositories | Not implemented | The resolver follows only dependencies declared in project definitions. Parsed manifest entries are used only to look up a declared dependency's version (DependencyResolverService.readDependencyVersion). |
npm devDependencies, peerDependencies, lockfiles, registry tags/aliases and local/workspace/Git specifications |
No ecosystem-specific resolution | NpmPackageParser reads dependencies only. SemVer ranges are resolved against configured Git tags; non-SemVer specifications retain literal-ref behavior. |
Maven profiles, plugins, dependencyManagement, remote parent POMs |
Not read | MavenPackageParser.ts |
Manifests other than package.json and pom.xml |
Not supported | Each parser's supports() method |
Diffs for Maven or for manifests other than the root package.json |
Not implemented | server.ts builds DiffService with NpmPackageParser and "package.json" |
| Showing root package-manifest diff results in the frontend | Not implemented | The frontend never calls /diffs; commit changelogs use the separate /commit-diffs endpoint (project-definition-api.service.ts) |
| Arbitrary self-hosted domains and custom browser-link templates | Not implemented | Browser links use the documented host rules. |
| CLI interface | Not implemented | There is no backend/src/interfaces/cli/ |
| Durable or distributed jobs, scan history and status, an API to trigger a scan | Not implemented | ScanScheduler is an in-process timer, and scan results are only logged |
| Metrics, tracing, alerting | Not implemented | Only backend/src/utils/logger.ts exists |
| Registry publishing, Helm charts, and production deployment | Not implemented | See Section 10 |
erDiagram
PROJECT ||--o{ PROJECT_DEPENDENCY : declares
PROJECT_DEPENDENCY ||--|| PROJECT : embeds
PROJECT ||--o{ VERSION : "tags from git"
PROJECT ||--o{ STORED_TREE : "stored per version"
STORED_TREE ||--|| DEPENDENCY_NODE : root
DEPENDENCY_NODE ||--o{ DEPENDENCY_NODE : children
PROJECT {
string id PK "UUID"
string name "unique among roots ignoring case"
string repoUrl "git remote URL"
string description "nullable"
string tagPattern "nullable regex source"
}
PROJECT_DEPENDENCY {
string manifestPath "nullable manifest path"
string versionReference "nullable name or regex"
}
VERSION {
string version "tag name"
date creationDate "nullable"
string commitHash "nullable peeled commit"
}
STORED_TREE {
string projectId PK "root project id"
string version PK "requested version"
}
DEPENDENCY_NODE {
string projectId "project UUID"
string projectName "project name"
string version "resolved ref or unknown"
string declaredVersion "original declaration"
string resolvedVersion "nullable selected range tag"
date resolutionCheckedAt "nullable range-selection time"
}
Notes:
- Nested projects are embedded: they live inside their root's definition (
ProjectDependency.project), not in separate registry entries. The project CRUD API manages roots only. Nested projects have tag catalogs, but do not get independent tree scan jobs. - Persistent tags:
ProjectTagis stored independently of trees, keyed by project ID and tag name.Versionis the catalog-backed listing view. The diagram abstracts snapshot commit identity; the full key is project ID, version, and commit hash. - Node identity: a node's derived ID is
projectId@version(DependencyNode.id), andDependencyTree.flattenuses it to remove duplicates.
| Type | Fields | Source |
|---|---|---|
Project |
id, name, repoUrl, description, dependencies (array or null), tagPattern |
backend/src/domain/models/Project.ts |
ProjectDependency |
project (nested Project), manifestPath, versionReference (string, RegExp or null) |
backend/src/domain/models/ProjectDependency.ts |
Version |
version, creationDate, commitHash, removed, hasDependencyTree |
backend/src/domain/models/Version.ts |
ProjectTag |
projectId, name, commitHash, creationDate, removed |
backend/src/domain/models/ProjectTag.ts |
DependencyTree |
root, the top-level dependency node |
backend/src/domain/models/DependencyTree.ts |
DependencyNode |
projectId, projectName, version, dependencies, dependenciesResolved (defaults true), declaredVersion, nullable resolvedVersion and resolutionCheckedAt |
backend/src/domain/models/DependencyNode.ts |
Dependency (a parsed manifest entry) |
name, version |
backend/src/domain/models/Dependency.ts |
ParseResult |
dependencies, metadata.packageManager, metadata.raw |
backend/src/domain/types/ParseResult.ts |
DiffResult / DependencyChange |
added, removed, updated, each a list of {name, fromVersion, toVersion} |
backend/src/domain/types/DiffResult.ts |
DependencyScanResult (logged only) |
projectCount, tagCount, resolvedTreeCount, failures (projectId, optional version, error) |
backend/src/application/use-cases/ScanProjectDependencies.ts |
| Store | Projects | Trees | Source |
|---|---|---|---|
DATASTORE=json |
<cwd>/data/projects.json: { "projects": { "<rootId>": SerializedProject } } |
<cwd>/data/dependency-trees.json: version-keyed snapshot arrays containing root, commitHash, and projectConfiguration |
server.ts (buildDataStore), JsonFileDataStore.ts |
DATASTORE=mongodb |
Collection projects: a SerializedProject with _id set to the project ID |
Collection dependencyTrees: projectId, version, root, commitHash, projectConfiguration, savedAt; unique project/version/commit index |
MongoDataStore.ts |
Unset, empty or memory |
Nothing is stored and the registry starts empty | Nothing is stored or reused | server.ts |
Both stores share one serialization format, defined in backend/src/infrastructure/storage/DataStoreSerialization.ts. Regular-expression version references are stored as {pattern, flags}.
Nodes persist original declarations, selected range tags, and ISO UTC resolution timestamps. The earliest range timestamp determines the tree's TTL expiry; exact-only trees have no expiry. Both adapters exclude expired active trees from cache reads and snapshot-availability flags without deleting their data. Removed-root historical snapshots bypass expiry.
Tags are stored separately in <cwd>/data/tags.json as project-keyed arrays, or in MongoDB tags with a unique {projectId: 1, name: 1} index. There are no automatic datastore migrations.
- Mounting: all routes sit under
/api(server.ts) and are registered inbackend/src/interfaces/http/routes/routes.ts. The one exception is/api/hello, registered inserver.ts. - End-user access: no API route authenticates application users or enforces roles. Operators supply these controls through their own extension or fork.
- Errors: application errors use
{ "error": "<message>" }. Express handles malformed JSON before it reaches the routes.
| Method | Path | Auth / role | Handler | Purpose and responses |
|---|---|---|---|---|
| GET | /api/health |
None | inline, routes.ts |
Liveness check. 200 {"status":"ok"} |
| GET | /api/hello |
None | inline, server.ts |
Greeting endpoint. 200 {"message":...} |
| GET | /api/projects |
None | ProjectController.getAllProjects |
Root definitions from the in-memory registry. 200 {"projects": ProjectDefinitionDTO[]} |
| POST | /api/projects |
None | ProjectController.createProject |
Create a definition. 201, 400 invalid input, 409 duplicate name, 503 no datastore |
| GET | /api/projects/:projectId |
None | ProjectController.getProject |
One definition. 200 or 404 |
| PUT | /api/projects/:projectId |
None | ProjectController.updateProject |
Replace a definition, invalidating active cache reuse while retaining history. Repository URL changes clear old tags and snapshots. 200, 400, 404, 409, 503 |
| DELETE | /api/projects/:projectId |
None | ProjectController.deleteProject |
Delete a definition and its stored trees. 204, 404, 503 |
| GET | /api/projects/:projectId/versions |
None | VersionController.getAvailableVersions |
List stored active/removed tags when scans are enabled; refresh source if the cached list is empty, scans are disabled, or ?forceRefresh=true. 200 {projectId, versions: VersionDTO[], latest} |
| GET | /api/versions?projectId= |
None | VersionController.getAvailableVersions |
Query alias of the row above |
| GET | /api/projects/:projectId/versions/:requestedVersion |
None | VersionController.getVersion |
Exact tag name or latest, without adding or removing v. 200 {projectId, requestedVersion, resolvedVersion} or 404 |
| GET | /api/versions/resolve?projectId=&requestedVersion= |
None | VersionController.getVersion |
Query alias; version= also works |
| GET | /api/projects/:projectId/versions/:version/dependencies |
None | DependencyController.resolveDependencies |
Resolve or reuse the tree. 200 DependencyTreeDTO |
| GET | /api/dependencies?projectId=&version= |
None | DependencyController.resolveDependencies |
Query alias |
| GET | /api/projects/:projectId/find-root-version?dependencyProjectId=&minimumVersion= |
None | VersionSearchController.findVersion |
Start of the latest inspectable containing release run, found newest-first through the first non-match; confirmed missing refs are skipped. 200 FindRootVersionDTO, with match: null for no current run; 400 invalid input; 500 other incomplete or unorderable search |
| GET | /api/projects/:projectId/commit-diffs?fromVersion=&toVersion= |
None | CommitDiffController.compareCommits |
Root or configured nested project's exclusive commit histories. 200 CommitDiffDTO; 400 invalid/repeated input; 404 unknown project/ref; 500 Git or link-provider failure |
| GET | /api/projects/:projectId/diffs/:fromVersion/:toVersion |
None | DiffController.compareVersions |
Root package.json diff. 200 DiffResultDTO |
| GET | /api/projects/:projectId/diffs?fromVersion=&toVersion= |
None | DiffController.compareVersions |
Refs as query parameters; fromRef and toRef also work |
| GET | /api/diffs?projectId=&fromVersion=&toVersion= |
None | DiffController.compareVersions |
Query alias |
Response DTOs:
ProjectDefinitionDTOandDependencyDefinitionDTO:backend/src/application/dto/ProjectDefinitionDTO.tsDependencyTreeDTO, which is{projectId, projectName, version, tree}wheretreeis aDependencyNodeDTO. Each node includescreationDateas an ISO UTC string or null. Range nodes also exposedeclaredVersion, nullableresolvedVersion, and ISO UTCresolutionCheckedAt;versionremains the single UI/display value. Nodes emit optionaldependenciesResolved: falsefor unresolved inspection; absence means true:backend/src/application/dto/DependencyTreeDTO.tsDiffResultDTO, which is{projectId, projectName, fromVersion, toVersion, compareUrl, added, removed, updated}:backend/src/application/dto/DiffResultDTO.tsCommitDiffDTO:projectId,projectName,fromVersion,toVersion, fullfromCommitHashandtoCommitHash, andfromOnly/toOnlyarrays of{hash, subject, committedAt, url}.committedAtis the Git committer's ISO timestamp with its original offset, not the author or tag date. The arrays contain commits reachable only from their respective refs:backend/src/application/dto/CommitDiffDTO.ts.VersionDTO:version,creationDate,commitHash,removed,hasDependencyTree; the Git date is an ISO string or null (backend/src/application/dto/VersionDTO.ts).FindRootVersionDTO:projectId,dependencyProjectId,minimumVersion,checkedVersions,totalVersions,warnings, and nullablematch; a match containsversion,dependencyVersion,path, anddependencyTree. Warnings are grouped by inspected root tag and identify unavailable trees or distinct unresolved dependency versions (backend/src/application/dto/FindRootVersionDTO.ts).
Status codes:
Project CRUD lookups return 404 for unknown roots. Tree requests return 404 for removed tags without saved snapshots. Find Root Version returns 400 for invalid input, including an unknown root or invalid minimum tag, and 500 when a retrieval failure prevents the search from completing. Commit changelogs distinguish an unavailable ref (404) from a failed comparison (500); failures are not returned as empty commit lists. See the backend API reference.
| Route | Component | Auth / role | Purpose | Source |
|---|---|---|---|---|
/ |
n/a | None | Redirects to /tree |
frontend/src/app/app.routes.ts |
/tree, /tree/:projectId |
DependencyTreeComponent |
None | Browse and compare resolved trees | app.routes.ts |
/builder |
TreeBuilderComponent |
None | Edit project definitions | app.routes.ts |
/find-root-version |
FindRootVersionComponent |
None | Find Root Version: start of the latest inspectable parent release run meeting a dependency minimum | app.routes.ts |
All three screens use the shared ProjectDefinitionApiService for same-origin calls to /api/projects and its subroutes. The Angular development server proxies /api/** to the backend. The browser uses commit changelogs, not the package-manifest diff endpoint.
| Variable | Default | Allowed values and effect | Source |
|---|---|---|---|
PORT |
3000 |
HTTP port | server.ts |
FRONTEND_DIST |
unset, meaning API-only | Optional Angular browser build directory, absolute or relative to the working directory; must contain an index.html file. The Docker image sets /app/frontend. |
server.ts, root Dockerfile |
DATASTORE |
unset, meaning no persistence | json, mongodb or memory; any other value fails startup |
server.ts (buildDataStore) |
MONGODB_URI |
none | Required when DATASTORE=mongodb |
server.ts |
MONGODB_DATABASE |
dependency_parser |
MongoDB database name | server.ts |
CLONE_ROOT |
<cwd>/data/repositories/git |
Clone cache folder | server.ts |
LOG_LEVEL |
info |
error, warn, info or debug; invalid values prevent startup |
backend/src/config/app.config.ts |
DEPENDENCY_SCAN_ENABLED |
true |
true or false; any other value fails startup |
app.config.ts |
GIT_MAX_CONCURRENCY |
4 |
Positive safe integer; shared active Git-command limit and per-phase background worker count; 1 serializes each phase |
app.config.ts, server.ts |
GITHUB_TOKEN |
none | Optional shared backend PAT for HTTPS github.com remotes with Git 2.31+; trims surrounding whitespace, ignores blank values, rejects embedded whitespace/control characters |
app.config.ts, server.ts, GitCliClient.ts |
DEPENDENCY_RESOLUTION_RETRIES |
2 |
Nonnegative safe integer; additional attempts for confirmed missing dependency refs, shared across concurrent requests for the same dependency/ref | app.config.ts, DependencyResolverService.ts |
NPM_RANGE_RESOLUTION_TTL_MINUTES |
1440 |
Positive safe integer minutes; persisted npm range selections expire for API requests and background scans, without affecting exact-only trees | app.config.ts, storage adapters, ScanProjectDependencies.ts |
DEPENDENCY_SCAN_INTERVAL_MINUTES |
15 |
Must convert to a whole number of milliseconds from 1 to 2147483647 | app.config.ts |
See backend environment setup for the example file, credential handling, and shell overrides.
flowchart TB
subgraph FE["frontend - Angular SPA"]
shell["AppComponent and router"]
treeView["DependencyTreeComponent"]
builder["TreeBuilderComponent"]
rootSearch["FindRootVersionComponent"]
apiSvc["ProjectDefinitionApiService"]
end
subgraph IF["backend interfaces - HTTP"]
server["server.ts composition root"]
routes["routes.ts"]
ctrls["API controllers"]
end
subgraph SCH["backend scheduler"]
scanSched["ScanScheduler"]
end
subgraph APP["backend application"]
uc["Use cases"]
scanUc["ScanProjectDependencies"]
resolver["DependencyResolverService"]
locator["VersionLocatorService"]
diff["DiffService"]
projSvc["ProjectService"]
end
subgraph DOM["backend domain"]
ports["Ports such as IGitClient, IDataStore and IProjectRegistry"]
models["Models such as Project, Version and DependencyTree"]
end
subgraph INFRA["backend infrastructure"]
gitc["GitCliClient"]
parsers["NpmPackageParser and MavenPackageParser"]
gh["AutoDetectSourceControlProvider and GitHubProvider"]
reg["ProjectRegistry in memory"]
jsonStore["JsonFileDataStore"]
mongoStore["MongoDataStore"]
end
shell --> treeView
shell --> builder
shell --> rootSearch
treeView --> apiSvc
builder --> apiSvc
rootSearch --> apiSvc
apiSvc -->|"HTTP JSON"| routes
server --> routes
server --> scanSched
routes --> ctrls
ctrls --> uc
ctrls --> projSvc
uc --> resolver
uc --> locator
uc --> diff
scanSched --> scanUc
scanUc --> locator
scanUc --> resolver
resolver --> ports
locator --> ports
diff --> ports
projSvc --> ports
ports --- models
gitc -.->|"implements"| ports
parsers -.->|"implements"| ports
gh -.->|"implements"| ports
reg -.->|"implements"| ports
jsonStore -.->|"implements"| ports
mongoStore -.->|"implements"| ports
- Composition:
server.tswires the adapters, services, use cases, and controllers. HTTP requests and background scans share the Git client, project registry, datastore, version locator, and tree resolver, so their queues and request deduplication work across both paths. - Comparisons: package diffs and commit changelogs use the same hostname-based browser-link provider. Commit comparisons keep their Git history and result caches separate from the scan catalogs.
- Tree timestamp metadata: a shared service reads dates from stored catalogs or existing local clones and adds them to tree responses. It does not fetch remote tags or modify stored snapshots. See the timestamp contract.
sequenceDiagram
autonumber
actor U as Engineer
participant SPA as Angular SPA
participant R as Express router
participant C as DependencyController
participant UC as ResolveProjectDependencies
participant S as DependencyResolverService
participant DS as IDataStore
participant G as GitCliClient
participant P as Package parser
U->>SPA: select a project and a version
SPA->>R: GET dependencies for the project and version
R->>C: resolveDependencies
C->>C: read projectId and version from the path or the query
C->>UC: execute
UC->>S: resolve
S->>DS: getProjectTag then getDependencyTree for the commit
alt complete matching snapshot or retained removed-tag snapshot
DS-->>S: stored tree
else missing or containing unknown or unresolved inspection
loop each node depth first
S->>G: Prepare the clone or fetch if the requested ref is missing
S->>G: Read the manifest at the parent ref
S->>P: parseDependencies
P-->>S: names and versions
end
S->>DS: saveDependencyTree
end
S-->>UC: DependencyTree
UC-->>C: DependencyTree
C-->>SPA: 200 with DependencyTreeDTO, or an error JSON body
SPA-->>U: render the tree
After resolution, the controller adds creation dates through the shared metadata service before serializing the DTO. Find Root Version applies the same enrichment only to its matched tree, not to every tree inspected during the search.
The backend follows ports and adapters (hexagonal architecture). HTTP controllers and the scheduler call the application layer, which uses domain models and ports. Infrastructure provides the adapters. The domain has no dependency on frameworks or Node.js built-ins.
| Layer | Folder | Responsibility | Depends on |
|---|---|---|---|
| Domain | backend/src/domain/ |
Models, types, and ports such as IGitClient, IDataStore, and IProjectRegistry |
Nothing |
| Application | backend/src/application/ |
Services, use cases and DTO mappers | Domain and Node.js built-ins |
| Infrastructure | backend/src/infrastructure/ |
Git CLI, parsers, hosting-platform browser URLs, in-memory registry, JSON and MongoDB stores | Domain, Node.js built-ins, and adapter libraries |
| Interfaces | backend/src/interfaces/http/ |
Express server, routes and controllers; server.ts is also the composition root |
Application, infrastructure, and (as composition root) scheduler, config and utils |
| Scheduler | backend/src/scheduler/ |
Interval timer and scan lifecycle | Application, utils |
| Config and utils | backend/src/config/, backend/src/utils/ |
Environment parsing and the logger | Each other only: the logger reads its level through config/app.config.ts |
The Angular app is a separate npm package with no shared code. It reaches the backend only over HTTP.
- Composition: validate configuration, initialize adapters and services, and load saved root projects into the registry before mounting routes.
- Startup: listen on
PORT, then begin automatic scans if enabled and persistence is configured. - Shutdown: stop accepting requests and scheduling scan jobs. Wait for active scan work before closing the datastore; normal shutdown also waits for comparisons and removes their temporary histories.
A project requires a name and repository URL. Dependencies embed their own project definitions recursively, with a manifest path and a version reference. A version reference can be an exact package name, a /pattern/flags string, or a {pattern, flags} object. The tag pattern must be a valid regular expression.
Root names are unique ignoring case; direct sibling dependency names must also be unique. A new root receives a UUID. Nested IDs are retained only if valid and unused. Writes update the datastore before the in-memory registry; project reads use the registry and return root definitions with their nested dependencies.
Roots and configured nested dependencies each have a catalog based on their own repository and tag pattern. The version-list endpoint reuses a populated catalog when scans are enabled. An empty catalog, disabled scans, or forceRefresh=true triggers a Git refresh. Scheduled scans always refresh the source.
With a selective pattern and Git 2.45+, the backend can filter remote tag refs before transferring objects. The compatibility path uses a full, blobless clone and tag-only refreshes. Tag discovery and tree resolution share a per-project clone cache; a missing source ref can cause a shallow catalog to expand to full history. See tag history and snapshots.
Only a successful complete refresh updates the stored catalog. Missing matching tags are retained with removed=true, and reappearing tags become active again. Tags outside the current pattern are dropped from the catalog without deleting their saved trees. An unset pattern accepts all tags.
Tags are sorted by creation date, newest first, with numeric tag-name tie-breaking and undated tags last. Annotated tags use the tagger date; lightweight tags use the referenced commit's committer date. latest refreshes tags and selects the newest active entry. Removed entries indicate whether a saved tree is available.
Exact lookups and tag patterns use original names: v5.3.0 and 5.3.0 are distinct. A pattern can include both forms without making them aliases.
Starting point: the resolver checks tag metadata and saved trees. A complete active snapshot can be reused when it matches the recorded commit and current project configuration and resolution policy, with unexpired npm range selections. Explicit requests can retry incomplete inspection while reusing still-fresh range selections, including no-match results. A removed tag returns its retained snapshot, even if incomplete; without one, the tree is unavailable. Active tracked tags are built at their recorded commit and keep the original tag name in the root node.
Building a node:
- Read the configured manifest at the parent's ref, preparing the Git cache if needed.
- Select the parser by filename and find the entry matching
versionReference. - Use literal refs for exact declarations. For npm ranges, select the highest compatible active Git tag allowed by the dependency's pattern, using npm SemVer rules.
- Recurse at the original selected ref. Range nodes retain
declaredVersion, nullableresolvedVersion, andresolutionCheckedAtalongside the displayversion.
Range selection is inferred from Git tags, not a reconstruction of a historical installation. The resolver does not use lockfiles or the npm registry. See the npm range contract.
Edge cases:
- Missing version data: a missing manifest/reference or no matching version produces
unknownfor that dependency and its configured descendants. - No compatible npm tag: preserve the declaration, set
resolvedVersion=nullanddependenciesResolved=false, populate configured descendants as unknown, and log a warning. The attempted resolution has a timestamp and can be retried after TTL expiry. - Unavailable dependency ref: after bounded retries for confirmed missing refs, the node retains its declared version with
dependenciesResolved=false. Its configured descendants areunknown; an unavailable leaf still has no children. - Cycles: stopped by tracking
projectId@versionancestry. - Saving: the finished tree is saved under the root project, requested version, and known commit hash, with its project configuration.
- Retry boundaries: root-ref, authentication, network, configuration, manifest, and datastore failures remain errors rather than falling back to partial data.
IDataStore (backend/src/domain/interfaces/IDataStore.ts) has two implementations. The choice is made at startup with DATASTORE, and there is no fallback between them.
- JSON files: project definitions, tag catalogs, and tree snapshots are separate files. Operations are serialized in-process. Reads parse the whole file; writes replace it. An absent file is treated as empty.
- MongoDB: projects, tags, and snapshots use separate collections and per-document upserts. Unique indexes enforce tag and snapshot identities.
Snapshots are keyed by root project, version, and commit. Their configuration fingerprint covers the project definition and the version-resolution policy. A moved tag or changed configuration invalidates active reuse without deleting prior snapshots. Removed tags can use historical snapshots. Changing a repository URL or deleting its project clears that project's catalog and snapshots.
For trees with npm ranges, expiry is measured from the earliest saved range-resolution timestamp, including no-match selections. NPM_RANGE_RESOLUTION_TTL_MINUTES defaults to one day. The next request or scan rebuilds an expired active tree; a failed refresh does not serve expired data as though it were current. Exact-only trees and retained removed-tag snapshots do not expire.
sequenceDiagram
autonumber
participant SV as server.ts
participant SS as ScanScheduler
participant UC as ScanProjectDependencies
participant REG as ProjectRegistry
participant VL as VersionLocatorService
participant RS as DependencyResolverService
participant LOG as logger
SV->>SS: start after the HTTP server is listening
SS->>SS: refresh now and on interval ticks with a tag-refresh guard
SS->>UC: refreshTags with a stop check
UC->>REG: getAllProjects
loop each unique configured project
UC->>VL: getAvailableVersions
Note over VL: git fetch tags, apply tagPattern, persist catalog
UC->>UC: merge active jobs for registered roots only
end
UC-->>SS: tag counts and failures
SS->>LOG: tag-refresh summary
Note over SS,UC: bounded interval tag refreshes continue while tree workers run
SS->>UC: buildDependencyTrees with a stop check
loop each free worker while jobs remain
UC->>UC: select the newest pending tag across projects
UC->>RS: resolve the project and version
Note over RS: reuse a complete matching snapshot or build and save
end
UC-->>SS: tree counts and failures
SS->>LOG: tree-processing summary and pending count
- Schedule: with persistence and scanning enabled, refreshes start when the API is listening and repeat at the configured interval. An overlapping tag refresh skips the tick; active tree work does not.
- Discovery: each pass refreshes the catalog for every unique root and configured descendant, whether or not its tags appear in a tree.
- Queue: only active registered-root tags become tree jobs. Jobs are deduplicated by project, tag, commit, and project configuration; refreshes discard obsolete pending jobs. Current saved trees are skipped, including partial ones, but expired npm range trees are eligible again.
- Priority: free workers take the newest tags by creation date across projects. Numeric tag-name order breaks date ties and orders undated tags, which come last. New jobs can move ahead of pending work without interrupting running trees.
- Failures: failures are isolated by project or tag. A failed tree job can be retried by later refreshes, up to three total attempts per unchanged job per process run.
- Stopping: shutdown stops scheduling and starting work, then waits for active refreshes and trees. Git commands are not forcibly cancelled.
The queue and retry history are in memory and are not coordinated between processes. There is no scan-history API; logs report progress and failures. Continuous arrival of new tags can delay older jobs. See backend scan operations.
The package diff compares the root package.json dependencies between two refs and reports added, removed, and updated entries. It uses a full temporary clone for each comparison and deletes it afterward. This endpoint is API-only.
The same hostname-based provider builds package comparison links and commit links. Browser links omit credentials and use the platform's URL format, while Git uses the configured clone address unchanged. Unsupported or malformed browser-link addresses fail explicitly. See the backend browser-link contract for supported hosts and formats.
Commit changelogs compare the Git history of two refs for a registered root or a configured nested project. They return the commits exclusive to each side, descendants first, rather than comparing manifests or version numbers. Shared commits are excluded, and identical commits produce two empty lists.
On a cache miss, exact tag comparisons fetch the selected histories into isolated repositories and deepen them until the complete difference is known. Stored tag identities can guide retrieval but do not replace resolving the current refs. General Git refs can require a separate temporary clone. Neither path updates the scan catalogs. Failed or incomplete retrieval returns an error, not a partial or empty changelog.
The backend retains a bounded set of temporary history repositories and caches successful results in memory for up to 24 hours. Reversed requests reuse the result with the two sides swapped. A catalog refresh does not invalidate that cache, so moved or deleted tags may show stale results until expiry, eviction, or restart. Without a cached result, a deleted ref returns 404 even if a saved tree is still available. See the backend changelog contract for cache limits and error responses.
The backend reads configuration at startup from the environment or backend/.env. Console logging is controlled by LOG_LEVEL. See process lifecycle for initialization and shutdown behavior.
- Browse: select a project and version, filter and expand or collapse the resolved tree, copy versions, and open repository links. The last selection and comparison are remembered in browser storage.
- Compare: the browser merges two trees by
projectIdand marks rowsunchanged,changed,added, orremoved. Changed rows expose Show changes to load exclusive commits for that row on demand, with separate baseline and comparison lists. - Version picker: both pickers share a searchable catalog and a Refresh versions action. A failed refresh keeps the previous list and selections. Removed tags are selectable only when their saved trees are available.
- Tag dates: hover or keyboard focus on a version shows its tag date in GMT, if known. Baseline and comparison dates are independent and come from the tree response, without extra requests.
See the frontend screen reference for picker, tree, and dialog behavior.
Tree Builder creates and edits nested project definitions. It checks for duplicate sibling names, supports saving and deleting through the API, and imports or exports JSON. Validation errors keep the draft available for correction.
Drafts and the last selected project are kept in browser storage. A saved-project draft is restored only after the project list confirms that the project is still available. New, unsaved drafts can be edited offline.
The user selects a root, a configured descendant, and a minimum dependency version. Before inspecting root releases, the backend refreshes that dependency's catalog and requires an exact active tag that matches its pattern. An invalid minimum is a validation error, not a no-match result. The root catalog uses the ordinary scan-aware listing policy.
The search visits root tags by creation date, newest first, using numeric fields to break ties and ordering undated tags last. Dependency versions are compared numerically, reading digit sequences from left to right, not by SemVer prerelease precedence. The search retains the last qualifying tree and stops at the first confirmed non-match. That finds the start of the latest inspectable qualifying run, not the oldest historical match.
A known qualifying occurrence is enough to match. If no known occurrence qualifies, unknown versions on paths that could contain the selected dependency make that release undecidable. Such releases and confirmed missing refs are skipped, not treated as non-match boundaries. Other retrieval or resolution failures end the search with an error. checkedVersions includes skips and the stopping boundary; totalVersions is the catalog size. Warnings are grouped by inspected root tag and can accompany either a match or no match. See the backend search contract.
The screen displays the matching version, dependency path, counts, and returned tree without another tree request. It also distinguishes no match from a failed search and shows warning details. The browser restores the last completed result, including no match, after validating the project and dependency, without rerunning the search. Changing inputs or starting a new search clears the saved result and cancels obsolete requests.
The repository provides a combined test Docker image and downloadable CI image artifacts with matching Git tags. Production deployment, registry publishing, compose/orchestration manifests, and infrastructure-as-code are not defined. Local development still uses separate Angular and Node processes.
The root Dockerfile packages both builds. A single non-root Node process serves Angular assets and /api on port 3000. The image defaults to JSON persistence; mount /app/backend/data to retain the datastore and clone cache. Local data and credentials are excluded from the build context.
The image health check verifies /api/health, not external Git or MongoDB. Runtime secrets must be injected rather than baked into the image. See the Docker and Podman commands and CI image download instructions.
flowchart LR
subgraph dev["Developer workstation"]
browser["Browser"]
ng["Angular dev server on port 4200"]
node["Node backend on port 3000"]
data["backend data folder"]
end
remote["Git remotes"]
mongo["Optional MongoDB"]
browser -->|"SPA assets"| ng
ng -->|"API proxy on /api"| node
node -->|"JSON store and clone cache"| data
node -->|"git CLI"| remote
node -.->|"DATASTORE mongodb"| mongo
Local development runs the backend and frontend separately; the Angular server proxies /api to the backend. See the startup commands. For same-origin hosting without the development server, set FRONTEND_DIST to serve the Angular build and its HTML routes alongside the API. See frontend hosting.
- Tools: Node.js in the range declared by the root
enginesfield and npm 10+; see the development prerequisites. - Git: a git CLI on
PATH, with the credentials needed for every configured repository. Optional HTTPS GitHub token authentication requires Git 2.31+; see the backend setup. - Storage: a writable clone cache (
CLONE_ROOT), and a writablebackend/data/for the JSON store in the standard local layout. - Configuration: environment variables from Section 7.6, from the environment or
backend/.env. - MongoDB: a reachable server when
DATASTORE=mongodb.
The packaged image requires a Linux container engine instead of host Node, npm, and Git installations. Any bind-mounted data directory must be writable by the container user; see the container configuration.
Environment provisioning, deployment pipelines, and database operation are operator responsibilities, not services supplied by this project. Before shared or production use, address these application limitations and environment-specific needs:
- Release hardening: immutable base-image selection, image registry publishing, and deployment/orchestration policy beyond the downloadable test images.
- Access: implement end-user authentication and authorization in an operator-maintained extension or fork, provision TLS, and secure the external serving boundary. Same-origin hosting does not secure the API.
- Secrets: production delivery and rotation for
MONGODB_URIand Git credentials. OptionalGITHUB_TOKENis environment-backed, not a secret-manager integration. - Storage: production volume provisioning, optional MongoDB setup, and backup/recovery for the configured datastore and clone caches.
- Single scanner: make sure only one instance scans.
- Health: a health check that covers the datastore and git.
The GitHub Actions workflow verifies branch pushes, pull requests, and manual runs. It installs from lockfiles, lints, builds both applications, and runs application and workflow tests. Each application has its own coverage gate; failing verification blocks image packaging. Coverage reports are uploaded as downloadable artifacts.
Run npm run verify for local verification. See the contributor guide for prerequisites and available checks.
Successful main and pull-request verification runs build and smoke-test a combined container. The image is uploaded as a downloadable archive with a build-version tag and a commit tag; it is not published to a registry or deployed. See Loading a CI image.
Mainline CI tags use main.<N> and reuse an existing tag for the same commit. Pull-request versions use main.<N>-pr<PR-number>.<build-sequence>. A separate tag job writes immutable tags after artifact upload; fork PRs receive image artifacts without writing Git tags. Build tags identify tested snapshots, not official releases.
The local launcher runs the CI workflow with act on Linux or Windows with Git Bash. With a branch checked out, run bash ./run-local-ci.sh from the repository root and select Docker or Podman. It validates and packages locally without pushing Git tags or uploading artifacts. Only run trusted workflow code: the runner can access the container engine.
Use Docker in Linux container mode, or start the Podman API service on Linux. Podman also needs this runner image in the same engine context:
podman build --format docker --tag localhost/dependency-parser-act-podman:local - <<'EOF'
FROM docker.io/catthehacker/ubuntu:act-latest
RUN ln -snf ../run /var/run
EOFUse the documents below for component-specific contracts, development workflows, and operations.
| Document | Scope |
|---|---|
| Repository README | Project overview and entry points for usage, contribution, and technical references |
| Contribution guide | Issue-first workflow, pull requests, verification, and coverage |
| Running guide | Shared setup, container commands, startup checks, CI image loading, and deployment responsibilities |
| Backend reference | HTTP APIs, parsing, persistence, tag catalogs, background scans, logging, and environment settings |
| Frontend reference | Angular screens, browser state, routing, and development/test commands |
| Express demo | End-to-end project definition, dependency comparison, and version lookup workflows |
| Governance and security policy | Contribution controls, release authority, supported revisions, and private vulnerability reporting |