It's easy to find companies that are stuck in the past and couldn't care less about building a brighter future. Some of those companies, such as tobacco producers, are trapped in secular declines and can only resort to price hikes, layoffs, buybacks, and dividends to appease investors.

Meanwhile, certain tech companies are actively ushering in a darker future in which massive e-commerce platforms reign supreme, social networking platforms spread misinformation and reinforce confirmation bias, and AI algorithms and cloud services render many jobs obsolete.

It can be hard to avoid investing in these types of companies since they include some of the biggest names in the S&P 500. But if we dig deeper, it's easy to find companies that are still building brighter futures for both their users and investors. Here are four companies that fit that bill.

A graffiti portal on a wall labeled "bright future, enter here".

Image source: Getty Images.

1. Shopify and 2. Etsy

I've owned shares of Amazon (AMZN 0.15%) for years, but I'm not a fan of its labor practices, the way it crushes smaller retailers, or its proposed transformations of dead malls and department stores into Amazon fulfillment centers. The future that Amazon envisions is a bleak one.

Shopify (SHOP 0.61%) and Etsy (ETSY 4.29%) are two companies that stand in Amazon's way. Shopify's platform enables individuals and small businesses to quickly set up their own online stores, process payments, and manage marketing campaigns. Etsy lets artisans sell unique products that often can't be found on Amazon.

Shopify and Etsy both allow merchants to build their own online presence without joining Amazon's massive third-party marketplace, which is littered with counterfeit products from overseas sellers.

Shopify launched its own fulfillment network to challenge Amazon's FBA (Fulfilled by Amazon) service in 2019, and it introduced Shop, an app that lets shoppers search through Shopify merchants on a single platform, last year. Those moves arguably make Shopify a major threat to Amazon -- and explain why Amazon quietly acquired Shopify's smaller rival, Selz, earlier this year.

Shopify and Etsy both thrived throughout the pandemic as smaller merchants sold more goods online -- and that boom indicates the bleak future where Amazon blots out the entire retail sector isn't inevitable.

3. Pinterest

I sold all my shares of Facebook (META 0.57%) after the Capitol riot in January, because I believed the tech giant wasn't interested in building a brighter future.

Pinterest's iPad app.

Image source: Pinterest.

Instead, I would argue it traps users in an addictive cycle of self-affirmation and opinions to accumulate more data for its targeted ads. That cycle can be toxic -- especially when misinformation, tribalism, and politics are blended into the mix -- and the consequences can be deadly.

But that doesn't mean all social networking platforms are toxic. Pinterest (PINS 0.57%), for example, is well-insulated from those headwinds because its virtual pinboards are mainly used to share fashion ideas, hobbies, and interests instead of divisive news or political views.

Throughout 2020, searches for manifestation techniques, self-love, and self-healing on Pinterest skyrocketed as Facebook and Twitter (TWTR) grappled with politics and fake news.

Pinterest's focus on positivity clearly resonates with its core audience of affluent, older women, and its monthly active users (MAUs) jumped 37% year over year to 459 million last quarter. Analysts expect its revenue and adjusted earnings to surge 48% and 102%, respectively, this year -- which makes it a much stronger growth stock than Facebook or Twitter.

4. Roblox

Last but not least, Roblox -- which is set to go public via a direct listing on Wednesday, March 10 -- exemplifies the positive applications of technology. Its eponymous platform allows users with no coding experience to create video games with a simple system of interactive blocks. Its users can then share their games with each other, or monetize them with an in-game currency called Robux.

Roblox's platform is a great tool for teaching children how to program, and 54% of its daily active users (DAUs) are currently under the age of 13. Its DAUs jumped 47% to 17.6 million in 2019, then surged 85% to 32.6 million in 2020 as the pandemic caused more people to stay at home.

Dragon Adventures, a game created in Roblox.

Image source: Roblox.

That growth boosted Roblox's revenue by 56% in 2019, and another 82% in 2020. It isn't profitable yet, but it could eventually rein in its operating expenses or reduce its real-world exchange rate between Robux and U.S. dollars to narrow its losses.

Roblox's stock could come in hot when it hits the market, but I believe its robust growth rates, lack of meaningful competitors, and focus on educating and entertaining children all make it a solid investment.

The key takeaways

Investors often make ethical compromises when picking stocks, but sticking with these four companies -- which help the underdogs, promote positivity, and educate kids in safe online spaces -- might just help you sleep better at night.