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

@hacr/opencode-autobe

v0.1.0

Published

OpenCode plugin for AutoBE — AI-powered NestJS + Prisma backend generation

Readme

opencode-autobe

An OpenCode plugin that integrates AutoBE — the AI-powered NestJS + Prisma backend generator — directly into your OpenCode sessions.

What it does

Adds three tools to OpenCode:

| Tool | Description | |------|-------------| | autobe_generate | Generate a complete NestJS + Prisma backend from a natural-language description | | autobe_list_sessions | List recent AutoBE sessions on your playground server | | autobe_get_files | Retrieve generated files from a completed session and write them to your project |

Prerequisites

  1. AutoBE playground server — clone autobe and run the playground server
  2. AI API key — Anthropic, OpenAI, or any OpenAI-compatible provider

Installation

As an npm plugin (recommended)

Add to your opencode.json:

{
  "plugins": ["@hacr/opencode-autobe"]
}

Local development

Clone this repo and place the project in your working directory. OpenCode will auto-load .opencode/plugins/autobe.ts.

Configuration

Set these environment variables before starting OpenCode:

| Variable | Default | Description | |----------|---------|-------------| | AUTOBE_SERVER_URL | http://localhost:3000 | AutoBE playground server URL | | AUTOBE_API_KEY | — | API key for the AI vendor (overrides other keys) | | ANTHROPIC_API_KEY | — | Anthropic API key (used if AUTOBE_API_KEY not set) | | OPENAI_API_KEY | — | OpenAI API key (used as last fallback) | | AUTOBE_BASE_URL | — | Custom base URL for OpenAI-compatible endpoints | | AUTOBE_MODEL | claude-sonnet-4-20250514 | Default AI model | | AUTOBE_VENDOR_ID | — | Skip vendor creation, use this existing vendor ID |

Usage

Once configured, just describe your backend in natural language:

Generate a backend for a blog platform with posts, comments, tags, and user auth

OpenCode will call autobe_generate and run the full AutoBE pipeline:

  1. Requirements analysis — structures your description into a formal spec
  2. Database design — creates a type-safe Prisma schema
  3. API design — generates an OpenAPI specification
  4. Test generation — writes E2E test suites
  5. Code generation — produces compilable NestJS implementation

All generated files are written to your current project directory.

AutoBE pipeline

AutoBE uses a waterfall + spiral architecture with compiler-driven validation:

Requirements → Prisma Schema → OpenAPI Spec → E2E Tests → NestJS Implementation
     ↑               ↑               ↑             ↑               ↑
  Analyze         Database        Interface       Test           Realize

Each phase validates against its compiler (Prisma → OpenAPI → TypeScript) before proceeding.

Starting the playground server

# Clone autobe
git clone https://github.com/samchon/autobe
cd autobe

# Install dependencies
pnpm install

# Set up database
cd apps/playground-server
npx prisma db push

# Start the server (default port from .env.local)
pnpm exec ts-node src/executable/server.ts

Set AUTOBE_SERVER_URL to the server's address and port.

License

MIT