A habit tracker app which treats your goals like a Role Playing Game.
This report presents the forensic synthetic code analysis of HabitRPG/habitica, a JavaScript project with 14,033 GitHub stars. SynthScan v2.0 examined 538,298 lines of code across 2742 source files, recording 811 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 14.4 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 811 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 | 162 | 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 | 81 | function getAndUpdateLastNewsPost () { | CODE |
| LOW | website/server/models/task.js | 250 | 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 | 511 | schema.methods.getParticipatingQuestMembers = function getParticipatingQuestMembers () { | CODE |
| LOW | website/server/models/group.js | 863 | 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 | 316 | 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 | 82 | 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 | 71 | async function prepareSubscriptionValues (data) { | CODE |
| LOW | website/server/libs/payments/paypal.js | 226 | 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 | 319 | 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 |
| LOW | website/common/script/content/hatching-potions.js | 9 | function hasQuestAchievementFunction (key) { | CODE |
| 16 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 | if (daysMissedOldZone > 0 && daysMissedNewZone > 0) { | COMMENT |
| LOW | website/server/models/user/methods.js | 441 | // you reinterpret that time in the new timezone, it looks like it | 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 | }); | 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 |
|---|---|---|---|---|
| MEDIUM | website/common/locales/pt_BR/faq.json | 5 | "webFaqStillNeedHelp": "Se você tiver alguma dúvida que não esteja listada aqui ou na [FAQ da Wiki](https://habitica | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | website/server/libs/email.js | 95 | // as we need to check if he unsubscribed | COMMENT |