All Projects → jdan → cards

jdan / cards

Licence: MIT license
Turn your Notion database into a deck of cards

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to cards

notion-sdk-php
A complete Notion SDK for PHP developers.
Stars: ✭ 60 (+62.16%)
Mutual labels:  notion, notion-api
notion-scholar
Reference management solution using Python and Notion.
Stars: ✭ 77 (+108.11%)
Mutual labels:  notion, notion-api
NotionSwift
Unofficial Notion API SDK for iOS & macOS
Stars: ✭ 49 (+32.43%)
Mutual labels:  notion, notion-api
Notion-GCal-Sync
A Python script to automate the syncing of tasks between Google Calendar and the all-in-one productivity workspace, Notion. It utilizes API and is customizable for your own needs. Free to use.
Stars: ✭ 120 (+224.32%)
Mutual labels:  notion, notion-api
notion-sdk-net
A Notion SDK for .Net
Stars: ✭ 71 (+91.89%)
Mutual labels:  notion, notion-api
open-source-notionapi-apps
Collection of Apps, Integrations und Libraries that utilize the Notion API
Stars: ✭ 82 (+121.62%)
Mutual labels:  notion, notion-api
notion-nextjs-blog
A starter blog template powered by Next.js, Notion and Tailwind CSS.
Stars: ✭ 25 (-32.43%)
Mutual labels:  notion, notion-api
jahir.dev
My personal website 💎 – Built using Next.js, TypeScript, MDX, contentlayer, Notion and Stitches styled components
Stars: ✭ 119 (+221.62%)
Mutual labels:  notion, notion-api
notionproxy
Notion as a web site, inspired by react-notion-x.
Stars: ✭ 24 (-35.14%)
Mutual labels:  notion, notion-api
notion-sdk-py
Official Notion SDK rewritten in Python (sync + async)
Stars: ✭ 753 (+1935.14%)
Mutual labels:  notion, notion-api
notionapi
A Notion API SDK, written in Golang
Stars: ✭ 351 (+848.65%)
Mutual labels:  notion, notion-api
Notion-and-Google-Calendar-2-Way-Sync
2 Way Sync Between Notion Database and Google Calendar
Stars: ✭ 205 (+454.05%)
Mutual labels:  notion, notion-api
shellbear.me
Source code of my personal website and blog ✨
Stars: ✭ 177 (+378.38%)
Mutual labels:  notion, notion-api
go-notion
Notion Official API Go Client.
Stars: ✭ 14 (-62.16%)
Mutual labels:  notion, notion-api
go-notion
Go client for the Notion API.
Stars: ✭ 261 (+605.41%)
Mutual labels:  notion, notion-api
memegentino
Meme generator for Notion
Stars: ✭ 18 (-51.35%)
Mutual labels:  notion, notion-api
Notion Clone
Stars: ✭ 2,048 (+5435.14%)
Mutual labels:  notion
Lotion
Unofficial Notion.so app for Linux
Stars: ✭ 1,735 (+4589.19%)
Mutual labels:  notion
notion-linux
Native Notion packages for Linux
Stars: ✭ 887 (+2297.3%)
Mutual labels:  notion
tickety-tick
A browser extension that helps you name branches and write better commit messages
Stars: ✭ 55 (+48.65%)
Mutual labels:  notion

cards

Turn a Notion database into a deck of cards. @jdan uses this to power notes.jordanscales.com.

a desktop with notion open on the left and a rendered notion page using this library on the right

usage

As a heads up, this barely works at all. It may not handle HTML escaping correctly. Do not run on untrusted input.

  1. Create a new Notion integration

  2. Create a new database and note it's ID from the address bar

    • https://www.notion.so/[username]/[your database ID, copy this!]?v=[ignore this]
    • Add a column called "Filename" to set the output filename for a card. This is required for an index.html.
  3. Share that database with your new integration

  4. Run the script

git clone https://github.com/jdan/cards.git
npm i
NOTION_SECRET=[your token here] NOTION_DATABASE_ID=[your id here] TWITTER_HANDLE=yourHandle  node index.js
npx serve build   # build/ contains everything you need
# localhost:5000 now shows your cards

config

Configuration is provided via environment variables, a .env file, or a config file in the .env format. To specify a config file, set the CONFIG=path/to/your/file.env env var. Here's an example:

# recipes.env
TWITTER_HANDLE=jitl
OG_IMAGE=https://jake.tl/images/jake-pleasant.jpg
BASE_URL=/recipes
NOTION_SECRET=secret_XXXXXXX
NOTION_DATABASE_ID=a3aa29a6b2f242d1b4cf86fb578a5eea

Then to use the config, run:

CONFIG=./recipes.env node index.js

Take a look at the top 100 lines or so of index.js to see what env vars are available.

developing

If you're working on improving this software, consider using npm run watch, which will re-build your site whenever any of this source code changes.

CONFIG=./recipes.env npm run watch
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].