Giter Site home page Giter Site logo

m8e / affine-importer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shortcipher5/affine-importer

0.0 0.0 0.0 17 KB

AFFiNE Importer - quickly and easily import your existing content into AFFiNE.

License: Mozilla Public License 2.0

JavaScript 100.00%

affine-importer's Introduction

AFFiNE-importer

AFFiNE (https://github.com/toeverything/affine) is a next-gen knowledge base.

At the time of creation, app.affine.pro does not have an API so you can use this script to quickly and easily import Markdown .md files into your own AFFiNE workspace.

Run

npm run start

Setup

Create an .env file and define the variables

DEBUG = false
TARGET_URL = app.affine.pro
WORKSPACE_NAME = new_affine_workspace
LOGIN_TOKEN = myToken123
FILES_DIR = source/path/of/md/files

DEBUG = true|false If true, this mode allows you to see the browser and elements to be clicked will be highlighted

TARGET_URL = app.affine.pro the deployment of AFFiNE you wish to use

WORKSPACE_NAME = new_affine_workspace the name of your new workspace

LOGIN_TOKEN = myToken123 your login token, see below for more info

FILES_DIR = source/path/of/md/files the directory of your files to be uploaded

Login Token

For the login token, this value can be found in the developer console after you've logged into AFFiNE. Make sure you use the refresh token value. Screenshot 2023-03-02 at 14 15 49

affine-importer's People

Contributors

shortcipher5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.