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

jscad-electronics

v0.0.21

Published

3D Electronic Component Models for JSCAD and tscircuit

Downloads

4,428

Readme

jscad-electronics

3D Electronic Component Models for JSCAD and tscircuit

npm version License: MIT

Docs · Website · Twitter · discord · Quickstart · Online Playground

jscad-electronics is a library of 3D electronic component models for use with JSCAD and tscircuit. It provides accurate and customizable 3D models for various electronic components, making it easier to create 3D representations of PCBs and electronic assemblies.

Contribution Guide:

image

Features

  • Wide range of electronic component models (e.g., resistors, capacitors, ICs, connectors)
  • Customizable dimensions and parameters for each component
  • Integration with tscircuit for advanced PCB design capabilities
  • Easy-to-use React components for JSCAD integration

Installation

Install jscad-electronics using npm:

npm install jscad-electronics

Usage

Here's a basic example of how to use jscad-electronics with JSCAD:

import { JsCadFixture } from "jscad-fiber"
import { SOT233P, ExtrudedPads } from "jscad-electronics"

export default () => {
  return (
    <JsCadFixture zAxisUp>
      <SOT233P />
      <ExtrudedPads footprint="sot23" />
    </JsCadFixture>
  )
}

This example creates a 3D model of an SOT-23-3P component with extruded pads.

Available Components

jscad-electronics includes models for various components, including:

  • Resistors (0402, 0603, 0805)
  • Capacitors
  • ICs (DIP, SOIC, TSSOP, QFN, QFP, BGA)
  • Diodes (SOD-123)
  • Transistors (SOT-23, SOT-563, SOT-723)
  • And more!

Check the lib directory for a full list of available components.

Customization

Most components accept parameters for customization. For example:

<QFN fullWidth={4} height={0.8} thermalPadSize={2} />

Refer to the individual component files for available customization options.

Integration with tscircuit

jscad-electronics is designed to work seamlessly with tscircuit. You can use these 3D models in your tscircuit projects to create accurate 3D representations of your PCB designs just by using the footprint prop

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.