Skip to content
View peterboyer's full-sized avatar

Block or report peterboyer

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
peterboyer/README.md
  • pb.adt NPM Version GitHub Repo stars
    • A TypeScript library that provides an ADT type utility to conveniently author tagged union types as a versitile alternative to Typescript's enum keyword, which is deprecated 1 2 3 and limited, as enum variants cannot define their own structured data.
  • pb.safe NPM Version GitHub Repo stars
    • A TypeScript library that provides an alternative to traditional try-catch blocks by providing a safe wrapper-function which executes a given callback and returns either its value or any potentially thrown errors to promote resilient and explicit error handling patterns; inspired as an inverse to Rust's unsafe blocks.
  • pb.types NPM Version GitHub Repo stars
    • A TypeScript library that provides utility types for writing tests for types (with Expect, Equal, NotEqual, and branch); neatening intersected type interfaces (with Identity); intersecting members of union types (with Intersect); and other useful inferences and modifications (e.g. Mutable, Modify, ArrayItem).
  • metadom NPM Version GitHub Repo stars
    • A lightweight, zero-dependency, declarative, TypeScript-based web UI framework that uses signals for efficient, hyper-targeted state updates instead of using a virtual DOM. Components are expressed as simple functions, or as generators, that may use yield to assign disposers to run when unmounting.
  • esresult NPM Version GitHub Repo stars Static Badge
    • A TypeScript library that provides a Result primitive inspired by Rust's equivalent. This library is deprecated in favour of pb.safe which uses a union with the Error built-in type instead of returning a "boxed" value, leading to more concise function signatures with reduced impact to publicly exported interfaces.
  • restful-api-design-tips GitHub Repo stars Static Badge
    • A working guide of API design tips, discussing RESTful API versioning, methods, route naming and structuring, collection pagination, response structuring, headers, errors, validation reporting, simple token-based authentication and sessions, and other concepts.

  • dotfiles dotfiles/zsh dotfiles/nvim dotfiles/tmux dotfiles/lazygit dotfiles/kitty
    • My personal toolchain containing my configuration files for Zsh, Neovim, Tmux, LazyGit, Kitty, and others scripts in /bin.
  • dotfiles/tmux-switcher
    • A tool that uses fzf to quickly switch between per-local-project tmux sessions. Inspired by tmux-sessionizer.
  • dotfiles/jsbox
    • A wrapper that isolates JS/Node-related commands within a Docker container to reduce exposure to supply-chain incidents. Will dynamically create and run a Docker image containing node (versioned per your project's engines.node, if specified), and npm, yarn, and pnpm package managers. Mounts the current directory, ports are exposed with a :[PORT] argument.
  • dotfiles/nvimx
    • A wrapper that provisions Neovim with all required external dependencies for tree-sitter, fuzzy-finders, LSPs, and autocomplete, rather than install everything globally. Also supports copying to the system clipboard from a Neovim buffer within the container.
  • dotfiles/ytdlp
    • A wrapper around yt-dlp that will dynamically create and run a Docker image with yt-dlp and ffmpeg. Forwards all given arguments. Mounts the current directory for downloaded /output. Easily mounts $HOME/cookies.txt as --cookies argument, rather than exposing the entire browser via --cookies-from-browser. I use Cookie-Editor.

Popular repositories Loading

  1. restful-api-design-tips restful-api-design-tips Public

    A working compilation of RESTful design principles.

    324 19

  2. pb.adt pb.adt Public

    Simple ADT types and values.

    TypeScript 21 1

  3. esresult esresult Public archive

    A Rust-like Result utility for TypeScript.

    TypeScript 18

  4. pb.safe pb.safe Public

    Errors as values; try/catch as a function.

    TypeScript 1

  5. pb.types pb.types Public

    Utility types like Equal, Intersect, Identity and more.

    TypeScript 1

  6. peterboyer peterboyer Public