SonicJS headless CMS knowledge base, coding standards, and architectural guidelines.
74
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
This index provides a structured map of all available documentation for SonicJS CMS. AI Agents should refer to these references to learn about domain-specific concepts, configurations, and APIs before executing implementation tasks.
To install SonicJS in a Cloudflare Workers or Hono environment:
# Using npm
npm create sonicjs@latest my-project
cd my-project
npm installMost functionality is accessed via the @sonicjs-cms/core package.
import { requireAuth, requireRole } from '@sonicjs-cms/core'
import { collections } from './db/schema'
import { eq } from 'drizzle-orm'# Create local and production D1 instances
wrangler d1 create sonicjs-ai
npm run db:migrate:localapp.use('/api/admin/*', requireRole(['admin', 'editor']))
app.get('/api/admin/stats', async (c) => {
return c.json({ status: 'success', data: {} })
})