Language…
10 users online: Aeon, dacin, DashGamer, DixyNL, drkrdnk, GRIMMKIN, JezJitzu, Nemesis1407,  Segment1Zone2, toady - Guests: 237 - Bots: 330
Users: 64,795 (2,376 active)
Latest user: mathew

Open source SMW Central components: the SPC player and a form validation library

Other

What is this?
Like most large projects, SMW Central's ever-growing codebase is built on open source software, yet doesn't contribute to it. Let's remedy that.

The site code is too large and complex to be a reasonable open source release. However, many of its individual components are useful on their own. So, this is the beginning of a small project to release these components as standalone open source libraries.

SPC Player
The online SPC player needs no introduction. It's a standalone component that's very easy to include on any page.

Due to the underlying library, the SPC player is available under the GNU Lesser General Public License v2.1. It works in all modern browsers and can be downloaded from GitHub or installed with NPM.

Validator
SMW Central's small form validation component is used in all newer pages and aims to provide a friendly and flexible API at a minimal runtime cost.

Most PHP frameworks provide more full-featured validation components. However, this small library is perfect for quick demos and simple forms like the ones predominantly used in SMW Central.

The library is available under the MIT License. It works with PHP 7.3+ and can be downloaded from GitHub or installed with Composer.
Nice idea, it's always cool to see useful resources made available for everyone to use. Hope to see more of this in the future. #smw{:TUP:}
What a nice idea!

I'll be on the lookout for some potentially more snes-related web releases in the future because when I think of smwcentral I don't immediately think of form validation :> but it is a nice library nonetheless!
Whoa, almost missed this.

This is neat! It's probably as close to a look at the SMWC source code as we'll ever get. It might actually come in handy for my own projects some time.

Thanks for publishing it and continuing to work on the site coding!


 
Originally posted by Ragey
I'll be on the lookout for some potentially more snes-related web releases in the future because when I think of smwcentral I don't immediately think of form validation :> but it is a nice library nonetheless!

Absolutely! As a matter of fact, the SPC player was originally intended to be the first release, but it was delayed due to licensing concerns. I've since resolved them.

This means that the SPC player has also been released. Check the first post for a download!
So glad to see SMWC tipping its toes in open-source, especially with the SPC player! Not surprised in the slightest that it uses Blargg's library, but quite surprised indeed to see the ES2021 syntax and that you went so far as to throw it up on NPM! Super cool stuff.

Other