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

hygen-next-rails-scaffold

v0.2.4

Published

Enhance your Next.js development workflow with this powerful Hygen package tailored for seamless integration into the versatile https://github.com/raphox/next-rails ecosystem.

Readme

next-rails-scaffold

The gem next_rails_scaffold uses this repository to generate the page routing system to consume the RESTful API generated by the command bin/rails generate scaffold Post title:string body:text.

To get more information about the page routing system and the static export for Next.js, access https://nextjs.org/docs/pages/building-your-application/deploying/static-exports. To learn more about the Rails scaffold generator, access https://guides.rubyonrails.org/command_line.html#bin-rails-generate.

Templates

_templates/scaffold/
└── javascript
    ├── [id]
    |   ├── edit.ejs.t
    |   └── show.ejs.t
    ├── components
    |   ├── resource.ejs.t
    |   └── resource_form.ejs.t
    ├── home.js
    ├── index.js
    ├── list.ejs.t
    ├── new.ejs.t
    └── services.ejs.t
├── typescript (TODO)
└── shadcn-ui (TODO)

Frontend tech stack:

  • Next.js (https://nextjs.org) - The React Framework for the Web
    • Elevate our frontend development by leveraging Next.js, a powerful React Framework tailored for the web. Join us in creating and managing a dynamic and responsive web application with enhanced performance and developer-friendly features.
  • Axios (https://axios-http.com) - Promise based HTTP client for the browser and node.js
    • Empower our application with Axios, a versatile and promise-based HTTP client. Contribute to setting up a global request configuration, defining custom headers, and handling exceptions and success responses. Ensure smooth communication between the browser and node.js.
  • React Query (https://tanstack.com/query/latest) - Powerful asynchronous state management for TS/JS, React, Solid, Vue, and Svelte
    • Transform the way we handle asynchronous state management using React Query. Collaborate with us to seamlessly load and update data through RESTful requests. Bring your expertise in TypeScript/JavaScript, React, Solid, Vue, or Svelte to enhance our application's state management capabilities.
  • React Hook Form (https://react-hook-form.com) - Performant, flexible, and extensible forms with easy-to-use validation
    • Contribute to building high-performance, flexible, and extensible forms with React Hook Form. Your role involves defining and implementing robust form validations, ensuring an effortless and error-free user experience. Join us in creating dynamic and user-friendly forms.
  • Zod (https://zod.dev) - TypeScript-first schema validation with static type inference
    • Enhance our application's integrity with Zod, a TypeScript-first schema validation tool. Work with us to define and enforce validation rules, leveraging static type inference for a more secure and type-safe codebase. Ensure data consistency and reliability.
  • Hygen (https://www.hygen.io) - The scalable code generator that saves you time
    • Optimize our development workflow with Hygen, a scalable code generator designed to save time. Play a crucial role in defining and utilizing templates for our code generation process. Improve code consistency and reduce repetitive tasks by incorporating Hygen into our project.

Using

yarn install
npx hygen-add next-rails-scaffold
npx hygen scaffold javascript post title:string body:text

Result

Generated files strutucture:

src
├── components
|   ├── Post.js
|   └── PostForm.js
├── pages
|   └── posts
|       ├── [id]
|       |   ├── edit.js
|       |   └── index.js
|       ├── index.js
|       └── new.js
└── services.js

Sample app https://github.com/raphox/next-rails-app.