@blitzjs/rpc
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

Blitz.js


Blitz "Zero-API" data layer (Blitz RPC)


Quick Start

Install Blitz RPC

`npm i @blitzjs/rpc`
# yarn add @blitzjs/rpc
# pnpm add @blitzjs/rpc

You can alternatively use npx

Overview

Blitz "Zero-API" data layer (Blitz RPC) is focused on making the communication between server and client seamless. It lets you

import server code directly into your components instead of having to manually add API endpoints and do client-side fetching and caching. Here's a quick overview:

Blitz RPC Overview

Queries and mutations

Queries and mutations only run on the server — at build time, the direct function import is replaced with an RPC network call. So the query function code is never included in your client code. It's instead moved to an API layer.

Framework Support

Currently Blitz RPC is only supported in Next.js. We are working on adding support for other frameworks.

Readme

Keywords

none

Package Sidebar

Install

npm i @blitzjs/rpc

Homepage

blitzjs.com/

Weekly Downloads

3,578

Version

2.0.8

License

MIT

Unpacked Size

181 kB

Total Files

31

Last publish

Collaborators

  • siddhsuresh
  • dillonraphael
  • mabadir
  • flybayer
  • skn0tt