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

arkos

v1.7.3-rc

Published

The Express & Prisma RESTful Framework

Readme

Header Image

Socket Badge npm npm GitHub GitHub Repo stars

InstallationDocumentationWebsiteTutorialGitHubBlogNpm

Quick Start

npm create arkos@latest my-project

Your new project already has JWT auth, customizable CRUD routes, Swagger docs at /api/docs, file uploads, validation, and a full security middleware stack. Understand the generated Project Structure.

Your Entry Point

// src/app.ts
import arkos from "arkos";
import postRouter from "@/src/modules/post/post.router"; // custom router

const app = arkos();

app.use(postRouter);

app.listen();

Arkos replaces the Express app — but it is Express under the hood. You can still use app.use(), custom middleware, and raw Express code wherever you need it.

Automatic CRUD: One Model, Full REST Endpoints

Define The Prisma model:

model Post {
  id        String   @id @default(uuid())
  title     String
  content   String
  authorId  String
  author    User     @relation(fields: [authorId], references: [id])
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

Get a full REST API — instantly:

POST   /api/posts        Create a post
GET    /api/posts        List all posts
GET    /api/posts/:id    Get a post
PATCH  /api/posts/:id    Update a post
DELETE /api/posts/:id    Delete a post

Authenticated, validated, and documented. Zero boilerplate.

Creating a Router Beyond Express

// src/modules/post/post.router.ts
import { ArkosRouter } from "arkos";
import CreatePostSchema from "@/src/modules/post/schemas/create-post.schema";
import postService from "@/src/modules/post/post.service";
import postPolicy from "@/src/modules/post/post.policy"; // Authorization component

const postRouter = ArkosRouter({ prefix: "/api/posts" });

postRouter.post(
  {
    path: "/", // auto registered into openapi
    authentication: postPolicy.Create, // Authentication and authorization with RBAC
    validation: { body: CreatePostSchema }, // auto documented into openapi requestBody
  },
  async (req, res) => {
    const post = await postService.createOne(req.body); // no error handling need, arkos already handles it
    res.json({ data: post });
  }
);

export default postRouter;

See more about the enhanced express-based router (ArkosRouter) at ArkosRouter Guide.

Define Permissions Once, Guard Everywhere

// src/modules/post/post.policy.ts
import { ArkosPolicy } from "arkos";

const postPolicy: ArkosPolicy<"post"> = ArkosPolicy("post");

postPolicy.rule("Create", ["Writer", "Admin"]);
postPolicy.rule("View", ["Writer", "Admin", "User"]);

export default postPolicy;

Define who can do what, once, per resource. Arkos enforces it across every route that references the policy — no scattered middleware, no repeated role checks.

Customize CRUD Routes just like normal router:

// src/modules/post/post.router.ts
import { ArkosRouter, RouteHook } from "arkos";
import postPolicy from "@/src/modules/post/post.policy";
import UpdatePostSchema from "@/src/modules/post/post.schema";

export const hook: RouteHook<"prisma"> = {
  findMany: { authentication: false }, // Making GET /api/posts public
  createOne: { authentication: postPolicy.Create },
  updateOne: {
    authentication: postPolicy.Update,
    validation: { body: UpdatePostSchema },
  },
  deleteOne: { authentication: postPolicy.Delete },
};

const postRouter = ArkosRouter({ prefix: "/api/posts" });

export default postRouter;

Your auto-generated CRUD routes accept the same config as any ArkosRouter route — authentication, validation, rate limiting, all in one place.

Add business logic exactly where you need it:

// src/modules/post/post.interceptor.ts
import { ArkosRequest, ArkosResponse, ArkosNextFunction } from "arkos";
import { BadRequestError } from "arkos/error-handler";

export const beforeCreateOne = [
  async (req: ArkosRequest, res: ArkosResponse, next: ArkosNextFunction) => {
    if (req.body.title.length < 5)
      throw new BadRequestError("Title is too short", "TitleTooShort");

    req.body.slug = req.body.title.toLowerCase().replace(/\s/g, "-");
    req.body.authorId = req.user.id;
    next();
  },
];

Name the file, export the hook, and Arkos picks it up automatically. No registration needed.

What You Stop Building From Scratch

| What you'd normally write | What Arkos gives you | | ---------------------------------------- | --------------------------------- | | JWT setup, refresh tokens, bcrypt | ✅ Built-in auth system | | 5 route handlers per Prisma model | ✅ Auto-generated CRUD | | Zod/CV schemas per endpoint | ✅ Auto generate from your models | | Swagger config + schema upkeep | ✅ Auto-generated OpenAPI docs | | Multer setup + file type validation | ✅ File upload system | | Rate limiting, CORS, Helmet, compression | ✅ Pre-configured security stack | | Total setup time | ~5 minutes vs ~8–12 hours |

Documentation

For comprehensive guides, API reference, and examples, visit our official documentation.

Quick Links:

Getting Nightly Updates

You can get the latest features we're testing before releasing them:

pnpm create arkos@next my-project

Built With

Arkos.js is built on top of industry-leading tools:

  • Express - Fast, unopinionated, minimalist web framework for Node.js
  • Prisma - Next-generation ORM for Node.js and TypeScript
  • Node.js - JavaScript runtime built on Chrome's V8 engine

Support & Contributing

Contributions are welcome! We appreciate all contributions, from bug fixes to new features.

What Developers Say

"Arkos.js changed how I work on the backend: with a Prisma model I already get CRUD routes, auth, and validation out-of-the-box — I saved a lot of time and could focus on business logic."

— Gelson Matavela, Founder / Grupo Vergui

"It removes boilerplate and provides a clean structure to build products. Built-in auth is powerful and ready. Automatic CRUD and docs save time, while interceptors allow flexible business logic."

— Augusto Domingos, Tech Lead / DSAI For Moz

"With Arkos.js, I can build backends in just a few minutes. It removes the boilerplate and lets me focus entirely on the core logic. Fast, simple, and incredibly productive."

— Niuro Langa, Software Developer / SparkTech

See more testimonials →

Philosophy

Arkos sits between minimal frameworks like Express/Fastify and opinionated ones like NestJS/AdonisJS. It doesn't ask you to learn a new paradigm — it enhances the one most Node.js developers already use, by automating everything that's standardized and staying out of the way everywhere else.

Inspired by how Django and Laravel work in their ecosystems: batteries included, nothing forced on you.

The name "Arkos" comes from the Greek word ἀρχή (Arkhē), meaning "beginning" or "foundation".

License

This project is licensed under the MIT License - see the LICENSE file for details.

InstallationDocumentationWebsiteTutorialGitHubBlogNpm

Built with ❤️ by Uanela Como and contributors

The name "Arkos" comes from the Greek word "ἀρχή" (Arkhē), meaning "beginning" or "foundation", reflecting our goal of providing a solid foundation for backend development.