
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@unbloque/blog-core
Advanced tools
Core blog functionality with database adapters for Next.js applications.
npm install @unbloque/blog-core
import { BlogService, MemoryAdapter } from '@unbloque/blog-core'
// Initialize with an adapter
const adapter = new MemoryAdapter()
const blog = new BlogService(adapter)
// Get all published posts
const posts = await blog.getPublishedPosts()
import { SupabaseAdapter } from '@unbloque/blog-core'
const adapter = new SupabaseAdapter(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
)
import { MongoDBAdapter } from '@unbloque/blog-core'
const adapter = new MongoDBAdapter(
process.env.MONGODB_URI!,
'blog' // database name
)
import { NeonAdapter } from '@unbloque/blog-core'
const adapter = new NeonAdapter(
process.env.DATABASE_URL!
)
getPublishedPosts() - Get all published postsgetAllPosts(includeUnpublished) - Get all postsgetPostBySlug(slug) - Get a single post by sluggetPostById(id) - Get a single post by IDcreatePost(post) - Create a new postupdatePost(id, updates) - Update an existing postdeletePost(id) - Delete a postsearchPosts(query) - Search posts by queryAll TypeScript types are exported for use in your application:
import type { BlogPost, CreateBlogPost, UpdateBlogPost } from '@unbloque/blog-core'
MIT
FAQs
Core blog functionality with database adapters for Next.js
We found that @unbloque/blog-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.