npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

leumas-react-app-library

v1.0.6

Published

This is for Leumas React App Library API, to embed our apps directly into your react apps. This is a solid demo, as I would love to expand this to suit other things like my html library, python gui library, or other libraries for things like the batc file

Downloads

101

Readme

Leumas API Documentation

This documentation provides an overview of the available - Method: GET routes in the Leumas API.

Base URL

The base URL for all endpoints is:

https://leumas-api-63700dc8135b.herokuapp.com

Endpoints

======================================================================

Get All Folders

Retrieve a list of all folders in the ReactLibrary directory.
  • Endpoint: /react-apps/get-all-folders

  • Method: GET

  • Description: This endpoint returns a JSON array containing the names of all folders in the ReactLibrary directory.

Example Request

 https://leumas-api-63700dc8135b.herokuapp.com/react-apps/get-all-folders

Example Response

[  "Folder1",  "Folder2",  "Folder3"]

======================================================================

Get A Folder

Retrieve all apps within a specific folder.
  • Endpoint: /react-apps/apps-in-folder/:folderName

  • Method: GET

  • Description: This endpoint returns a JSON object with the folder name, the number of apps, and a list of all apps within the specified folder.

  • Example Request:

 https://leumas-api-63700dc8135b.herokuapp.com/react-apps/apps-in-folder/Folder1
  • Example Response
{
  "folder": "Folder1",
  "numberOfApps": 3,
  "apps": [
    "Folder1/App1.jsx",
    "Folder1/App2.jsx",
    "Folder1/App3.jsx"
  ]
}

Get All Apps

Retrieve a list of all apps with their paths and counts.
  • Endpoint: /react-apps/list-apps

  • Method: GET

  • Description: This endpoint returns a JSON object with the total number of apps, the number of apps in each folder, and a list of all app paths.

  • Example Request:

 https://leumas-api-63700dc8135b.herokuapp.com/react-apps/list-apps
  • Example Response
{
  "numberOfApps": 6,
  "appsInEachFolder": {
    "Folder1": 3,
    "Folder2": 2,
    "Root": 1
  },
  "files": [
    "Folder1/App1.jsx",
    "Folder1/App2.jsx",
    "Folder1/App3.jsx",
    "Folder2/App1.jsx",
    "Folder2/App2.jsx",
    "App1.jsx"
  ]
}

======================================================================

Get Specific App

Retrieve the code for a specific JSX app, including its dependencies.
  • Endpoint: /get-app/react-apps/*

  • Method: GET

  • Description: This endpoint returns a JSON object containing the main code of the specified app and its dependencies.

  • Example Request:

 https://leumas-api-63700dc8135b.herokuapp.com/get-app/react-apps/Folder1/App1.jsx
  • Example Response { "mainCode": "import React, { useState } from 'react';\n\nconst App1 = () => { ... };\n\nexport default App1;", "dependencies": { "./Dependency1.jsx": "import React from 'react';\n\nconst Dependency1 = () => { ... };\n\nexport default Dependency1;", "./Dependency2.jsx": "import React from 'react';\n\nconst Dependency2 = () => { ... };\n\nexport default Dependency2;" } }

======================================================================

Get Embed URL

  • Coming Soon: This endpoint is not currently functional but will be available in a future update.

  • Endpoint: /embed/react-apps/*

  • Method: - Method: GET

  • Description: This endpoint will return an iframe HTML snippet for embedding a specific JSX app.

  • Example Request:

 https://leumas-api-63700dc8135b.herokuapp.com/embed/react-apps/Folder1/App1.jsx
  • Example Response
<iframe src="https://leumas-api-63700dc8135b.herokuapp.com/react-apps/Folder1/App1.jsx" width="100%" height="600px" style="border: none;"></iframe>