{}
JSONPlug

Build typed databases instantly
with JSON. No setup, no complexity.

JSON to Database in Seconds

Transform your JSON files into fully-typed, real-time databases. No setup, no complexity. Just upload, generate types, and start building.

🚀 Zero configuration required
🔒 Full TypeScript support
⚡ Real-time updates
Format
Validate
Loading...
File size:22 B

Built for Modern Development

Transform your JSON into a powerful, typed database in seconds.
Built for Node.js environments and Next.js Server Components/API routes.
Server-side only — ideal for use cases like:

Dynamic Database

Create fully-typed data structures in seconds, not hours

Feature Flags

Toggle features instantly without redeploying your app

A/B Testing

Test different configurations with real-time updates

Get Started in Minutes

JSONPlug transforms your JSON into a fully-typed, real-time database that integrates seamlessly with your existing codebase.

Runs on the server only (Node.js). Use in Next.js Server Components, API routes, or Node scripts. Not for client-side React.

Here's how to integrate JSONPlug into your project:

Install the package:

package.json
$ npm install jsonplug

Add your credentials to your environment variables:

env.local
JSONPLUG_FILE_ID="<FILE_ID>"
JSONPLUG_SECRET="<YOUR_SECRET>"

Generate TypeScript types from your JSON schema:

terminal
$ npx jsonplug generate

Create your JSONPlug client configuration:

jsonplug.ts
import { init } from "jsonplug";
import { JsonPlugSchema } from "@/types/jsonplug";

export const jsonplug = await init<JsonPlugSchema>({
  token: process.env.JSONPLUG_TOKEN!,
  fileId: process.env.JSONPLUG_FILE_ID!,
});

Start using your fully-typed data:

index.ts
import { jsonplug } from "@/jsonplug";

const data = await jsonplug.get();
console.log(data.hello) // <- Fully typed! No more guessing