New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

toku

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

toku

Universal schema-driven validation library for both frontend and backend. Backend-oriented, plugin-friendly, and form-library compatible.

latest
Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

toku

Universal schema-driven validation library for both frontend and backend.
Backend-oriented. Plugin-friendly. Built to power forms, APIs, and databases with a single source of schema truth.

✨ Features

  • ✅ Centralized schema definitions
  • ✅ Validate on both frontend (Formik, React Hook Form) and backend (Express, Fastify)
  • ✅ Plugin-ready: generate DB tables, form inputs, API DTOs from the same schema
  • ✅ TypeScript friendly
  • ✅ Lightweight and fast

📦 Installation

npm install toku

or with yarn:

yarn add toku

🚀 Quick Start

import { defineSchema, validate } from "toku";

const userSchema = defineSchema({
  name: "string|min:3|max:20",
  age: "number|min:18",
  email: "email|required",
});

// validate some data
const result = validate(userSchema, {
  name: "Alice",
  age: 25,
  email: "alice@example.com",
});

if (result.success) {
  console.log("Valid:", result.data);
} else {
  console.log("Errors:", result.errors);
}

🔌 Plugins (Coming Soon)

  • 🛠️ @toku/sql – Generate SQL migrations from schema
  • 🧩 @toku/formik – Auto-generate Formik validation logic
  • 🧪 @toku/test – Generate randomized test data from schema

📚 Docs

Full documentation coming soon.

For now, check the /examples folder and follow updates here: https://github.com/manishgun/toku

👨‍💻 Author

Manish Gun
💼 manishgun.vercel.app
📧 mail.cto.manish@gmail.com
🐙 github.com/manishgun

📄 License

MIT

Keywords

validation

FAQs

Package last updated on 17 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