err0r500/go-realworld-clean
72.3
Strong · 8 November 2026
2k
lines of production code
Go
primary language
7
measurements over time
What this system is
This system is a Go-based REST API implementation of the RealWorld specification, providing endpoints for user authentication, article management, and social interactions. It supports core features such as creating and retrieving articles, managing comments, and handling article favorites and tags. The architecture utilizes an in-memory storage backend with a clean, modular design that separates domain models, use-case logic, and infrastructure concerns.
Features
Article comments, favorites, and tags endpoints implemented
The API now supports creating, retrieving, and deleting comments on articles, as well as adding and removing article favorites. A new endpoint allows fetching available tags. These features are backed by in-memory storage implementations and include corresponding integration tests to verify correct HTTP status codes and JSON responses.
implem · high confidence
Behavioural changes
Migrate from dep to Go modules and add comment support
The project has switched from the legacy dep vendor tool to native Go modules, removing Gopkg.lock and Gopkg.toml and updating the build and test scripts (Makefile, .travis.yml) to use GO111MODULE=on and a new testCoverage.sh script. Additionally, the application now supports article comments by introducing new in-memory storage implementations for comments and tags, a new slugger, and an article validator, all wired into the main router via the HandlerConstructor.
(repo-wide) · high confidence
Refactored Article and User domain models with new update and filter capabilities
The Article model now tracks users who favorited an article via a new FavoritedBy slice instead of a simple boolean, and supports filtering by tag, author, or favorited status. Article updates are now handled through a functional options pattern (UpdateArticle) allowing selective updates to title, description, or body. The User model has been expanded to include CreatedAt and UpdatedAt timestamps, a list of favorited articles, and methods to update follow relationships. Profile-specific tags and favorite usecases have been removed from this domain layer, consolidating the model structure.
domain · high confidence
Refactored use-case layer with granular interfaces and enriched article metadata
The use-case (uc) package has been restructured to replace the monolithic interactor with a modular Handler interface composed of distinct logic interfaces (ProfileLogic, UserLogic, ArticlesLogic, ArticleLogic, CommentsLogic, FavoritesLogic, TagsLogic) and a HandlerConstructor that enforces dependency injection for components like UserRW, ArticleRW, CommentRW, and TagsRW. This refactoring introduces several behavioral changes: article retrieval and modification operations (Get, Post, Put, Delete) now return the requesting user's profile alongside the article, enabling clients to display follow/favorite status; the ArticlesFeed and GetArticles endpoints now include the requesting user in their response; profile viewing distinguishes between authenticated and anonymous requests by returning a follow boolean; and comment creation/deletion now synchronously updates the parent article's comment list. Additionally, the tag and favorite management capabilities have been implemented, and error handling has been standardized with specific error variables like ErrAlreadyInUse and ErrNotFound.
uc · high confidence
Updated CORS configuration and added test population flag
The server's CORS middleware now explicitly constructs the allowed HTTP methods list using standard library constants (GET, PUT, POST, OPTIONS, PATCH) instead of a hardcoded string, ensuring consistency. Additionally, a new \--populate\ boolean flag has been added to the database configuration, allowing users to populate the database for integration testing purposes, replacing previous flags related to BoltDB path and delta merging.
infra · high confidence
Updated test data fixtures and added JSON schema definitions
The test data package now includes a new \jsonShemas.go\ file containing JSON Schema definitions for User, Profile, Article, and Comment entities, enabling validation of API responses against these structures. Existing test fixtures in \example.go\ have been updated: user credentials and identifiers were changed (e.g., 'rick' to '[e-mail redacted]'), the \Article\ model's \Favorited\ boolean field was replaced with a \FavoritedBy\ slice of users, and comment IDs were adjusted. Additionally, build tags restricting compilation were removed from \example.go\.
testData · high confidence
Dependencies
Migrated to Go Modules
The project has switched to Go modules, introducing go.mod and go.sum files to manage dependencies. This change establishes the module path as github.com/err0r500/go-realworld-clean and sets the minimum Go version to 1.13, replacing the previous dependency management approach with a standardized module system.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 72 → 72 (+0.4)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 82 → 82 (+0.0)
- Architecture 98 → 95 (-2.8)
- Maturity 65 → 65 (+0.0)
- Readiness 70 → 70 (+0.0)
- Security 85 → 92 (+6.6)
New (1)
- High interface indirection
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
err0r500/go-realworld-clean 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 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 137f16f344f03dc4e3c8b5096b7b5593b234f508 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.