Giter Club home page Giter Club logo

snextensions's Introduction

snextensions

Netlify Status

A set of open source extensions for StandardNotes.

Usage

Paste https://snext.netlify.app/index.json into Extended Code in StandardNotes.

Notice

2023-03-01 Update

I've not used StandardNotes for a long time, so it's impractical for me to keep an eye for all the extension updates. For this reason I'm archiving this repository. You can still use the code as is, or fork and modify to suit your own needs. Happy hacking!

Previously (last year) the URL was https://snext.netlify.com/index.json. But early this year Netlify decided to change the domain used by hosted apps.

If you've been experiencing empty editor UI, there's a chance that you're using the old URL. Netlify is taking care of redirections but they are missing some headers. You should migrate to the new URL.

These steps are required to migrate:

  • Look for the "Repository" options in the "Extensions" menu (on the bottom)
  • Delete the repository
  • Uninstall all installed themes and editors
  • Re-enter the new URL into Extended Code
  • Re-install all the themes and editors you use

Contribution

If you'd like an extension to be included in this repository, feel free to open an issue.

Self-hosting

With Netlify

In case if you'd like to host your own site other than using ours, you can do so with Netlify:

  • Fork this repository;
  • Create a Netlify account if you don't have one already;
  • In Netlify app, Use "New site from Git" to create a site from your forked GitHub repository;
  • Wait for the build to finish;
  • After that you can use YOUR_SITE_URL/index.json as an Extended Code;
  • Optionally you can set a human-readable site name (a subdomain of netlify.app) from the Site settings page. Notice: You need to manually trigger a new deploy via Netlify web UI after changing the site name.

Without Netlify

It's easy and recommended to host with Netlify. However if you insist not to use it, it is also possible (notice: the following steps work on Linux or WSL):

  • Prepare your environment with Python 3.7 with pip, as well as Git;
  • Make sure Python 3.7 can be called directly via python from the shell;
  • Make sure Git is installed and can be called directly via git from the shell;
  • pip install -r requirements.txt to install required Python libraries;
  • Run the build script URL=my_url python build.py where my_url is the full URL you would later host the resource files on. E.g. if you want to access the plugins via https://example.com/index.json then replace my_url with https://example.com/.
  • Verify that:
    • the public directory is generated;
    • there should be public/index.json containing information of all extensions;
    • all extensions should exists in public as sub-directories;
  • Host the public directory like you would do with any static resources, using nginx, caddy, etc.
  • You need to enable CORS headers on your reverse proxy (nginx / caddy / traefik). With nginx these rules will be enough:
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Headers' 'content-type';

snextensions's People

Contributors

jokerqyou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snextensions's Issues

Extension not showing on mobile

Hi,
Have followed your guidelines installing locally and on netlify but extension is accessible only on desktop app.
found the solution through activating CORS on Nginx

Selfhost extensions

Is there some instruction to host snextensions on own server?
Should I use build.sh? How can I host it? What prerequisites?

How to update the extensions?

Hi,
I'm using a fork of your extension to selfhost with netlify and I was wondering how to update the extensions to their latest versions? Or is this done automatically?
TIA

Make build script platform-independent

Currently the Python script is wrapped inside an shell script build.sh which is not very nice. If we can implement the find cleanup part with Python then the build process would work on any platform with Python.

After changing the Site name in something readable the extensions don’t work anymore

Hi,
I followed your steps as described to create a Netlify account and deploy the site. After this is successfully done I have tested it with SN and it was working, I could install the extensions and is was working on different devices.

But the problem arises when I change the name off the site in Netify into something better readable. I tried the new link with a new account I have created in standardnotes and I can install the extensions and I see them in the app menu, but I cannot created and write any notes. I keep seeing an error message “not found”

0D763FC8-7E2B-4AC6-9306-3E695F458CE7

To test my theory I deleted the site with the readable name from Netlify and created a new one. This time I didn’t change the name and used the auto generated link in Standardnotes to install the extensions, and it is working as should.

So I’m wondering what is going wrong when changing the name for it not to work?

Need to change "identifiers" in JSON to Avoid SN blocking extensions for Subscription

I noticed that the Secure Spreadsheets extension is getting blocked by Standard Notes subscription requirements.
See issue #789
And Issue #1550

The "Identifier" in the JSON file for the repo needs to be changed from org.standardnotes.xxxx to something else.

Also Extension repos are being depreciated by SN.

This means that in order to add extensions in newer versions they either need to be added one at a time using the individual extension JSON files, or people need to install an older version (I tested with v.3.8.0) and then add the repo as instructed in your READme and then upgrade to the current version.

For self-hosters the best way to keep standard notes happy seems to be to stick with an older version for now.

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.