
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
vue-notion
Advanced tools
An unofficial Notion renderer
A Vue renderer for Notion pages. Use Notion as CMS for your blog, documentation or personal site.
vue-notion
was ported to Vue fromreact-notion
(developed by Splitbee ๐ โ a fast, reliable, free, and modern analytics for any team)
โ ๏ธ This package doesn't handle the communication with the API. Check out notion-api-worker from Splitbee for an easy solution.
Created by Jannik Siebert
๐ฏ Accurate โ Results are almost identical
๐จ Custom Styles โ Styles are easily adaptable. Optional styles included
coming soon ๐ฎ Code Highlighting โ Automatic code highlighting with prismjs
coming soon ๐ SSR / Static Generation Support โ Functions to work with Nuxt and other frameworks
npm install vue-notion
Check out the demo โจ
The full NotionRenderer
API specification is available at docs/API.md
.
We can store the API response in a .json
file and import it.
<template>
<NotionRenderer :blockMap="blockMap" />
</template>
<script>
import { NotionRenderer } from "vue-notion";
import response from "./load-page-chunk-response.json"; // https://www.notion.so/api/v3/loadPageChunk
const blockMap = response.recordMap.block;
export default {
components: {
NotionRenderer,
},
data() {
return { blockMap };
},
};
</script>
A working example using Nuxt can be found inside the example
directory.
List of pages that are using this library.
vue-notion
, we'd be happy to feature you hereMost common block types are supported. We happily accept pull requests to add support for the missing blocks.
Block Type | Supported | Notes |
---|---|---|
Text | โ Yes | |
Heading | โ Yes | |
Image | โ Yes | |
Image Caption | โ Yes | |
Bulleted List | โ Yes | |
Numbered List | โ Yes | |
Quote | โ Soon | |
Callout | โ Yes | |
Column | โ Yes | |
iframe | โ Soon | |
Video | โ Soon | Only embedded videos |
Divider | โ Soon | |
Link | โ Yes | |
Code | โ Soon | Highlighting coming soon |
Web Bookmark | โ Soon | |
Toggle List | โ Soon | |
Page Links | โ Yes | |
Header | โ Yes | Enable with fullPage |
Databases | โ Not planned | |
Checkbox | โ Not planned | |
Table Of Contents | โ Not planned |
FAQs
A Vue renderer for Notion pages
The npm package vue-notion receives a total of 598 weekly downloads. As such, vue-notion popularity was classified as not popular.
We found that vue-notion demonstrated a healthy version release cadence and project activity because the last version was released less than 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
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.