PHPackages                             webiny/std-lib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webiny/std-lib

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

webiny/std-lib
==============

Webiny StdLib Component

v1.6.1(8y ago)919.2k↓93.3%20MITTypeScriptPHP ^7CI passing

Since Sep 20Pushed 1w agoCompare

[ Source](https://github.com/Webiny/StdLib)[ Packagist](https://packagist.org/packages/webiny/std-lib)[ Docs](http://www.webiny.com/)[ RSS](/packages/webiny-std-lib/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (2)Versions (24)Used By (20)

@webiny/stdlib
==============

[](#webinystdlib)

Opinionated standard library for [Webiny](https://www.webiny.com). This is an internal package — we make breaking changes freely and do not follow semver for external consumers.

Design
------

[](#design)

Services are built on a lightweight dependency injection system. Each feature follows the same three-layer pattern: an **abstraction** (DI token + interface), an **implementation** (concrete class), and a **feature** (registers the implementation in the DI container). This keeps code testable and lets different environments (Node.js, browser) swap implementations behind the same interface.

Subpath exports
---------------

[](#subpath-exports)

The package is ESM-only and ships three subpath exports. Because each is a separate entry point, Node.js-specific code is never bundled into a browser build and vice versa — unless you explicitly import the wrong subpath.

ImportEnvironmentDescription`@webiny/stdlib`AnyPlatform-agnostic utilities`@webiny/stdlib/node`Node.jsNode.js-specific tools`@webiny/stdlib/browser`BrowserBrowser-specific tools---

`@webiny/stdlib` — Common
-------------------------

[](#webinystdlib--common)

FeatureDescription`Result` / `ResultAsync`Typed success/failure values — synchronous and async`BaseError`Abstract base class for typed domain errors`Logger` / `ConsoleLogger` / `ConsoleLoggerFeature`Logging abstraction + console implementation — [docs](src/common/features/Logger/README.md)`Cache` / `MemoryCacheFeature`Synchronous key-value cache — [docs](src/common/features/Cache/README.md)`AsyncCache` / `AsyncMemoryCacheFeature`Async key-value cache — [docs](src/common/features/Cache/README.md)`immutableGet` / `immutableSet` / `immutableDelete` / `mutableSet` / `mutableDelete`Dot-notation get/set/delete on nested objects — [docs](src/common/utils/dotProp/README.md)`toBoolean` / `isTruthy` / `isFalsy`Semantic boolean coercion — [docs](src/common/utils/boolean/README.md)`uuid`RFC 4122 v4 UUID generator (native + fallback) — [docs](src/common/utils/uuid/README.md)`mdbid`MongoDB-compatible ObjectId generator — [docs](src/common/utils/mdbid/README.md)`generateId` / `generateAlphaNumericId` / `generateAlphaLowerCaseId` / ...Nanoid-based ID generators with configurable alphabets — [docs](src/common/utils/generateId/README.md)---

`@webiny/stdlib/node` — Node.js
-------------------------------

[](#webinystdlibnode--nodejs)

FeatureDescription`FileTool` / `FileToolFeature`Read, write, copy, remove files — [docs](src/node/features/FileTool/README.md)`DirectoryTool` / `DirectoryToolFeature`Create, read, remove, copy, glob directories — [docs](src/node/features/DirectoryTool/README.md)`JsonFileTool` / `JsonFileToolFeature`Read and write JSON files with optional schema validation — [docs](src/node/features/JsonFileTool/README.md)`PathTool` / `PathToolFeature``node:path` wrapper + `resolvePackageFile` for package-relative paths — [docs](src/node/features/PathTool/README.md)`PinoLogger` / `PinoLoggerFeature`pino-based `Logger` implementation — [docs](src/node/features/PinoLogger/README.md)`NdJsonReaderTool` / `NdJsonReaderToolFeature`Parse NDJSON from files, streams, or in-memory lines with checkpoint support — [docs](src/node/features/NdJsonReaderTool/README.md)`ReadStreamFactory` / `ReadStreamFactoryFeature`Disposable `node:fs` read streams via `AsyncDisposable` — [docs](src/node/features/ReadStreamFactory/README.md)`PackageJsonFileTool` / `PackageJsonFileToolFeature`Read, validate, mutate, and write `package.json` files — [docs](src/node/features/PackageJsonFileTool/README.md)`HashFolderTool` / `HashFolderToolFeature`Deterministic SHA-256 hash of a folder's contents — [docs](src/node/features/HashFolderTool/README.md)---

`@webiny/stdlib/browser` — Browser
----------------------------------

[](#webinystdlibbrowser--browser)

FeatureDescription`LocalStorageCacheFeature``Cache` implementation backed by `window.localStorage` — [docs](src/browser/features/LocalStorageCache/README.md)---

Versioning
----------

[](#versioning)

Versioning and publishing are managed by [Changesets](https://github.com/changesets/changesets). The version in `package.json` is the real published version, bumped automatically when a version PR is merged. To record a version bump, run `yarn changeset` before opening a PR. There are no major version bumps — breaking changes may land on minor releases.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance64

Regular maintenance activity

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Recently: every ~5 days

Total

23

Last Release

3199d ago

PHP version history (3 changes)v1.0.0PHP &gt;=5.4.0

v1.3.0PHP &gt;=5.5.9

1.5.x-devPHP ^7

### Community

Maintainers

![](https://www.gravatar.com/avatar/4440afa738ed146b05c06073a90345e0464c4f4d042b039532d881ca24859d77?d=identicon)[SvenAlHamad](/maintainers/SvenAlHamad)

---

Top Contributors

[![SvenAlHamad](https://avatars.githubusercontent.com/u/3808420?v=4)](https://github.com/SvenAlHamad "SvenAlHamad (30 commits)")[![brunozoric](https://avatars.githubusercontent.com/u/10399339?v=4)](https://github.com/brunozoric "brunozoric (28 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

factoryarraystringdatetimesingleton

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webiny-std-lib/health.svg)

```
[![Health](https://phpackages.com/badges/webiny-std-lib/health.svg)](https://phpackages.com/packages/webiny-std-lib)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k430.4M1.7k](/packages/nette-utils)[phootwork/lang

Missing PHP language constructs

1228.2M8](/packages/phootwork-lang)[danielstjules/php-pretty-datetime

Generates human-readable strings for PHP DateTime objects

5899.2k](/packages/danielstjules-php-pretty-datetime)[illuminatech/array-factory

Allows DI aware object creation from array definition

2266.2k6](/packages/illuminatech-array-factory)[michaldudek/foundation

A set of useful PHP classes.

13112.6k13](/packages/michaldudek-foundation)[clausnz/php-helpers

A Collection of useful php helper functions.

3810.4k](/packages/clausnz-php-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
