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

@j-scribe1/local-api

v4.0.5

Published

Your All-in-One JavaScript Sandbox and Notebook.

Downloads

2

Readme

j-scribe

Your All-in-One JavaScript Sandbox and Notebook.

j-scribe screenshot

j-scribe provides users with a versatile platform to create, share, and modify code snippets in real-time.

With support for a variety of libraries and frameworks, j-scribe's intuitive user interface and live preview make it easy to see the results of your code as you type.


Tech Stack

| TypeScript | React | Redux | Lerna | | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------: | --------------------------------------------------------------------------------------------------------------------------------------- | | Node.js | Express.js | Bulma | esbuild |

Features

  • All-in-One Sandbox: Write, edit, and preview JavaScript and React code snippets without the need for external tools.
  • Real-Time Editing: See the results of your code immediately with j-scribe's live preview feature, making it easier to debug and visualize your work.
  • Library Support: Utilize popular libraries and frameworks to enhance your coding experience.
  • Text-Editor: j-scribe provides a user-friendly way to document code using the built-in Markdown text-editor.
  • Sharing and Collaboration: j-scribe projects are automatically serialized and saved to user's machines, making it possible to store and share projects with others.
  • Command-Line Interface: j-scribe offers a convenient CLI, available on npm, for opening and creating j-scribe files from the command line. j-scribe1 serve <filename> starts a local API and opens the front-end application on a localhost port, allowing users to easily access and interact with j-scribe in their browser.

Usage

  1. Install the CLI by running npm i j-scribe1.
  2. Open the built-in tutorial with j-scribe1 serve _intro and follow the instructions to get familiar with the basic features j-scribe offers.
  3. Open new or existing notes with j-scribe1 serve <filename> (Optionally include a filepath: j-scribe1 serve <path/filename>).
  4. Run j-scribe1 --help for additional help

Preview

j-scribe preview

Lessons Learned

  • Best Practices for designing and building advanced, production-ready apps.
  • Integrating Typescript, React and React-Redux together.
  • Designing highly reusable React components.
  • Creating a custom plugin for Esbuild to enable in-browser transpiling/bundling with support for imports from npm.
  • Creating a caching layer for imported modules/bundled code using Local-Forage.
  • Using Redux-Middlewares for handling complex business logic.
  • Taking advantage of powerful third-party libraries such as: bulma, immer, monaco-editor, react-md-editor, commander, etc...
  • Safely handling user-input by utilizing iframes as a code-execution environment- the same technique used by popular sites such as Codepen.
  • Utilizing lerna and nx to create a mono-repo with multiple packages and build targets.
  • Creating a Restful-API to serve up a Front-End application from a CLI.
  • Utilizing web-assembly to go... BLAZINGLY FAST!
  • Deploying to npm and vercel.

Reflection

This project was a great learning experience for me. I learned a ton about TypeScript, React, and React-Redux as well as some project-specific libraries such as Monaco-Editor and Resizable. An unexpected challenge I faced was working with lerna and understanding the build process. This project contains multiple packages, and I had to learn how to configure lerna to build and deploy the packages in the correct order and for different production environments.

I also learned a lot about the importance of planning and design when building a large-scale application. It's very clear to me how useful OOP principles can be in designing larger apps. Developing each component in a modular way and ensuring that the code is reusable makes it much easier to modify and add more features later on.

I had a lot of fun working on this project, and I'm excited to continue learning and improving my skills. ✅

Acknowledgements

Authors