ZeroCN

Zero standardized index.

Usage

https://zerocn.zeroopensource.org/zero-index/zero-index-schema.json
http://localhost:4112/zero-index/zero-index-schema.json

Create index

---
"$schema": https://zerocn.zeroopensource.org/zero-index/zero-index-schema.json
zeroId: zero-20260731-0355a1-7589c4-b62853-15ae3a
name: Zero CLI
tags: 
  - cli
  - open-source
  - zero
---

# Zero CLI
zero-index-schema.ts
import path from "node:path";
import fs from "fs-extra";
import { z } from "zod";

const schema = z.object({
  zeroId: z.string(),
  name: z.string(),
  tags: z.array(z.string()),
});

const outputSchema = async () => {
  const jsonSchema = z.toJSONSchema(schema);
  const outputPath = path.join(
    process.cwd(),
    "public/zero-index/zero-index-schema.json"
  );
  await fs.remove(outputPath);
  await fs.outputJson(outputPath, jsonSchema, {
    spaces: 2,
  });
  console.log(`Generated ${outputPath}`);
};
outputSchema();

Supported types

https://github.com/zeroopensource/zero-zerocn/blob/main/packages/zero-zerocn/src/registry/new-york/items/zero-schema/zero-schema.ts

On this page