Furkan-Gulsen/golang-url-shortener
60.9
Adequate · 21 September 2026
859
lines of production code
Go
primary language
4
measurements over time
What this system is
Features
Add DynamoDB repository implementations for links and statistics
The application now includes concrete repository implementations for managing link data and usage statistics via AWS DynamoDB. New files, link.go and stats.go, provide the data access layer for the Link and Stats domains, implementing methods to create, read, update, and delete records in DynamoDB tables. This enables the core domain logic to interact with persistent storage for both URL shortening and analytics features.
internal/adapters/repository · high confidence
Add URL shortener handlers and Slack integration
The application now exposes HTTP handlers for creating, deleting, and redirecting short links, as well as retrieving link statistics. A new Redis cache adapter is introduced for data storage. Additionally, the system now sends messages to an AWS SQS queue upon link creation and integrates with Slack to post notifications.
internal/adapters/handlers · high confidence
Centralized configuration management for application services
The application now uses a centralized configuration module to manage environment variables for DynamoDB, Redis, and Slack. Users can now configure the DynamoDB table names, Redis connection details (address, password, DB), and Slack integration tokens via environment variables, with sensible defaults provided for local development.
internal/config · high confidence
Introduced new service layer for link and statistics management
Added new service implementations for managing links and statistics, each delegating to corresponding ports (LinkPort, StatsPort, and Cache) to handle data operations. The LinkService provides methods to retrieve, create, and delete links, while the StatsService manages statistics data, including retrieving stats by link ID. Both services wrap port interactions with error handling, ensuring that failures in underlying data access are properly propagated.
internal/core/services · high confidence
New Lambda functions for link management and stats tracking
The application now deploys dedicated AWS Lambda functions for each core operation: generate, redirect, delete, stats, and a notification handler for Slack. Each function wires up the corresponding service (link or stats) with its repository and cache, exposing a specific entry point (e.g., CreateShortLink, Delete, Redirect, Stats) to the cloud environment.
internal/adapters/functions · high confidence
Architecture
Introduced hexagonal architecture ports for caching, links, and statistics
The application's internal core now exposes explicit interface-based ports for cache operations, link management, and statistics. These new ports define the contracts for interacting with external services and the domain layer, supporting a shift toward a hexagonal architecture. Specifically, the Cache, Link, and Stats ports each provide methods for CRUD operations and data retrieval, allowing the core logic to remain decoupled from specific implementations.
internal/core/ports · high confidence
Behavioural changes
Introduced domain models for links and platform-specific statistics
Added new domain structures for the application's core entities. The Link model now includes a CreatedAt timestamp and a collection of Stats. A new Stats model has been introduced, featuring a Platform enum to categorize metrics by source (Instagram, Twitter, or YouTube), each with its own ID, associated LinkID, and creation timestamp.
internal/core/domain · high confidence
Test coverage
Added benchmark tests for link service; Added mock implementations for link and stats repositories; Added unit tests for link generation, redirection, stats, and Slack integration.
Dependencies
Added Go module manifest and lockfile
Introduced go.mod and go.sum files to define the project's Go module path (github.com/Furkan-Gulsen/golang-url-shortener) and lock in specific versions of dependencies, including AWS SDKs, Redis, and Slack libraries.
(dependencies) · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 59 → 61 (+1.9)
- Rubric changed (rubric-2026.08.18 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 98 → 98 (+0.4)
- Architecture 69 → 69 (+0.0)
- Maturity 51 → 51 (+0.0)
- Readiness 53 → 60 (+6.4)
- Security 84 → 87 (+3.0)
Resolved (18)
- Coverage not included — suite not readable by the collector
- Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- Duplicated block (10 lines × 2) (internal/adapters/functions/delete/main.go)
- Duplicated block (10 lines × 2) (internal/adapters/functions/generate/main.go)
- Duplicated block (12 lines × 2) (internal/adapters/repository/link.go)
- Duplicated block (12 lines × 2) (internal/adapters/repository/stats.go)
- Duplicated block (15 lines × 2) (internal/adapters/repository/link.go)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Medium CVE: [GHSA redacted] (go.mod)
- Medium CVE: GO-2022-0635 (go.mod)
- Medium CVE: GO-2023-2185 (go.mod)
- Medium vulnerability: [GHSA redacted] (go.mod)
- No exposed public API
- Test reliability not included
- The prerequisites section lists only 'AWS account' without specifying which AWS services (Lambda, S3, DynamoDB) are required and how they interact. (README.md)
- single-maintainer — knowledge-concentration (bus factor) risk
New (39)
- Deprecated module: github.com/aws/aws-sdk-go
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
- Duplicated block (11 lines × 2) (internal/adapters/functions/generate/main.go)
- Duplicated block (12 lines × 2) (internal/adapters/functions/delete/main.go)
- Duplicated block (12 lines × 2) (internal/adapters/repository/link.go)
- Duplicated block (13 lines × 2) (internal/adapters/repository/link.go)
- Duplicated block (13 lines × 2) (internal/adapters/repository/stats.go)
- Duplicated block (17 lines × 2) (internal/adapters/repository/link.go)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Low IaC: AWS-0125 (template.yaml)
- Low IaC: AWS-0125 (template.yaml)
- Low IaC: AWS-0125 (template.yaml)
- Low IaC: AWS-0125 (template.yaml)
- Low cohesion: AppConfig (LCOM4 4) (internal/config/config.go)
- Medium CVE: [GHSA redacted] (go.mod)
- …and 19 more
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
Furkan-Gulsen/golang-url-shortener was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 03d5641aabef6456e39f084fba370c656ff5d020 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-28e75b8e3254.