A habit tracker app which treats your goals like a Role Playing Game.
This report summarizes scanner evidence for HabitRPG/habitica, a JavaScript project with 14,201 GitHub stars. SynthScan examined 541,144 lines of code across 2767 source files, recording 812 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 14.4 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 90 finding(s).
Are imports declared and package/API names verified? 722 finding(s).
Are wrappers, guards, and repeated structures necessary? 77 finding(s).
Which changes need focused human review? 812 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 812 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | test/api/unit/models/group.test.js | 687 | await expect(Group.validateInvitations({}, res)).to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL⚡ | test/api/unit/models/group.test.js | 697 | await expect(Group.validateInvitations({ uuids: 'user-id' }, res)).to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL⚡ | test/api/unit/models/group.test.js | 707 | await expect(Group.validateInvitations({ emails: 'user@example.com' }, res)).to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL | test/api/unit/models/group.test.js | 718 | .to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL | test/api/unit/models/group.test.js | 729 | .to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL | test/api/unit/models/group.test.js | 740 | .to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL | test/api/unit/models/group.test.js | 761 | .to.eventually.be.rejected.and.eql({ | CODE |
| CRITICAL | test/api/unit/models/group.test.js | 1232 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/models/group.test.js | 1248 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 63 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 79 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 93 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 201 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 213 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 284 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 297 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 374 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/google.test.js | 402 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 73 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 85 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 95 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 115 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 269 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 292 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 501 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 525 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 551 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 591 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 640 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 655 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/apple.test.js | 668 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/cancel.test.js | 104 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/cancel.test.js | 139 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/cancel.test.js | 150 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/subscribe.test.js | 129 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/subscribe.test.js | 144 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/subscribe.test.js | 162 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/subscribe.test.js | 188 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/checkout.test.js | 152 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/checkout.test.js | 164 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/amazon/checkout.test.js | 176 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …api/unit/libs/payments/paypal/subscribe-cancel.test.js | 66 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …api/unit/libs/payments/paypal/subscribe-cancel.test.js | 75 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …api/unit/libs/payments/paypal/subscribe-cancel.test.js | 86 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/paypal/subscribe.test.js | 35 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/paypal/subscribe.test.js | 54 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/paypal/checkout.test.js | 80 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/paypal/checkout.test.js | 92 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | test/api/unit/libs/payments/paypal/checkout.test.js | 103 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …ibs/payments/group-plans/group-payments-create.test.js | 133 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …ibs/payments/group-plans/group-payments-cancel.test.js | 153 | .eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 34 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 44 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 63 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 84 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 103 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 197 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 209 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL | …/api/unit/libs/payments/stripe/oneTimePayments.test.js | 229 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| CRITICAL⚡ | …st/api/unit/libs/payments/stripe/subscriptions.test.js | 31 | .to.eventually.be.rejected.and.to.eql({ | CODE |
| 657 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/api/unit/middlewares/blocker.test.js | 12 | function checkIPBlockedErrorThrown (next) { | CODE |
| LOW | test/api/unit/middlewares/blocker.test.js | 19 | function checkClientBlockedErrorThrown (next) { | CODE |
| LOW | test/api/unit/libs/payments/paymentHelpers.js | 3 | export async function createNonLeaderGroupMember (group) { // eslint-disable-line import/prefer-default-export, max-len | CODE |
| LOW | test/api/unit/libs/payments/amazon/cancel.test.js | 29 | function expectAmazonCancelSubscriptionSpy (groupId, lastBillingDate) { | CODE |
| LOW⚡ | test/api/unit/libs/payments/amazon/cancel.test.js | 40 | function expectAmazonCancelUserSubscriptionSpy () { | CODE |
| LOW⚡ | test/api/unit/libs/payments/amazon/cancel.test.js | 45 | function expectAmazonCancelGroupSubscriptionSpy (groupId) { | CODE |
| LOW⚡ | test/api/unit/libs/payments/amazon/cancel.test.js | 50 | function expectBillingAggreementDetailSpy () { | CODE |
| LOW | test/api/unit/libs/payments/amazon/subscribe.test.js | 74 | function expectAmazonAuthorizeBillingAgreementSpy () { | CODE |
| LOW | test/api/unit/libs/payments/amazon/subscribe.test.js | 94 | function expectAmazonSetBillingAgreementDetailsSpy () { | CODE |
| LOW | …ration/quests/POST-groups_groupid_quests_leave.test.js | 92 | async function letPartyMemberLeaveAndCheckChanges (partyMember) { | CODE |
| LOW | test/helpers/content.helper.js | 10 | export function expectValidTranslationString (attribute, contextKey) { | CODE |
| LOW | website/server/middlewares/auth.js | 168 | return function chatPrivilegesRequiredHandler (req, res, next) { | CODE |
| LOW | website/server/middlewares/domain.js | 5 | export default function implementDomainMiddleware (server, mongoose) { | CODE |
| LOW | website/server/models/pushDevice.js | 29 | schema.statics.cleanupCorruptData = function cleanupCorruptPushDevicesData (pushDevices) { | CODE |
| LOW | website/server/models/newsPost.js | 82 | function getAndUpdateLastNewsPost () { | CODE |
| LOW | website/server/models/task.js | 254 | TaskSchema.statics.sanitizeUserChallengeTask = function sanitizeUserChallengeTask (taskObj) { | CODE |
| LOW | website/server/models/userNotification.js | 127 | schema.statics.cleanupCorruptData = function cleanupCorruptNotificationsData (notifications) { | CODE |
| LOW | website/server/models/group.js | 516 | schema.methods.getParticipatingQuestMembers = function getParticipatingQuestMembers () { | CODE |
| LOW | website/server/models/group.js | 868 | schema.methods.sendGroupChatReceivedWebhooks = function sendGroupChatReceivedWebhooks (chat) { | CODE |
| LOW | website/server/models/user/methods.js | 93 | schema.methods.getObjectionsToInteraction = function getObjectionsToInteraction (interaction, receiver) { // eslint-disa | CODE |
| LOW | website/server/models/user/methods.js | 326 | schema.statics.addComputedStatsToJSONObj = function addComputedStatsToUserJSONObj ( | CODE |
| LOW | website/server/libs/mongodb.js | 14 | export function getDevelopmentConnectionUrl (originalConnectionUrl) { | CODE |
| LOW | website/server/libs/mongodb.js | 25 | export function getDefaultConnectionOptions () { | CODE |
| LOW | website/server/libs/stringUtils.js | 5 | export function removePunctuationFromString (str) { | CODE |
| LOW | website/server/libs/cron.js | 58 | function removeTerminatedSubscription (user) { | CODE |
| LOW | website/server/libs/password.js | 70 | export async function validatePasswordResetCodeAndFindUser (code) { | CODE |
| LOW | website/server/libs/slack.js | 115 | function sendInboxFlagNotification ({ | CODE |
| LOW | website/server/libs/slack.js | 179 | function sendChallengeFlagNotification ({ | CODE |
| LOW | website/server/libs/slack.js | 214 | function sendProfileFlagNotification ({ | CODE |
| LOW | website/server/libs/slack.js | 251 | function sendSubscriptionNotification ({ | CODE |
| LOW | website/server/libs/slack.js | 283 | function sendShadowMutedPostNotification ({ | CODE |
| LOW | website/server/libs/slack.js | 328 | function sendProfileSlurNotification ({ | CODE |
| LOW | website/server/libs/slack.js | 361 | function sendChallengeSlurNotification ({ | CODE |
| LOW | website/server/libs/content.js | 83 | export function getLocalizedContentResponse (langCode, removedKeys = {}) { | CODE |
| LOW | website/server/libs/chat.js | 5 | export async function getAuthorEmailFromMessage (message) { | CODE |
| LOW | website/server/libs/chat.js | 20 | export async function sendChatPushNotifications (user, group, message, mentions, translate) { | CODE |
| LOW | website/server/libs/language.js | 17 | function checkForApplicableLanguageVariant (originalLanguageOptions) { | CODE |
| LOW | website/server/libs/email.js | 165 | export function convertVariableObjectToArray (variableObject) { | CODE |
| LOW | website/server/libs/payments/subscriptions.js | 72 | async function prepareSubscriptionValues (data) { | CODE |
| LOW | website/server/libs/payments/subscriptions.js | 468 | async function handleSubscriptionRenewal (customerId) { | CODE |
| LOW | website/server/libs/payments/paypal.js | 227 | api.getSubscriptionPaymentDetails = async function getSubscriptionPaymentDetails (options = {}) { | CODE |
| LOW | …/libs/payments/calculateSubscriptionTerminationDate.js | 6 | export default function calculateSubscriptionTerminationDate ( | CODE |
| LOW | website/server/libs/payments/groupPayments.js | 36 | async function addSubscriptionToGroupUsers (group) { | CODE |
| LOW | website/server/libs/payments/groupPayments.js | 207 | async function cancelGroupUsersSubscription (group) { | CODE |
| LOW | website/server/libs/payments/groupPayments.js | 221 | async function cancelGroupSubscriptionForUser (user, group, userWasRemoved = false) { | CODE |
| LOW | website/server/libs/payments/amazon.js | 81 | api.authorizeOnBillingAgreement = function authorizeOnBillingAgreement (inputSet) { | CODE |
| LOW | website/server/libs/payments/amazon.js | 367 | api.chargeForAdditionalGroupMember = async function chargeForAdditionalGroupMember (group) { | CODE |
| LOW | website/server/libs/payments/stripe/subscriptions.js | 36 | export async function getSubscriptionPaymentDetails (user) { | CODE |
| LOW | website/server/libs/payments/stripe/subscriptions.js | 81 | export async function handlePaymentMethodChange (session, stripeInc) { | CODE |
| LOW | website/server/libs/payments/stripe/subscriptions.js | 99 | export async function chargeForAdditionalGroupMember (group, stripeInc) { | CODE |
| LOW | website/server/libs/payments/stripe/checkout.js | 129 | export async function createEditCardCheckoutSession (options, stripeInc) { | CODE |
| LOW | website/server/libs/tasks/index.js | 328 | function groupSubscriptionNotFound (group) { | CODE |
| LOW | website/server/libs/inbox/index.js | 123 | export async function getInboxMessagesByUniqueId (uniqueMessageId) { | CODE |
| LOW | …server/libs/challenges/handleGetMembersForChallenge.js | 12 | async function getMembersTasksForChallenge (members, challenge) { | CODE |
| LOW | …server/libs/challenges/handleGetMembersForChallenge.js | 24 | export async function handleGetMembersForChallenge (req, res) { | CODE |
| LOW | website/server/libs/challenges/index.js | 21 | export function addUserJoinChallengeNotification (user) { | CODE |
| LOW | website/server/libs/challenges/index.js | 27 | export function getChallengeGroupResponse (group) { | CODE |
| LOW | website/server/libs/user/validation.js | 36 | function usernameContainsInvalidCharacters (username) { | CODE |
| LOW | website/server/libs/invites/index.js | 20 | async function sendInvitePushNotification (userToInvite, groupLabel, group, publicGuild, res) { | CODE |
| LOW | website/server/controllers/api-v3/quests.js | 27 | function canStartQuestAutomatically (group) { | CODE |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/helpers/api-integration/v4/object-generators.js | 101 | COMMENT | |
| LOW | test/helpers/api-integration/v3/object-generators.js | 101 | 'x-client': 'habitica-web', | COMMENT |
| LOW | website/server/models/user/methods.js | 421 | now, | COMMENT |
| LOW | website/server/models/user/methods.js | 441 | // console.log("zone has changed - old zone says run cron, | COMMENT |
| LOW | website/server/models/user/methods.js | 461 | // NB: We don't change this.auth.timestamps.loggedin so that will still record | COMMENT |
| LOW | website/server/libs/bannedWords.js | 1 | /* eslint-disable no-multiple-empty-lines */ | COMMENT |
| LOW | website/server/libs/bannedWords.js | 61 | // Legitimate place names: 'Dyke' | COMMENT |
| LOW | website/server/libs/bannedSlurs.js | 1 | /* eslint-disable no-multiple-empty-lines */ | COMMENT |
| LOW | website/server/libs/payments/paypal.js | 41 | client_secret: nconf.get('PAYPAL_CLIENT_SECRET'), | COMMENT |
| LOW | website/server/libs/payments/stripe/constants.js | 1 | export default { | COMMENT |
| LOW | website/client/src/components/hall/heroes.vue | 381 | // let questsFormat = this.getFormattedItemReference | COMMENT |
| LOW | website/client/src/components/hall/heroes.vue | 401 | // .{head/headAccessory/eyewear/armor/body/back/shield/weapon}.{gearKey}\n'; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/api/unit/models/group.test.js | 707 | await expect(Group.validateInvitations({ emails: 'user@example.com' }, res)).to.eventually.be.rejected.and.eql({ | CODE |
| LOW | website/client/src/components/ui/validatedTextInput.vue | 35 | :placeholder="placeholder" | CODE |
| LOW | …ponents/tasks/modal-controls/selectTranslatedArray.vue | 12 | :placeholder="placeholder" | CODE |
| LOW | website/client/src/components/groups/chat.vue | 22 | :placeholder="placeholder" | CODE |
| LOW | website/client/src/components/groups/chat.vue | 119 | props: ['label', 'group', 'placeholder'], | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | website/server/libs/email.js | 95 | // as we need to check if he unsubscribed | COMMENT |