{"id":34268903,"url":"https://github.com/vseryakov/backendjs","last_synced_at":"2026-04-04T13:02:11.040Z","repository":{"id":41243304,"uuid":"16398202","full_name":"vseryakov/backendjs","owner":"vseryakov","description":"node.js backend library","archived":false,"fork":false,"pushed_at":"2026-03-31T01:08:04.000Z","size":47114,"stargazers_count":42,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-03-31T04:37:16.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vseryakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-01-31T02:57:03.000Z","updated_at":"2026-03-31T01:08:08.000Z","dependencies_parsed_at":"2024-11-06T19:25:19.904Z","dependency_job_id":"7cb67b40-e6a4-4d0f-b61d-ea1c39e401ae","html_url":"https://github.com/vseryakov/backendjs","commit_stats":{"total_commits":3742,"total_committers":8,"mean_commits":467.75,"dds":0.00614644575093537,"last_synced_commit":"06dda0397a25b6c2c69d4628cbfc7e96ea474428"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vseryakov/backendjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseryakov%2Fbackendjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseryakov%2Fbackendjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseryakov%2Fbackendjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseryakov%2Fbackendjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vseryakov","download_url":"https://codeload.github.com/vseryakov/backendjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vseryakov%2Fbackendjs/sbom","scorecard":{"id":198214,"data":{"date":"2025-08-04","repo":{"name":"github.com/vseryakov/backendjs","commit":"5f71c6587ff8f5aab20750eb86d45ac45b3fb788"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":4.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":9,"reason":"11 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: tools/docker/Dockerfile.abuild:3","Warn: goCommand not pinned by hash: tools/bkjs-docker:84","Warn: downloadThenRun not pinned by hash: tools/bkjs-es:40","Warn: downloadThenRun not pinned by hash: tools/bkjs-es:89","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}}]},"last_synced_at":"2025-08-16T22:14:31.983Z","repository_id":41243304,"created_at":"2025-08-16T22:14:31.984Z","updated_at":"2025-08-16T22:14:31.984Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-16T18:31:33.457Z","updated_at":"2026-04-04T13:02:11.034Z","avatar_url":"https://github.com/vseryakov.png","language":"JavaScript","readme":"# ![logo](https://vseryakov.github.io/backendjs/web/img/logo.png) Backend library for Node.js\n\nThe `backendjs` provides a comprehensive set of modules and utilities for\nbuilding scalable, distributed applications with features like database management, caching, job queues, event processing, and more.\n\nVisit the [tutorial](https://vseryakov.github.io/backendjs/docs/web/tutorial-start.html) or\n[all docs](https://vseryakov.github.io/backendjs/docs/web/index.html).\n\n\n---\n\n## **Core Features**\n\n1. **Modular Architecture**\n   - The framework is built around a modular design, where each module (e.g., `db`, `cache`, `queue`, `api`) can be loaded independently.\n   - Modules can be configured via command-line arguments or configuration files.\n\n2. **Database Abstraction**\n   - Supports multiple databases: **SQLite, PostgreSQL, DynamoDB, Elasticsearch, Rqlite**.\n   - Provides a unified API for CRUD operations, caching, and transactions, access to native engine allows to\n     send raw SQL or JSON directy.\n   - Supports **primary keys, indexes, and schema migrations**.\n\n3. **Caching**\n   - Built-in caching with support for **Redis, NATS, and local memory caches**.\n   - Features like **LRU (Least Recently Used) caching**, **token bucket rate limiting**, and **locking mechanisms**.\n\n4. **Job Queue \u0026 Event Processing**\n   - Supports **SQS, NATS, DB and Redis queues** for job processing.\n   - Workers can be spawned to handle jobs asynchronously.\n   - Event-based architecture for real-time processing.\n\n5. **API Layer**\n   - Built on **Express.js** with middleware for authentication, rate limiting, and logging.\n   - Supports **RESTful APIs** with JSON responses.\n   - Includes **WebSocket support** for real-time communication.\n\n6. **AWS Integration**\n   - Supports **AWS services** like **S3, SQS, SNS, DynamoDB, and EC2**.\n   - Automated instance metadata retrieval and configuration.\n\n7. **Logging \u0026 Monitoring**\n   - Advanced logging with **syslog, file, and console support**.\n   - Metrics collection for **CPU, memory, network, and API performance**.\n   - Integration with **Elasticsearch** for log aggregation.\n\n8. **Push Notifications**\n   - Supports **WebPush, FCM (Firebase Cloud Messaging), and APNs (Apple Push Notification Service)**.\n\n9. **Configuration Management**\n   - Supports **remote configuration** via databases or files.\n   - Dynamic reloading of configurations without restarting the server.\n\n10. **Security**\n    - **CSRF protection**, **signature verification**, and **rate limiting**.\n    - **JWT (JSON Web Tokens)** support for authentication.\n\n---\n\n## **Key Modules**\n\n| Module       | Description                                                                       |\n|--------------|-----------------------------------------------------------------------------------|\n| `app`       | Core application module for initialization, configuration, and process management. |\n| `db`        | Database abstraction layer for SQLite, PostgreSQL, DynamoDB, and Elasticsearch.    |\n| `cache`     | Caching layer with Redis, NATS, and local memory support.                          |\n| `queue`     | Job queue and event processing with SQS, NATS, DB, and Redis.                          |\n| `api`       | HTTP API layer built on Express.js with middleware for auth, logging, etc.         |\n| `aws`       | AWS SDK integration for S3, SQS, SNS, DynamoDB, and EC2.                           |\n| `jobs`      | Job processing with worker pools and cron-like scheduling.                         |\n| `events`    | Event-based messaging and subscriptions.                                           |\n| `push`      | Push notifications for mobile and web clients.                                     |\n| `stats`     | Metrics collection and reporting.                                                  |\n| `logger`    | Advanced logging with syslog, file, and console support.                           |\n\n---\n\n### **Architecture Overview**\n\n1. **Server Process**\n   - Manages worker processes, job queues, and event subscriptions.\n   - Handles configuration and dynamic reloading.\n\n2. **Worker Processes**\n   - Execute jobs and process events.\n   - Can be spawned dynamically based on workload.\n\n3. **API Workers**\n   - Handle HTTP requests and WebSocket connections.\n   - Use Express.js middleware for routing and authentication.\n\n4. **Database Pools**\n   - Maintain connections to databases (SQLite, PostgreSQL, DynamoDB, Elasticsearch, Rqlite).\n   - Support for **connection pooling** and **schema migrations**.\n\n5. **Caching Layer**\n   - Distributed caching with Redis/NATS.\n   - Local LRU caching for performance.\n\n6. **Job Queue**\n   - Supports **SQS, NATS, and Redis** for job processing.\n   - Workers pull jobs from queues and execute them.\n\n7. **Event System**\n   - Pub/Sub model for real-time event processing.\n   - Supports **Redis, NATS, and SQS** for event distribution.\n\n---\n\n## **Use Cases**\n\n1. **Microservices**\n   - Deploy multiple services with shared databases and caching.\n\n2. **Real-Time Applications**\n   - Use WebSockets and event processing for live updates.\n\n3. **Batch Processing**\n   - Schedule jobs via cron or SQS for background tasks.\n\n4. **Serverless \u0026 Cloud Deployments**\n   - Integrate with AWS Lambda, ECS, and EC2 for scalable deployments.\n\n5. **Data Processing**\n   - Use SQL or NoSQL data storage and search wit the same simple database API.\n\n---\n\n## **Configuration**\n\nThe library is configured via:\n\n- **Command-line arguments** (e.g., `-db-pg-pool pg://localhost/dbname`).\n- **Configuration files** (e.g., `bkjs.conf`).\n- **Environment variables** (e.g., `BKJS_DB_POOL=pg://localhost/dbname`).\n- **Database** (e. g. `-db-config dynamodb`)\n- **AWS Secrets Manager** (e. g. `-aws-config-secrets production-worker`)\n- **AWS S3 file** (e. g. `-aws-config-s3-file mybucjet/config`)\n- **AWS Config Parameters Store** (e. g. `-aws-config-parameters /my-config`)\n\n---\n\n## **Deployment**\n\n- **Docker**: Can be containerized for easy deployment, no init-shim required.\n- **AWS ECS/EC2**: Can be deployed on AWS for cloud scalability.\n\n---\n\n## Getting started\n\nVisit the [tutorial](https://vseryakov.github.io/backendjs/docs/web/tutorial-start.html).\n\n## Full documentation\n\nVisit the [docs](https://vseryakov.github.io/backendjs/docs/web/index.html).\n\n## License\n   [MIT](/LICENSE)\n\n## Author\n  Vlad Seryakov\n\n_(summary is generated by local LLM with manual edits)_\n\n","funding_links":[],"categories":["⚙️ Backend \u0026 APIs"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvseryakov%2Fbackendjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvseryakov%2Fbackendjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvseryakov%2Fbackendjs/lists"}