
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A modern, type safe Content Management System.
npm install tyzo
# or
pnpm add tyzo
# or
yarn add tyzo
Define your collections and globals using our type-safe schema builder:
import {
defineCollection,
defineGlobal,
entryReference,
imageSchema,
markdownSchema,
richTextSchema,
tyzoApi,
z,
} from 'tyzo';
// Initialize the CMS client
const cms = tyzoApi({ space: "your-space-name" });
// Define an author collection
const authorCollection = defineCollection({
name: "author",
idField: "name",
schema: z.object({
name: z.string(),
bio: z.string(),
}),
});
// Define a posts collection with references and rich content
const postCollection = defineCollection({
name: "posts",
idField: "slug",
schema: z.object({
slug: z.string(),
title: z.string(),
content: richTextSchema,
image: imageSchema,
author: entryReference<typeof authorCollection>("author"),
tags: z.array(z.string()),
publishedAt: z.date(),
}),
});
// Define global content
const settings = defineGlobal({
name: "settings",
schema: z.object({
siteName: z.string(),
description: z.string(),
}),
});
After defining your collections, start the CMS UI to begin authoring content:
pnpm tyzo dev
Visit the admin UI to create and manage your content with a beautiful interface.
Use the CMS client to fetch your content with full type safety:
// Fetch entries from a collection
const { entries: posts } = await cms.getEntries(postCollection, {
// Include referenced collections
include: {
author: true,
},
// Optional: filter and sort
where: {
publishedAt: { gt: new Date('2024-01-01') },
},
sort: { publishedAt: 'desc' },
});
// Fetch a single entry by ID
const post = await cms.getEntry(postCollection, 'my-post-slug');
// Fetch global content
const { global: settings } = await cms.getGlobal(settings);
// Use in React components
function BlogPosts() {
const [posts, setPosts] = useState();
useEffect(() => {
cms.getEntries(postCollection)
.then(({ entries }) => setPosts(entries));
}, []);
return (
<ul>
{posts?.map(post => (
<li key={post.slug}>
<h2>{post.title}</h2>
<p>By: {post.author.name}</p>
</li>
))}
</ul>
);
}
All queries are fully typed, providing autocomplete and type checking for your content structure.
For detailed documentation and advanced usage, visit our documentation site.
FAQs
A modern, type safe Content Management System.
The npm package tyzo receives a total of 3 weekly downloads. As such, tyzo popularity was classified as not popular.
We found that tyzo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.