Socket
Book a DemoInstallSign in
Socket

apizy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apizy

A robust library designed for seamless communication between a Node.js backend and a JavaScript frontend.

0.2.8
latest
Source
npmnpm
Version published
Weekly downloads
15
50%
Maintainers
1
Weekly downloads
 
Created
Source

apizy

A robust library designed for seamless communication between a Node.js backend and a JavaScript frontend, crafted with TypeScript in mind to ensure no data detail is missed between the two.

Check out the DOCUMENTATION

Define your API endpoints as simple, as:

import { object, string, optional, arrayOf, uuid } from 'apizy';

api.createMethod(
    'articles.create',          // <-- Name of the method
    object({                    // <-- Input data      
        title: string(),
        content: string(),
        tags: optional(arrayOf(string())),
    }),
    object({                    // <-- Output data
        id: uuid(),
        url: string(),
    }),
    async (input) => {          // <-- Handler
        
        // ...

        return { id, url };
    },
);

Use it on frontend as simple as:

sdk.articles.create({title: '...', content: '...'})

FAQs

Package last updated on 20 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.