Macros

Metaprogramming utilities and macro libraries for code generation. Packages among the 3,000 most downloaded in the past 90 days.

21 packages
  • Parse transform library

    234
    2.8m last 90 days
  • Function decorators for Elixir

    405
    789.2k last 90 days
  • horus 0.4.0

    Creates standalone modules from anonymous functions

    30
    540.0k last 90 days
  • ExConstructor generates constructor functions for your structs, handling map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score issues automatically.

    292
    157.2k last 90 days
  • Aicacia Handler macro

    42.2k last 90 days
  • The anaphoric macro collection for Elixir

    18
    41.7k last 90 days
  • anka 0.1.2

    Anka and its binding projects provide base model structure and macros to increase modularity of Elixir projects with DRY principle.

    41.6k last 90 days
  • A library for defining structs with a type without writing boilerplate code.

    47
    40.3k last 90 days
  • amlapio 0.2.0

    Amlapio: Adding a Map API to a GenServer or Module with Agent-held State A use macro to add a Map API (e.g. get, put, pop, etc) to a GenServer's state or a module's state held in an Agent.

    0
    28.0k last 90 days
  • Protobuf code generation as a mix task

    16
    12.1k last 90 days
  • Mix in public functions from external modules

    19
    10.9k last 90 days
  • Chain of decorators allowed in parse transforms

    1
    9.2k last 90 days
  • arrows 0.2.1

    A handful of (mostly) arrow macros

    13
    7.7k last 90 days
  • matcha 0.1.10

    First-class match specification and match patterns for Elixir

    91
    6.2k last 90 days
  • Delegate macros or all functions and macros to another module

    2
    5.6k last 90 days
  • helper module for match specs

    24
    4.8k last 90 days
  • Intercept function calls

    4.6k last 90 days
  • croma 0.12.0

    Elixir macro utilities to make type-based programming easier

    4.3k last 90 days
  • JSON Schema macro generator

    123
    4.2k last 90 days
  • expat 1.0.5

    Re-usable composable patterns with guards

    175
    4.1k last 90 days
  • bristow 0.2.2

    Create function's alias

    0
    3.1k last 90 days