npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@danylohotvianskyi/bobra-framework

v0.1.6

Published

Bobra Framework - Generic Cloudflare Workers Framework

Downloads

649

Readme

Bobra Framework

Bobra is a full-stack TypeScript, batteries-included framework for building modular nanoservices on top of Cloudflare's Workerd runtime and Hono.

What's included?

  • Modular Handler-Based Design: Handlers are self-contained modules that encapsulate specific pieces of application logic, such as API endpoints, background processing, or middleware. You can think of them as plugins or packages that form a worker. Read more in Handlers.
  • Worker/Service Separation: Workers are runtime units that execute handlers. Services are any external dependencies directly integrated to the app routing.
  • Globally distributed databases: Bobra provides an included custom database integration with support of Postgres and D1. To leverage global distribution and amazing Postgres features Bobra uses location-aware routing to your hosted pgEdge Postgres databases. Read more in Database.
  • Deployment style variety: This setup allows you to deploy your application both in Monolithic and Microservices styles. Read more in Deployment.
  • Microfrontends: Configuration wrapper around Workerd assets handling allows you to serve as many frontend applications as you want in a single worker. Read more in Microfrontends.
  • Event-Driven Processing with Hono: Bobra uses Hono as its HTTP framework, providing a fast, lightweight, and extensible foundation for web applications based on Web Standards.
  • Router Worker: A centralized routing component that forwards requests to appropriate workers or external services based on path patterns and service discovery. Read more in Routing and Service Fetch.
  • Service Discovery: Automatic detection and registration of services, enabling dynamic load balancing and failover.
  • Bindings Abstraction: Unified interface for accessing external resources (databases, queues, KV stores) regardless of the underlying implementation.
  • Configuration-Driven Architecture: Declarative YAML configuration that defines workers, services, and their relationships providing a single source of truth for your app that consists of multiple workers and dependencies sharing the same infrastructure. Read more in Config
  • Flexible and customizable logging: Bobra provides a powerful logger that supports JSON and text formats, initialization verbosity control, log levels, Request and Response body sanitized logging, etc. Read more in Logging.
  • Authentication: Bobra provides an included API token based authentication middleware and CRUD operations for managing API tokens. Read more in Authentication.
  • OpenAPI: Bobra provides an included OpenAPI generation and validation middleware. Each handler receives its own automatically generated /openapi endpoint out-of-the-box and a separate api-docs-handler that aggregates all OpenAPI specs from all handlers into a single application OpenAPI spec. Read more in OpenAPI.
  • Search: Bobra provides an included search implementation based on FTS5 extension for D1 (SQLite) or Postgres built-in full-text search. Read more in Search.

Directory structure

Example directory structure for Bobra-powered application:

my-app/
.
├── config.local-example.yml
├── config.local.yml                            # excluded from vcs 
├── config.yml
├── frontends
│   ├── main-app
│   |    ├── package.json
│   |    ├── src
│   |    │   └── ...
│   |    └── tsconfig.json
│   └── landing-app
│        └── ...
├── handlers
│   ├── auth-handler
│   |    ├── package.json
│   |    ├── src
│   |    │   ├── db.ts                          # Database functions
│   |    │   ├── index.ts                       # Handler entry point
│   |    │   ├── schemas.ts                     # OpenAPI schemas
│   |    │   ├── service.ts                     # Service functions
│   |    │   └── types.ts                       # Types
│   |    └── tsconfig.json
│   ├── api-docs-handler
│   |    └── ...
│   └── users-handler
│        └── ...
├── package.json
├── router
│   └── router-worker
│       ├── package.json
│       ├── src
│       │   └── index.ts
│       ├── tsconfig.json
│       └── wrangler.jsonc
├── scripts
│   └── generate-wrangler-config.ts
├── shared-utils
│   ├── drizzle.config.ts
│   ├── package.json
│   ├── src
│   │   ├── db
│   │   │   ├── index.ts
│   │   │   ├── migrate.ts
│   │   │   ├── migrations-sqlite
│   │   │   │   ├── 0000_foamy_tusk.sql
│   │   │   │   └── meta
│   │   |   └── schema.ts
│   │   └── openapi
│   │       └── schemas.ts                       # App-level shared OpenAPI schemas
│   └── tsconfig.json
└── workers
    ├── api-docs-worker
    │   └── ...
    └── main-worker
        ├── package.json
        ├── src
        │   └── index.ts
        ├── tsconfig.json
        ├── wrangler.production.jsonc            # generated from config.yml      
        └── wrangler.jsonc                       # generated from config.local.yml

Documentation

Installation

Quickstart command has not been implemented yet. Please copy the example app to get started with the framework.

pnpm add -w @danylohotvianskyi/bobra-framework

Roadmap

CONTRIBUTING

License

This project is licensed under the terms of the Apache 2.0 license.

See LICENSE and NOTICE for more information.

Disclaimer

Danylo Hotvianskyi - the author of the project doesn't claim the ownership or copyright to any mentioned dependencies such as Hono, Drizzle ORM, Melody Auth, pgEdge, workerd, etc. All rights belong to their respective owners.