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

@effit/workers

v0.1.0-alpha.7

Published

BullMQ-backed jobs and workers for the Effit framework.

Readme

@effit/workers

BullMQ-backed jobs and workers for the Effit framework.

Provides Job.make / Worker.make factories, a WorkerRunner that picks workers via CLI args, and per-app QueueRegistry + QueuingService tags that inherit your worker map's types.

Installation

pnpm add @effit/workers @effit/core effect bullmq temporal-polyfill

Defining jobs and workers

import { Effect, Schema } from 'effect';
import { Job } from '@effit/workers/Job.js';
import { Worker } from '@effit/workers/Worker.js';

const ProvisionJobData = Schema.Struct({ evaluationId: Schema.String });

export const ProvisionJob = Job.make(
  'ProvisionEvaluation',
  ProvisionJobData,
  Effect.gen(function* () {
    // Setup runs once per process
    return (bullJob) =>
      Effect.gen(function* () {
        // Runs per job
      });
  }),
);

export const EvaluationWorker = Worker.make('Evaluation', [ProvisionJob]);

Registering and enqueuing

import { QueueRegistry as EffitQueueRegistry } from '@effit/workers/QueueRegistry.js';
import { QueuingService as EffitQueuingService } from '@effit/workers/QueuingService.js';
import { WorkerRunner as EffitWorkerRunner } from '@effit/workers/WorkerRunner.js';

export const workers = {
  [EvaluationWorker.name]: EvaluationWorker,
} as const;
export type Workers = typeof workers;

// Typed against the worker map; provide `.Default` in your container.
export const QueueRegistry = EffitQueueRegistry.make(workers);
export const QueuingService = EffitQueuingService.make(workers);
export const WorkerRunner = EffitWorkerRunner.make(workers);

// In a use case:
const queues = yield* QueuingService;
yield* queues.add('Evaluation', ProvisionJob.make({ evaluationId }), { attempts: 3 });

Wire RedisConfig from your app config:

import { Layer, Effect } from 'effect';
import { RedisConfig } from '@effit/workers/RedisConfig.js';

const RedisConfigLive = Layer.effect(
  RedisConfig,
  Effect.gen(function* () {
    const appConfig = yield* AppConfig;
    return { host: appConfig.redis.host, port: appConfig.redis.port };
  }),
);

License

MIT © Talysson de Oliveira Cassiano