Repository Analysis

pubkey/rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/

1.2 Likely human-written View on GitHub
1.2
Adjusted Score
1.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
23,210
Stars
TypeScript
Language
191,345
Lines of Code
1048
Files
205
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 5LOW 199

Pattern Findings

205 matches across 8 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers126 hits · 126 pts
SeverityFileLineSnippet
LOWtest/react-ssr.test.ts231 function UseReplicationStatusComponent() {
LOWtest/replication-firestore.test.ts111 function makeFirestoreHumanDocument(human: HumanDocumentType) {
LOWtest/unit/rx-collection.test.ts396 async function ensurePrimaryKeyInsertThrows(id: string) {
LOWtest/unit/replication-protocol.test.ts65function ensureReplicationHasNoErrors(replicationState: RxStorageInstanceReplicationState<any>) {
LOWtest/unit/attachments.test.ts63 async function createEncryptedAttachmentsCollection(
LOWtest/unit/attachments-compression.test.ts47 async function createCompressedAttachmentsCollection(
LOWtest/unit/encryption.test.ts44 async function createEncryptedCollection(
LOWtest/unit/query-planner.test.ts32 function getHumanSchemaWithIndexes(
LOWtest/unit/rx-storage-implementations.test.ts3404 async function getMultiInstanceRxStorageInstance(): Promise<{
LOWtest/unit/rx-storage-implementations.test.ts3445 async function closeMultiInstanceRxStorageInstance(instances: MultiInstanceInstances) {
LOWtest/unit/internal-indexes.test.ts19 async function createCollectionWithInternalIndexes(internalIndexes: string[][], docsAmount: number = 0) {
LOWtest/helper/graphql-server.ts39function sortByUpdatedAtAndPrimary(
LOWexamples/angular/src/app/typings-test.ts18function checkDocumentDoubleDollar(doc: RxHeroDocument): Signal<RxHeroDocument> {
LOWexamples/angular/src/app/typings-test.ts22function checkDocumentDeletedDoubleDollar(doc: RxHeroDocument): Signal<boolean> {
LOWexamples/graphql/server/index.js38function sortByUpdatedAtAndPrimary(a, b) {
LOWdocs-src/docs/adapters.md276export function awaitCapacitorDeviceReady(): Promise<void> {
LOWdocs-src/docs/articles/javascript-vector-database.md221export async function getVectorFromTextWithWorker(text: string): Promise<number[]> {
LOWdocs-src/docs/articles/javascript-vector-database.md407async function vectorSearchIndexSimilarity(searchEmbedding: number[]) {
LOWdocs-src/src/components/price-calculator.ts114export function calculatePriceFromFormValueDoc(formValueDoc: RxLocalDocument<any, FormValueDocData>): ReturnType<typeof
LOWdocs-src/src/theme/Root.tsx311function triggerClickEventWhenFromCode() {
LOWdocs-src/src/theme/Root.tsx326function triggerClickEventWhenFromDiscord() {
LOWdocs-src/src/theme/SearchBar/index.tsx67function importDocSearchModalIfNeeded() {
LOWdocs-src/src/theme/SearchBar/index.tsx164function useResultsFooterComponent({
LOW…cs-src/src/theme/Navbar/MobileSidebar/Layout/index.tsx43export default function NavbarMobileSidebarLayout({
LOW…src/theme/Navbar/MobileSidebar/SecondaryMenu/index.tsx20export default function NavbarMobileSidebarSecondaryMenu(): ReactNode {
LOW…cs-src/src/theme/Navbar/MobileSidebar/Header/index.tsx25export default function NavbarMobileSidebarHeader(): ReactNode {
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx32function useAutoExpandActiveCategory({
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx57function useCategoryHrefWithSSRFallback(item) {
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx126function DocSidebarItemCategoryEmpty({item, ...props}) {
LOWdocs-src/src/theme/DocSidebarItem/Category/index.tsx139function DocSidebarItemCategoryCollapsible({
LOWdocs-src/src/pages/index.tsx39function startLandingpageAnimation() {
LOWsrc/plugin-helpers.ts55export function wrappedValidateStorageFactory(
LOWsrc/rx-error.ts169export function rxStorageWriteErrorToRxError(err: RxStorageWriteError<any>): RxError {
LOWsrc/rx-query.ts610function getLiveQueryUpdateThrottleTime(collection: RxCollection<any>): number {
LOWsrc/rx-document.ts446export function createRxDocumentConstructor(proto = basePrototype) {
LOWsrc/rx-query-helper.ts294function shouldNormalizeElemMatchSelector(elemMatch: any): boolean {
LOWsrc/rx-query-helper.ts314function normalizeQuerySelectorShorthands(selector: any): void {
LOWsrc/rx-database-internal-store.ts102export function getPrimaryKeyOfInternalDocument(
LOWsrc/rx-database-internal-store.ts119export async function getAllCollectionDocuments(
LOWsrc/rx-database-internal-store.ts247export function isDatabaseStateVersionCompatibleWithDatabaseCode(
LOWsrc/rx-database-internal-store.ts276export async function addConnectedStorageToCollection(
LOWsrc/rx-database-internal-store.ts337export async function removeConnectedStorageFromCollection(
LOWsrc/rx-storage-multiinstance.ts59export function getBroadcastChannelReference(
LOWsrc/rx-storage-multiinstance.ts82export function removeBroadcastChannelReference(
LOWsrc/query-planner.ts195export function isSelectorSatisfiedByIndex(
LOWsrc/custom-index.ts214export function getStringLengthOfIndexNumber(
LOWsrc/custom-index.ts263export function getPrimaryKeyFromIndexableString(
LOWsrc/custom-index.ts318export function getStartIndexStringFromLowerBound(
LOWsrc/custom-index.ts393export function getStartIndexStringFromUpperBound(
LOWsrc/custom-index.ts464export function changeIndexableStringByOneQuantum(str: string, direction: 1 | -1): string {
LOWsrc/rx-storage-helper.ts81export function registerMutableWriteContext(context: string): void {
LOWsrc/rx-storage-helper.ts535export function attachmentWriteDataToNormalData(writeData: RxAttachmentData | RxAttachmentWriteData): RxAttachmentData {
LOWsrc/rx-storage-helper.ts870export function ensureRxStorageInstanceParamsAreCorrect(
LOWsrc/rx-collection-helper.ts76export async function normalizeInlineAttachments(
LOWsrc/rx-collection-helper.ts257export function ensureRxCollectionIsNotClosed(
LOWsrc/rx-database.ts976export async function isRxDatabaseFirstTimeInstantiated(
LOWsrc/rx-change-event.ts111export function rxChangeEventBulkToRxChangeEvents(
LOWsrc/plugins/storage-remote-websocket/index.ts93export function startRxStorageRemoteWebsocketServer(
LOWsrc/plugins/storage-remote-websocket/index.ts177export function getRxStorageRemoteWebsocket(
LOWsrc/plugins/migration-schema/migration-helpers.ts159export function addMigrationStateToDatabase(
66 more matches not shown…
Over-Commented Block64 hits · 64 pts
SeverityFileLineSnippet
LOWtest/unit/rx-pipeline.test.ts101 */
LOWtest/unit/rx-pipeline.test.ts121 // identifier: randomToken(10)
LOWexamples/react-native/initializeDb.js81 const doc = await db[HeroesCollectionName].upsert({ name: 'Alice', color: 'green' });
LOWexamples/ionic2/src/app/app.scss1// http://ionicframework.com/docs/v2/theming/
LOWexamples/ionic2/src/theme/variables.scss1// Ionic Variables and Theming. For more info, please see:
LOWexamples/ionic2/src/theme/variables.scss41
LOWexamples/flutter/pubspec.yaml1name: my_app
LOWexamples/flutter/pubspec.yaml61# The following section is specific to Flutter packages.
LOWexamples/flutter/pubspec.yaml81 # list giving the asset and other descriptors for the font. For
LOWexamples/flutter/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code to
LOWexamples/flutter/analysis_options.yaml21 # section below, it can also be suppressed for a single line of code
LOW…es/flutter/linux/flutter/generated_plugin_registrant.h1//
LOWexamples/flutter/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWexamples/flutter/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…/flutter/windows/flutter/generated_plugin_registrant.h1//
LOWexamples/electron/main.js61 storage,
LOW.github/workflows/release.yml141 # @link https://github.com/marketplace/actions/actions-for-discord
LOW.github/workflows/cloudflare-pages.yml21 # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
LOW.github/workflows/main.yml861 # - uses: actions/checkout@v4
LOW.github/workflows/main.yml881 # restore-keys: |
LOW.github/workflows/main.yml921 run: |
LOW.github/workflows/main.yml941 # path: |
LOW.github/workflows/main.yml961
LOWdocs-src/docusaurus.config.ts301 };
LOWdocs-src/docusaurus.config.ts441 position: 'right',
LOWdocs-src/docs/replication-graphql.md341 queryBuilder: pullQueryBuilder,
LOWdocs-src/src/components/a-b-tests.tsx1import { randomOfArray } from '../../../plugins/utils';
LOWdocs-src/src/components/a-b-tests.tsx81 // props: {
LOWdocs-src/src/components/salaries.ts21/**
LOWdocs-src/src/components/salaries.ts41 { 'name': 'Bahamas', 'code': 'BS', salary: 62024 },
LOWdocs-src/src/components/salaries.ts61 { 'name': 'Cambodia', 'code': 'KH', salary: 18000 },
LOWdocs-src/src/components/salaries.ts81 { 'name': 'Czech Republic', 'code': 'CZ', salary: 33760 },
LOWdocs-src/src/components/salaries.ts101 // { 'name': 'Gabon', 'code': 'GA', salary: false },
LOWdocs-src/src/components/salaries.ts141 // { 'name': 'Jordan', 'code': 'JO', salary: false },
LOWdocs-src/src/components/salaries.ts161 // { 'name': 'Maldives', 'code': 'MV', salary: false },
LOWdocs-src/src/components/salaries.ts181 { 'name': 'Netherlands', 'code': 'NL', salary: 62661 },
LOWdocs-src/src/components/salaries.ts201 // { 'name': 'Pitcairn Islands', 'code': 'PN', salary: false },
LOWdocs-src/src/components/salaries.ts221 // { 'name': 'Seychelles', 'code': 'SC', salary: false },
LOWdocs-src/src/components/salaries.ts241 // { 'name': 'Tanzania, United Republic of', 'code': 'TZ', salary: false },
LOWdocs-src/src/components/salaries.ts261 // { 'name': 'Vanuatu', 'code': 'VU', salary: false },
LOWdocs-src/src/theme/Root.tsx521
LOWdocs-src/src/theme/Root.tsx541 // const from = prePopstateUrl;
LOWdocs-src/src/theme/Root.tsx561 // location.reload();
LOWdocs-src/src/theme/Root.tsx581 // history.back();
LOWdocs-src/src/theme/PaginatorNavLink/index.tsx21 }}>{isNext ? 'Next' : 'Previous'}</span><br />{isNext ? '' : '« '}{title}{isNext ? ' »' : ''}</Button>;
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx21 // href="/code/"
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx41 // <th>RxDB</th>
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx61 // <td><strong>Observable State</strong></td>
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx81 // <td><strong>Compression Support</strong></td>
LOWdocs-src/src/pages/sem/indexeddb-database-2.tsx101 // </table>
LOWsrc/plugins/flutter/dart/analysis_options.yaml1# This file configures the static analysis results for your project (errors,
LOWsrc/plugins/flutter/dart/analysis_options.yaml21
LOW…plugins/storage-mongodb/rx-storage-instance-mongodb.ts141 // const eventBulk: EventBulk<RxStorageChangeEvent<RxDocumentData<RxDocType>>, RxStorageDefaultCheck
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts1// /**
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts21// export const P2PT_DEFAULT_TRACKERS = [
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts41// infoHash: sha1.sync(options.topic).toLowerCase(),
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts61// // a tracker was unavailable or sent bad data to the client. you can probably ignore it
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts81// peer.on('data', (data: Buffer) => {
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts101// client.update();
LOW…ns/replication-webrtc/connection-handler-webtorrent.ts121// disconnect$.complete();
4 more matches not shown…
Verbosity Indicators7 hits · 13 pts
SeverityFileLineSnippet
LOWtest/unit/rx-collection.test.ts568 // Step 1: Insert all N documents
LOWtest/unit/rx-collection.test.ts582 // Step 2: Delete all N documents
LOWtest/unit/rx-collection.test.ts596 // Step 3: Re-insert the same N documents (reviving soft-deleted entries)
LOWtest/unit/rx-collection.test.ts609 // Step 4: Verify all documents are present (this is where the bug manifests)
LOWtest/unit/rx-document.test.ts1446 // Step 1: Create the observable reference (captures startWith value eagerly)
LOWtest/unit/rx-document.test.ts1449 // Step 2: Update the document AFTER creating the observable but BEFORE subscribing
LOWtest/unit/rx-document.test.ts1452 // Step 3: Subscribe to the previously created observable
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippet
MEDIUMexamples/flutter/pubspec.yaml64 # included with your application, so that you can use the icons in
MEDIUMsrc/plugins/flutter/dart/analysis_options.yaml9# If you want a smaller set of lints you can change this to specify
MEDIUM…s/replication-webrtc/connection-handler-simple-peer.ts146 'This server is made for demonstration purposes and tryouts. It is not reliable and might be offline at
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMexamples/flutter/pubspec.yaml61# The following section is specific to Flutter packages.
MEDIUMscripts/start-foundationdb-docker.sh24# Create the cluster file directory on the host
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippet
HIGH…cles/alternatives/aws-amplify-datastore-alternative.md233 'x-api-key': 'your-api-key'
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWconfig/appwrite/restore.bash35# Verify if tables exist to confirm import success
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOWdocs-src/docs/rx-query.md517 name: 'John Doe',